Setting Up Symfony on Ubuntu 7.10 64bit

So you have your shiny new *buntu installed and now you want to start hacking with your favorite framework, Symfony. This quick guide will have you up and running in a few minutes. I assume you have installed Apache 2, PHP5 and MySQL 5 using the defaults with Synaptic.

sudo vi /etc/apt/sources.list


deb debian/
sudo apt-get update
sudo apt-get install php5-symfony
mkdir /var/www/test
cd /var/www/test
symfony init-project mytest
symfony init-app myapp
sudo vi  /etc/apache2/sites-enabled/000-default

Add this to the end:

<Directory "/usr/share/php5/symfony/data/web/sf">
  AllowOverride All
  Allow from All
<VirtualHost *>
  DocumentRoot "/var/www/test/web"
  DirectoryIndex index.php
  Alias /sf /usr/share/php5/symfony/data/web/sf

  <Directory "/var/www/test/web">
    AllowOverride All
    Allow from All
sudo a2enmod rewrite
sudo vi /etc/hosts

Add this:
vi /etc/php5/apache2/php.ini

Make sure:

magic_quotes_gpc = Off
apache2 restart

Type in your browser.

Done 🙂

Speak Your Mind