前面我們介紹我了 composer安裝,這里我們接著來介紹 Laravel框架的安裝。
這里我們安裝的是laravel 4
項目下載地址:https://github.com/laravel/laravel
laravel 學院? 安裝要求:
1、PHP最低版本:5.3.7
2、支持 mcrypt 擴展
3、支持 openssl 擴展
laravel 教程。 另外,需要支持 proc_open、proc_get_status函數,自己在安裝過程中,因為不支持這2個函數,安裝報錯失敗了
[Symfony\Component\Process\Exception\RuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.
[ErrorException]
laravel菜鳥教程? proc_get_status() has been disabled for security reasons
可以通過php配置文件中的disable_functions查看是否支持這2個函數。
進入正題,Laravel安裝方法:
1、下載安裝包,解壓
laravel官網、 2、進入解壓目錄,執行命令
composer install
安裝過程中會下載一些框架核心包,慢慢等待即可。
安裝完成后通過URL地址訪問:
這里需要提醒一下:要把域名解析到public目錄,才可以正常訪問
listen 80;
server_name www.laravel.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.laravel.com/public;
一開始時自己把域名解析到 /home/wwwroot/www.laravel.com 目錄,通過域名范圍后報404錯誤。文章轉載自 [http://www.php230.com](編輯:雷林鵬 來源:網絡 侵刪)