Monday, June 7, 2010

Symfony Installation and Environment setup

Symfony is a php framework, it is mostly similar to Ruby in Rails. In this blog i am going to give steps to set-up your development environment.

Download symfony from:
http://www.symfony-project.org/installation

Make Project dir (my one is myapp)

$ mkdir -p myapp/lib/vendor

Installing
Extract symfony tarball to lib/vendor and rename it as symfony
Installation Verification
$ php lib/vendor/symfony/data/bin/symfony -V
Project Setup
From the sfprojects/jobeet, run the symfony generate:project task (generates the default structure of directories and files)
$ php lib/vendor/symfony/data/bin/symfony generate:project myapp
Application Creation
create the frontend application (now your current dir is your project root)
$ php symfony generate:app frontend
Directory Structure Rights
$ chmod 777 cache/ log/

deploy the application to your server

Test the New Configuration
http://localhost/myjobbeet/web/index.php
You may get a style less page with Symfony Project Created
to solve it copy sf folder form lib/vendor/symfony/data/web/sf to web folder of your project root
also try
http://localhost/frontend_dev.php

Now your set up is successful.

No comments:

Post a Comment