Ubuntu 12 - Set up dev LAMP server

sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
select LAMP server and follow installation instructions.
Setting up apache
sudo gedit /etc/hosts
Add a line for each domain you want to add/test for example the top of mine looks like: dating.localhost localhost hp-stu
Allow htaccess url rewrites in Apache:
sudo a2enmod rewrite
Move the folder from /var/www to /home/user/public_html (as home directory is encrypted)
sudo gedit /etc/apache2/sites-available/default
cd ~
chmod +x public_html
Add a virtualhost for each domain, an example below:

No comments:

Post a Comment