I have L-Ubuntu 11.04. I've installed Apache2 and I'm trying to simulate a server on my local file system by navigating to
localhost in the browser.
The problem is that I can't seem to get php to execute when on localhost. The PHP code is simply printed in the browser (instead of being executed and the result being printed).
libapache2-mod-php5is installed and the latest version.
- The Apache module php5 is enabled.
How can I get PHP to run on localhost?