Click to See Complete Forum and Search --> : PHP doesn't work as a DSO with Apache!


Anon
08-09-2000, 12:54 AM
I'm trying to install the latest version of php (4.01pl2), and I'm following
their instructions for installing it as a DSO. This is under RedHat 6.2.
Everything compiles fine. Apache has DSO enabled (mod_so is present
when I go httpd -l). Then, I put in the appropriate line in
httpd.conf:
AddType application/x-httpd-php .php

However, when I create a simple PHP page, it doesn't load it
as a PHP page. It doesn't process it, and it returns it as MIME type
of x-httpd-php, which the browser doesn't know how to handle,
of course.

I followed the very simple instructions for building PHP as a DSO, and
it didn't work. Any ideas?

Thanks.

Anon
08-09-2000, 01:38 PM
do you have it loaded as a module?

from httpd.conf (Slackware, !RedHat)
[section: Dynamic Shared Object (DSO) support: ]

LoadModule php4_module libexec/libphp4.so

and below that,
AddModule mod_php4.c

Russ
Cowboyz.com

Anon
08-10-2000, 07:26 PM
Do you have the LoadModule line in your httpd.conf??

It should be something like this

LoadModule php4_module libexec/libphp4.so

If you do and your httpd.conf is working I'd love to know how you got that to happen as that's what I'm stuck on.

If that's not the problem then check to see if you have two MIME types specified for the same file extension .php or .html or any at all.

Eric

Anon
12-03-2001, 02:31 PM
I have same problem, except that libphp4.so is no where to be found on the server.

Any ideas why this mod didn't install correctly? It installed correctly and all test pass fine.
--------------------------------------------
DAMN PHP!!