So lets show you another way to install lamp under ubuntu 9.10 karmic Koala .
First ,under Terminal type the command :
$sudo tasksel
you will get something like :

Now you have to shoose the LAMP line and SPACE key to select LAMP Server .
After, you will asked to insert root mysql password

After the procedure will start downloading and installing needed packages for LAMP

Of with this command :
sudo apt-get install php5 mysql-server apache2
Or with :
$ sudo tasksel install lamp-server
Now lets check of its working .
Check the apache2 from your browser :
Http:Ip or hostname
Now check if your Mysql is wokring with:

Chcek if php is working :
$sudo vi /var/www/info.php
and add
save and exit
restart apache2
#/etc/init.d/apache2 restart
and browse again http://ip/info.php

Enjoy and feel free to ask






sudo apt-get install php5 mysql-server apache2