[KLUG Members] Oh, the joys of upgrading!

Adam Williams members@kalamazoolinux.org
Fri, 27 Dec 2002 09:06:32 -0500 (EST)


>Moving things along to Apache2/PHP, I couldn't help but notice that 
>expressions like:
>  php_flag magic_quotes_gpc Off
>Seem to have gone out of fashion. This was even harder to ignore when
>attempting to restart httpd.conf which such expressions yeilded the
>following result:
>Starting httpd: Syntax error on line 94 of /etc/httpd/conf/new-virthosts.conf:
>Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
>                                                           [FAILED]
>But...but... it worked in version 1.x!

Actually, I've seen this in 1.x.  It depended on the order of declaration.  
I needed to load the PHP module before I defined directories with php_ 
declarations.  Even then the php_ statements seemed a bit iffy,  like I 
saw the values in phpinfo() but they didn't really seem to have the 
intended effect,  while putting them in php.ini worked.

Strange,  or I'm probably missing something obvious.

>OK, no whining. Time marches on and we no long are running PHP as a module. 
>However, I'd like the same effect, being able to in essence set these values
>per virtual host. It is interesting to note that there was no objection to
>the use php_value on the previous line of the file.

Interesting.

>If someone has been trhough this territory, please illuminate the way. Some

I've been through, but only by groping in the dark, so no illumination to 
offer.  It is frustrating.