Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (51 sloc) 1.25 KB

Ubuntu 11.04

Install apache and php

    $ sudo apt-get install apache2 php5 php5-mysql php5-curl

Enable mod_rewrite

    $ cd /etc/apache2/mods-enabled/
    $ sudo ln -s ../mods-available/rewrite.load

Add the apache directory configuration from the README

    $ sudo nano /etc/apache2/sites-available/default 

Symlink your repository into your web content

    $ cd /var/www
    $ sudo ln -s ~/path/to/repo foodtrucks

Make some of your repository files editable by the apache user

    $ cd ~/path/to/repo
    $ chown -R www-data protected

Restart Apache so the configurations take effect

    sudo /etc/init.d/apache2 restart

MySQL setup

Install mysql server (this also runs the server)

    sudo apt-get install mysql-server

Connect to the server and run the commands from the README (use the root password you setup while installing)

    mysql -u root -p

And you're done!

Development setup

    sudo apt-get install coffeescript

Workaround bug 777554:

Add a link to nodejs on your $PATH

    cd ~/bin;
    ln -s /usr/bin/node nodejs