Symfony2 installation method (2 methods)

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.