Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Latest commit

 

History

History
74 lines (51 loc) · 1.25 KB

LinuxSetup.md

File metadata and controls

74 lines (51 loc) · 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:

https://bugs.launchpad.net/ubuntu/+source/coffeescript/+bug/777554

Add a link to nodejs on your $PATH

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