Hi,

This has been driving me nuts for quite a while now. I've googled, and looked at Plesk, php and Apache2 support forums for this but have no more clues.

I have a box running Red Hat FC2, Apache 2.0.51 and PHP 5.0.4. The client manages their websites through Plesk, which uses this notation to turn PHP on and off on each virtual host, in the httpd.conf snippet:

<IfModule sapi_apache2.c>
        php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/stells.co.uk/httpdocs:/
</IfModule>

What this means is that if the sapi_apache2 module is available, then turn php on for this site. This is part of the Plesk way of doing things. However, I have been unable to make php5 build with the sapi_apache2 module. It doesn't show up in a phpinfo() output. I built it with a bunch of other modules, but used the --with-apxs2=<path to apxs>. The configure output showed that it wanted to build it as a apache2 handler DSO.

However, because it doesn't seem to have the sapi_apache2 module anywhere in it, php never gets turned on. If I comment it accordingly:

#<IfModule sapi_apache2.c>
        php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/stells.co.uk/httpdocs:/
#</IfModule>

Then php5 works fine, so I can infer that apache2, and php are actually working, it's just this module issue. Can anyone shed any light on what's going on here? I can provide more specific information if needed, configure output, build output, etc.

Many thanks,

Gaby.

--
Junkets for bunterish lickspittles since 1998!
[EMAIL PROTECTED]
http://weblog.vanhegan.net

Reply via email to