Thread: [HOWTO] Install Symfony2 with MySQL in ubuntu 11.10 (Oneiric)
hey all,
installation procedure makes install things in drips , drabs, thought i'd put no-nonsense install guide:
1. install ubuntu 11.10 server without packages.
2. run (putting in appropriate timezone):3. run:code:sudo apt-get install -y unzip firefox git mysql-server mysql-admin apache2 php5 libapache2-mod-php5 php5-mysql php-apc php5-xsl php5-intl php5-sqlite acl sudo sed -i "s/^short_open_tag = on$/short_open_tag = off/" /etc/php5/apache2/php.ini sudo sed -i "s/^;date.timezone =.*$/date.timezone = europe\/dublin/" /etc/php5/apache2/php.ini sudo aptitude -y dist-upgrade sudo usermod -a -g www-data `whoami` sudo chown -r www-data:www-data /var/www sudo chmod -r g+w /var/www sudo reboot4. i'd recommend running:code:cd /var/www wget http://symfony.com/get/symfony_standard_vendors_2.0.9.zip unzip symfony_standard_vendors_2.0.9.zip rm symfony_standard_vendors_2.0.9.zip cd symfony sudo setfacl -r -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs sudo setfacl -dr -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs ./bin/vendors install --reinstall # can take long time... sudo chown -r www-data:www-data /var/www5. set dedicated user , schema in "mysql-admin" , ensure user has full access schemacode:sudo apt-get install -y ufw sudo ufw default deny sudo ufw allow ssh sudo ufw allow http sudo ufw enable
6. set rest through interface:done!code:firefox --no-remote http://localhost/symfony/web/config.php
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] [HOWTO] Install Symfony2 with MySQL in ubuntu 11.10 (Oneiric)
Ubuntu
Comments
Post a Comment