LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP on Slackware 13 64 (https://www.linuxquestions.org/questions/linux-server-73/php-on-slackware-13-64-a-779287/)

bobb.harley 01-01-2010 03:31 PM

PHP on Slackware 13 64
 
Hello,
I am trying to get PHP5 working on Apache 2.2.13. When loading the PHP file in the web browser, the server does not appear to be passing the php off to the interpreter. Instead, the browser just treats the first command as an HTML comment and displays the rest to the user.


Relevant lines from httpd.conf:
LoadModule php5_module lib64/httpd/modules/libphp5.so
AddType text/html .php
#AddType application/x-httpd-php .php
AddHandler php-script .php

The second AddType is commented out because it causes Firefox to try to download the php instead of displaying it.

Output from httpd -M:
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
php5_module (shared)
.
.
.
.

Does it sound correct to think that there is some type of disconnect between Apache and the PHP interpreter?

Hangdog42 01-02-2010 04:34 AM

You might be missing an Include statement in your httpd.conf. At least on my rig (Slackware, not Slackware64) there is this:
Code:

Include /etc/httpd/mod_php.conf
Most of what you have in httpd.conf appears to be in mod_php.conf along with some other configurations and it could be that something is missing from your config.


All times are GMT -5. The time now is 09:34 AM.