There is an very easy way installing Lamp server in ubuntu 9.10,9.04,and 8.10.And this lamp server will be automatically upgraded to latest version after upgrade the ubuntu system.

First,open synaptic from System->Administration->Synaptic Package Manager,and navigate to Edit->Mark Packages by Task.

lamp_server

Check “LAMP server” in this window and click on OK.

lamp_server1

Just so easy,test by typing 127.0.0.1 in browser address bar and you will see “it works!”.Now,you can put your php programs into /var/www/.The only thing need to do is that you should change permissions of /www directory.