Update the update repository
#sudo apt-get update
Install PHP modules
Ex:
# apt-get install php5-curl php5-gd php5-mcrypt
Enable rewrite module
# a2enmod rewrite
(After this only that modules will be enabled and comes effective)
Then,
#/etc/init.d/apache2 restart
Reference:
http://www.geekality.net/2011/09/18/quick-installation-of-lamp-on-ubuntu/
Cheers
