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.
I don't know if this will help but I had a similar problem before. It turns out I forgot to copy php.ini-dist to /usr/local/lib/ as php.ini
So make sure you have a /usr/local/lib/php.ini
Does your mod_php.conf also have the following line?
 BTW the php.ini file is in /etc/apache on my Slack 9.0 install. Don't remember where install from source puts it. [/edit]
Hmm wonder if the user ever figured this out?
|All times are GMT -5. The time now is 02:21 AM.|