Apache with PHP in Slackware 9.0
I did a full installation of Slackware 9.0 and I'm trying to get the PHP module to work with Apache. So far, no matter what I do, the php tags (such as <?php phpinfo(); ?>) are visible in the output to the browser.
When I restart Apache, a notice is added to the error_log file, saying PHP is configured. This leads me to believe that PHP is actually running, and just not recognizing the tags.
The mod_php.conf file is being included from httpd.conf, so the LoadModule and AddType lines are being included, and I've tried putting those lines in different places within the httpd.conf file with no results. The php files have read and execute permissions set so this shouldn't be an access problem, either.
The exact lines are:
LoadModule php4_module libexec/apache/libphp4.so
AddType application/x-httpd-php .php
The original versions were Apache 1.3.27 and PHP 4.something. I've reinstalled them a dozen times, including from source, and now am running Apache 1.3.29 and PHP 4.3.3 (installed from the current distribution's packages). I've gotten the same results each time.
If anyone has any ideas on what might be wrong, it would be greatly appreciated.
Thanks!
|