Using Karmic, there's a esay way to do this:
sudo apt-get install lamp-server^
That's all! Enjoy your LAMP server :-)
Oh, I forgot, maybe you have to setup your DirectoryIndex parameter in your apache configuration, in order to recognize index.php

Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04
Read ubuntu 11.10 reviews and share yours now!!