Install the LAMP server on Ubuntu 10.10
After not messing with Ubuntu for almost two years, I decided it was time to give it another shot and I installed Ubuntu 10.10.
Eveything looks super nice now. But when I tried to install LAMP, the option just wasn’t there.
After some research, I found the solution. Just go to your terminal and type this:
sudo apt get install tasksel
After it’s installed, just type:
sudo tasksel
and select LAMP server by pressing space, press tab to select enter and you’re good to go.
It will take a while depending on your connection.

After that, restart Apache2 to make sure PHP works:
sudo /etc/init.d/apache2 restart
That’s it! you can go now to http://localhost/
The www folder (the one you put your files on) is located at /var/www, but there’s a problem: the permissions are set only for the super user.
To fix this, we chown the folder with your username:
cd /var/wwwsudo chown -R YOURUSERNAME
Don’t forget to bookmark /var/www on Nautilus to find it easily. On the next post I’ll discuss setting virtual hosts.