Symfony is entirely free and published under the MIT license.
I'm currently following the online Symfony tutorial which can be found here: Practical Symfony.
This post documents how I got Symfony 1.4 running on an Ubuntu 10.04 Server installation. When I installed the server, I chose the option to install a default LAMP and Email server.
To install the php5 command line interface which is needed to use symfony commands:
sudo apt-get install php5-cli
Create the project directory:
mkdir -p sfprojects/jobeet
cd sfprojects/jobeet
cd sfprojects/jobeet
Create vendor directory where the symfony framework will be installed
mkdir -p lib/vendor
cd lib/vendor
wget http://www.symfony-project.org/get/symfony-1.4.6.tgz
tar zxvf symfony-1.4.6.tgz
ln -s symfony-1.4.6 symfony
cd lib/vendor
wget http://www.symfony-project.org/get/symfony-1.4.6.tgz
tar zxvf symfony-1.4.6.tgz
ln -s symfony-1.4.6 symfony
Verify symfony is installed correctly
php symfony/data/bin/symfony -V
Generate the project
cd ~/sfprojects/jobeet
php lib/vendor/symfony/data/bin/symfony generate:project jobeet
./symfony generate:app frontend
ln -s lib/vendor/symfony/data/web/sf web/
php lib/vendor/symfony/data/bin/symfony generate:project jobeet
./symfony generate:app frontend
ln -s lib/vendor/symfony/data/web/sf web/
Deploy the project to the apache server
sudo ln -s ~/sfprojects/jobeet/web /var/www/jobeet
You can now visit: http://ubuntu_server_ip/jobeet to see the default home page generated by symfony.
This ends Day#1 of my Symfony 1.4 learning experience.
I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.
No comments:
Post a Comment