91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

How To Install Laravel 4 Framework on Ubuntu

發布時間:2020-07-05 13:11:13 來源:網絡 閱讀:375 作者:_Mr_Computer_ 欄目:開發技術

http://tecadmin.net/install-laravel-framework-on-ubuntu/http://tecadmin.net/install-laravel-

framework-on-ubuntu/


How To Install Laravel 4 Framework on Ubuntu 15.04, 14.04 and 12.04 LTS




PHP, Php Frameworks 14 Comments



Laravel is an open source PHP framework, designed for the faster development of MVC web applications in PHP. This article will help you to configure Laravel PHP Framework on Ubuntu 15.04, 14.10, 14.04 LTS and 12.04 LTS Systems.

Step 1: Install LAMP

To start with Laravel, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system.

Install PHP 5.5

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php5
$ sudo apt-get update
$ sudo apt-get install -y php5 php5-mcrypt

Install Apache

$ apt-get install apache2 libapache2-mod-php5

Install MySQL

$ apt-get install mysql-server php5-mysql

Step 2: Install Composer

Composer is required for installing Laravel dependencies. So use below commands to download and use as a command in our system.

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo chmod +x /usr/local/bin/composer

Step 3: Install Laravel

To download latest version of Laravel, Use below command to clone master repo of laravel from github.

$ cd /var/www
$ git clone https://github.com/laravel/laravel.git

Navigate to Laravel code directory and use composer to install all dependencies required for Laravel framework.

$ cd /var/www/laravel
$ sudo composer install

Dependencies installation will take some time. After than set proper permissions on files.

$ chown -R www-data.www-data /var/www/laravel
$ chmod -R 755 /var/www/laravel
$ chmod -R 777 /var/www/laravel/app/storage

Step 4: Create Apache VirtualHost

Now add a Virtual Host in your Apache configuration file to access Laravel framework from web browser. Create  Apache configuration file under /etc/apache2/sites-available/ directory and add below content.

$ vim /etc/apache2/sites-available/laravel.example.com.conf
<VirtualHost *:80>
        
        ServerName laravel.example.com
        DocumentRoot /var/www/laravel/public

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/laravel>
                AllowOverride All
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Finally lets enable website and reload Apache service using below command.

$ a2ensite laravel.example.com  (a2ensite 命令講解:http://blog.csdn.net/hfahe/article/details/5490223)
$ sudo service apache2 reload

And you have all done. Access http://laravel.example.com in your favorite web browser and start developing great applications.


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

盈江县| 泰顺县| 金川县| 伊川县| 湘潭县| 宁都县| 临安市| 江都市| 开鲁县| 梓潼县| 安阳县| 天祝| 永顺县| 哈尔滨市| 福泉市| 荣昌县| 鹿泉市| 宁乡县| 肥乡县| 永康市| 桂林市| 岳池县| 元谋县| 乌拉特后旗| 威远县| 剑川县| 雅安市| 中山市| 大邑县| 沅陵县| 五指山市| 彰化县| 尼木县| 威海市| 泰宁县| 辽宁省| 云南省| 宿松县| 仁布县| 政和县| 囊谦县|