Wednesday, July 20, 2011

Symfony note (Basic project setup)

Some basic setup of symfony projects

Download and install symfony

Create a project directory (e.g. /project/symfony/projectx)
in the project path (/project/symfony/projectx), run the following command
symfony generate:project "name of your project", in this case
symfony generate:project projectx
Change the permission of cache and log to 777 (Make sure they are not in your web root)
chmod 777 log/ cache/

Download the symfony framework and unzip it in the lib/vendor (need to be created) folder of your project
in this case /project/symfony/projectx/lib/vendor/symfony

Define the new site in httpd.conf (refer to Practical Symfony 1.4 Doctrine version Day 2 exercise)
Link the image folder through adding a Location directive in httpd

You should now be able to access your site through http://localhost:8080/

No comments: