Re: [PHP] right name for IfModule bla.c
Em Tue, Sep 24, 2002 at 08:59:54AM +0100, Chris Hewitt escreveu: It looks fine to me (I'm no expert), but maybe its case sensitive? You have /Ifmodule rather than /IfModule. Otherwise perhaps remove the IfModule completely for a test to see if it is the /IfModule causing the problem. It's not the IfModule, already tried that :) Someone at the apache list told me that the name would be sapi_apache2.c, because that's where the STANDARD20_MODULE_STUFF define is used. But sapi_apache2.c didn't work either. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] right name for IfModule bla.c
Em Tue, Sep 24, 2002 at 11:08:06AM -0400, Paul Nicholson escreveu: What exactly is not working? The directives inside the IfModule branches are being ignored. Thus the include path is not being modified and my application doesn't work. I know, I can change the application to include the right path, but it's not mine and I want as few patches as possible. This means that either the module is not loaded (but it is), or I'm checking it with the wrong name (that's what I think it is). If I but blablabla inside the IfModule no error happens. But, just for testing, if I change mod_php4.c to mod_ssl.c (for example), which is also being loaded, then apache won't start because of the blablabla. So, I still think it's the name that is wrong. Did you check to see if the engine is turned on? It is on, the module is loaded. The application runs, but can't find its include files. If it is not then try php_admin_flag engine on. Why are you turning the engine on? Is it disabled everywhere else? The include path should have Yes, it's disabled by default for the whole documentroot here. I only enable it where I expect PHP scripts to run. double quotes surrounding it and the paths in directory should not. HTH! Thanks, will give it another try with these variations. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] right name for IfModule bla.c
Em Tue, Sep 24, 2002 at 08:53:16PM +0100, Chris Hewitt escreveu: Andreas Hasenack wrote: Someone at the apache list told me that the name would be sapi_apache2.c, because that's where the STANDARD20_MODULE_STUFF define is used. But sapi_apache2.c didn't work either. Ah, I didn't know you meant Apache 2 and windows? I'm going on Apache 1.3.x and linux. No, it's apache-2.0.41-dev, php-4.2.3 and linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] right name for IfModule bla.c
What is the right name to use in apache's (2.0.41-dev) IfModule directive to test if the php4 module is loaded? I'm including the file below via httpd.conf's Include statement but the part between the IfModule is being completely ignored: Directory /srv/www/default/html/acid AllowOverride None order deny,allow Deny from all Allow from 127.0.0.1 IfModule mod_php4.c php_flag engine on php_value include_path '.:/srv/www/default/html/acid/config' /Ifmodule /Directory Directory /srv/www/default/html/acid/config order deny,allow deny from all /Directory I'm using php-4.2.3 (compiled with apxs2) and apache-2.0.41-dev. The PHP module *is* being loaded in another included file, but it doesn't matter if I put the above in an external file or in httpd.conf itself. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php