PHP 4.0 Bug #10241: php_flag dosn't work in httpd.conf, but it works in .htaccess files

From: Date: Mon, 09 Apr 2001 12:45:06 +0000
Subject: PHP 4.0 Bug #10241: php_flag dosn't work in httpd.conf, but it works in .htaccess files
Groups: php.dev 
Request: Send a blank email to php-dev+get-51190@lists.php.net to get a copy of this message
From: vl@ez.no Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: *Configuration Issues Bug description: php_flag dosn't work in httpd.conf, but it works in .htaccess files Hi Maybe I have missunderstud something but I thought that directives like php_value, php_flag, php_admin_value and php_admin_flag may be used in httpd.conf. This doesn't seem to be the case with php4.0.4pl1. I have tried it both in global, VirtualHost and in a directory section. It always cause this error message: # httpd -t Syntax error on line 1196 of /etc/httpd/conf/httpd.conf: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration I have php4 installed for sure.... Then I tried to put the statment in a .htaccess filephp_flag magic_quotes_gpc off Then it worked System is apache 1.3.14, php-4.0.4pl1, redhat6.2 and redhat7.0 ./configure --enable-ftp --with-xml --with-dom --enable-trans-sid --with-config-file-path=/etc/httpd --with-mysql --with-magic-quotes --with-apxs --with-ttf --with-qtdom --with-pgsql --with-gd --with-imap --includedir=/usr --with-openssl=/usr --enable-shmop --enable-sysvsem Best regards Vidar -- Edit Bug report at: http://bugs.php.net/?id=10241&edit=1

« previous php.dev (#51190) next »