Install a LAMP Server Ubuntu 13.04 & 13.10

Install a LAMP Server Ubuntu 13.04 & 13.10

This is a short tutorial that shows the simplest way to install a LAMP server on Ubuntu 12.10, 13.04 & 13.10. Best of all it should take less than 5 minutes.

Note: This is only intended for development purposes and is probable not secure enough for hosting a live site.

Install Tasksel
sudo apt-get install tasksel

run tasksel as root
sudo tasksel install lamp-server

Enter a password which will be used to access the MySQL databases.
Ubuntu Task Sel – lamp install – step 2

Now that the Lamp is installed we just need to sort out the permissions.

Add yourself to www-data group.
sudo usermod -a -G www-data YourUserName

change /var/www to www-data user group
sudo chgrp -R www-data /var/www

Give read write permissions to www-data
sudo chmod -R g+w /var/www

Logout log back in.

Test that everything is working by going to http://localhost you should see a page that displaying “It Works!”

Delete index.html from /var/www.

You may want to create a symlink of www to your home directory.
ln -s /var/www ~/www
GNU/Linux

Leave a comment