Just for the records and to give some hope ;-) I found where the problem is and patched the sources to fix the problem for me.
I will not suggest or recommend my solution (patch) because this should be solved when PHP 4 will be fully supported with Apache 2.x. Yes I had this error certainly due to this combination (Apache 2.0.36 and PHP 4.2.1, Solaris 8, etc...) On file "./sapi/apache2filter/apache_config.c" changed the string "OR_NONE" on line 131, to "ACCESS_CONF|RSRC_CONF". Based on line 866 of file: "./sapi/apache/mod_php4.c" After that I was presented with a new nice error: Warning: SAFE MODE Restriction in effect. The script whose uid/gid is -1/-1 is not allowed..." For any file I was trying to access. This again is certainly due to the fact that this is experimental code for Apache 2.x. I found where the problem is and patched the sources too. For the curious and in case this is not yet known, the problem originates on the "./main/safe_mode.c" file, because the php_getuid() and php_getgid() functions always return -1. In fact the problem comes, even more deeply, from the php_statpage() or sapi_get_stat(). I decided not to go further and patched the php_getuid() and php_getgid() directly (on file "./ext/standard/pageinfo.c"). I've done this by checking the value that is supposed to be returned and if it is -1 go another way and get the correct executing script uid/gid. Victor Fernandes Victor Fernandes wrote: > > I'm trying to setup Apache and PHP (as an apache module), but I'm > having some problems configuring php on the apache configuration > file to allow different parameters for all my virtual hosts. > If I read the php documentation correctly I'm supposed to be > able to set parameters with the php_admin_value directive. > The php module refuses this directive on any location of the > apache configuration file. The error is: > bash-2.03# /etc/init.d/apachectl start > Syntax error on line 1072 of /usr/local/apache2/conf/httpd.conf: > php_admin_value not allowed here > /etc/init.d/apachectl start: httpd could not be started > > The module appears to accept the php_value directive but only > for some of the available parameters. > > I found some references to the same problem on the archives > by found no solution or reason for the problem. > > Any help will be appreciated. > > Thanks, > > Victor Fernandes > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php