If you facing this error on your ubuntu system while operating apache2, here is solution for you.
Install following package on your ubuntu system.
Install following package on your ubuntu system.
sudo apt-get install libapache2-mod-php5
Now try again.