Before we introduce my composer installation, here we go on to introduce the installation of the Laravel framework.
We have a Laravel 4 installed here.
Project Download Address: Https://github.com/laravel/laravel
Installation Requirements:
1, PHP minimum version: 5.3.7
2, Support MCrypt expansion
3, support OpenSSL expansion
In addition, the need to support the Proc_open, proc_get_status functions, in the installation process, because it does not support these 2 functions, installation error failed
The code is as follows |
Copy Code |
[Symfony\component\process\exception\runtimeexception] The Process class relies on Proc_open, which isn't available on your PHP installation. [Errorexception] Proc_get_status () has been disabled for security reasons |
You can see if the 2 functions are supported through the disable_functions in the PHP configuration file.
To get to the point, Laravel installation method:
1, download the installation package, decompression
2, into the decompression directory, the implementation of orders
Composer Install installation process will download some of the framework core package, slowly wait.
Access through URL address after installation completes:
Here is a reminder: To resolve the domain name to the public directory, you can access the normal
The code is as follows |
Copy Code |
Listen 80; server_name www.111cn.net; Index index.html index.htm index.php default.html default.htm default.php; Root/home/wwwroot/www.laravel.com/public; |
At the beginning of the domain resolution to the/home/wwwroot/www.111cn.net directory, through the domain name range after the 404 error
Installed without--prefer-dist, there are more than 100 m
Composer Create-project Laravel/laravel.--prefer-dist