I've seen this question a couple of times already, but was not able to resolve my issues. I've recently set up a dual-boot installation of Ubuntu in order to better acquaint myself with the LAMP environment. I've set up a virtual host, and when I direct my browser to index.html within that host I get the html in the browser - but when I point the browser to index.php (which contains a phpinfo() call) I get nothing. I've tried removing/purging and reinstalling the php5apachemysql libs/mods, emptied my cache, checking the mods-available/enabled folders to no avail. Can anyone help me get to grips with this problem?
There are a couple of different possibilities here. It might be that the PHP module isn't loaded but it's also an option that the files have not been set to be handled by the php module.
Either way, in
To enable all php-like things you can do this (as root, use
After that simply restart apache and everything should be enabled. If it still isn't working than it would be useful to see the output from the log files (
I resolved this after looking at the PHP installation troubleshooting section of the Netbeans site, which recommended the following:
They omitted any explanation as to why this worked, but it did. I'd be grateful if anyone here could shed some light on why this resolved the issue.