wait, I was waiting for your reply if you have
libphp5.so or not.
Because if you don't have, the solution will not work for you and I will have to tell you other method.
But it looks like you have the file otherwise you would mention it.
Now make links of these two files in
/etc/apache2/mods-enabled
Run these commands on terminal.
Code:
$ ln -s /etc/apache2/mods-available/php5.conf /etc/apache2/mods-enabled/php5.conf
$ ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/php5.load
When you will create the links, now you should try
Code:
$ sudo a2enmod php5
I hope, it will not give the error
ERROR: Module php5 does not exist! or ERROR: Module php does not exist!
It should give the message.
Code:
Enabling module php.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Now restart apache2 and try to access your index.php