sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
select LAMP server and follow installation instructions.
sudo apt-get install tasksel
sudo tasksel
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:
127.0.0.1 dating.localhost
127.0.0.1 localhost
127.0.1.1 hp-stu
127.0.0.1 localhost
127.0.1.1 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
chmod +x public_html
Add a virtualhost for each domain, an example below:
No comments:
Post a Comment