This article mainly introduces the Symfony2 installation method, and analyzes the two installation methods and specific steps in detail. if you need it, refer to the following article to describe the Symfony2 installation method. We will share this with you for your reference. The details are as follows:
1. install Symfony with Composer
The method for installing Symfony by Composer is described in the previous article "ten minutes of Symfony ".
II. install Symfony Installer
Here we will introduce the second method for Symfony Installer to install Symfony.
1. install Symfony Installer
Console Command Execution
[Sun@localhost html]$ curl -LsS http://symfony.com/installer > symfony.phar[root@localhost html]# mv symfony.phar /usr/local/bin/symfony[root@localhost html]# chmod a+x /usr/local/bin/symfony
Now you can use symfony as the global command to execute the Symfony installation program.
2. create a project
Create a project named Blog under the web root directory
The code is as follows:
[Sun @ localhost html] $ symfony new Blog
This command creates a new project named Blog, based on the latest stable Symfony version. In addition, the installer checks whether your system meets technical requirements to run the Symfony application. If not, you will see a list of changes to meet these needs.
In this way, the Symfony application named Blog is installed. For how to configure it, I will go into details in "Ten minutes of Symfony.
Permanent Address: http://blog.it985.com/7482.html
This article is from the IT985 blog. please indicate the source and relevant links when reprinting.