For some reason any php snippet does not render in my browser. I know it gets evaluated because it’s not displayed as text either. I did the following:
- In httpd.conf I found the load module line for the php5 lib and uncomented it
- I renamed the php.ini.default to php.ini in the /etc dir
- I restarted apache
That didn’t work and there doesn’t really seem much else that I can do. Any ideas what could be the problem?
I’m running Mac OS 10.6.8 (Leopard).
**Edit
Also my access_log and error_log for httpd look clean. No sign of errors. Also tried a different browser.
**Second Edit
If I have the file extension as php, the page gets rendered but any embedded php within html does not render.
Sounds like it could be a problem with mod_php. Basically, it sounds like Apache is running .php files using the PHP interpreter, but mod_php might not be configured correctly.
You might want to read this: http://php.net/manual/en/configuration.changes.php