Download the framework from the Symfony website. Here's a
link.
Either download the package directly to your /var/www directory or move it there yourself.
# cd /var/www
# tar xfz symfony.tgz
You'll now have a directory labelled Symfony in your /var/www directory.
Now navigate to http://localhost/Symfony/web/config.php.
Some comman requirements and warnings :
1. Install and enable the SQLite or PDO_SQLite extension. Just run these two commands. It doesn't matter what directory you're in.
#apt-get install php5-sqlite
#sudo apache2ctl restart
2. Change the permissions of the app/cache/ directory so that the web server can write into it.
#sudo chmod -R 777 /var/www/Symfony/app/cache
3. Change the permissions of the app/logs/ directory so that the web server can write into it.
#sudo chmod -R 777 /var/www/Symfony/app/logs
4. Set the date.timezone setting in php.ini. (like Europe/Paris).
#sudo vim /etc/php5/apache2/php.ini
Find the line with ;date.timezone = under the [Date] section, and set it to your timezone based on PHP's list of timezones. I chose America/New_York because sometimes I wish I lived there. Also, make sure to remove the semicolon at the beginning of the line!
#sudo service apache2 restart
5. Install and enable a PHP accelerator like APC (highly recommended).
#sudo apt-get install php-apc
#sudo apache2ctl restart
6. Install and enable the intl extension.
#sudo apt-get install php5-intl
#sudo apache2ctl restart
7. Set short_open_tag to off in php.ini.
#sudo vim /etc/php5/apache2/php.ini
Find the line with short_open_tag = On and change it to short_open_tag = Off
Either download the package directly to your /var/www directory or move it there yourself.
# cd /var/www
# wget -O symfony.tgz
http://symfony.com/download?v=Symfony_Standard_Vendors_2.0.0BETA1.tgz
# tar xfz symfony.tgz
You'll now have a directory labelled Symfony in your /var/www directory.
Now navigate to http://localhost/Symfony/web/config.php.
Some comman requirements and warnings :
1. Install and enable the SQLite or PDO_SQLite extension. Just run these two commands. It doesn't matter what directory you're in.
#apt-get install php5-sqlite
#sudo apache2ctl restart
2. Change the permissions of the app/cache/ directory so that the web server can write into it.
#sudo chmod -R 777 /var/www/Symfony/app/cache
3. Change the permissions of the app/logs/ directory so that the web server can write into it.
#sudo chmod -R 777 /var/www/Symfony/app/logs
4. Set the date.timezone setting in php.ini. (like Europe/Paris).
#sudo vim /etc/php5/apache2/php.ini
Find the line with ;date.timezone = under the [Date] section, and set it to your timezone based on PHP's list of timezones. I chose America/New_York because sometimes I wish I lived there. Also, make sure to remove the semicolon at the beginning of the line!
#sudo service apache2 restart
5. Install and enable a PHP accelerator like APC (highly recommended).
#sudo apt-get install php-apc
#sudo apache2ctl restart
6. Install and enable the intl extension.
#sudo apt-get install php5-intl
#sudo apache2ctl restart
7. Set short_open_tag to off in php.ini.
#sudo vim /etc/php5/apache2/php.ini
Find the line with short_open_tag = On and change it to short_open_tag = Off
Configure
- At the end of the configuration script, it will try to write
to
/var/www/Symfony/app/config/parameters.ini
, so we have to make sure it's writable.
#Sudo chmod 777 /var/www/Symfony/app/config/parameters.ini
This is my first opportunity to visit this website. I found some interesting things and I will apply to the development of my blog. Thanks for sharing useful information.
ReplyDeleteThanks for comment,
ReplyDeleteI keep provide some interesting things in future.
so keep reading my blog.
I'm looking for such a procedure but this one is not working. I prepared my own, based on symfony2 application on Windows and now I want to move it to UBUNTU 14.04 server. Could you help me?
ReplyDelete