[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Testing apache1.3 and apache2 in parallel with PHP



Adam Kessel wrote:
> Sebastian Rose wrote, on 3/23/2009 1:39 PM:
>> Adam Kessel <ajkessel@debian.org> writes:
>>
>>> Thomas Goirand wrote, on 3/23/2009 12:40 PM:
>>>>> I understand php_flag is not supported in apache2,
>>>> It sure is!!!
>>> I was basing that on this:
>>>
>>> "Note that php_flag does not work with Apache 2. Neither does on /
>>> off — you
>>> must use 0 (off) or 1 (on)."
>>> http://dan.drydog.com/apache2php.html
>>>
>>> Not correct?
>>
>> No. It works.
>>
>> NOTE the `IfModule' has to look like this:
>>
>> <IfModule mod_php5.c>
>>     php_value zend.ze1_compatibility_mode 0
>>     php_value upload_max_file_size 50M
>>     php_value max_execution_time 800
>>     php_value register_globals 0
>> </IfModule>
> 
> Even with these settings, I still get this in error.log:
> 
> .htaccess: php_flag not allowed here

First, you need to have a look at the AllowOverride directive of apache,
second, it seems that you are confusing php_flag and php_admin_value.
Are these 2 exactly the same? I don't think so. It's a kind of mess for
me to see all these:

- php_value
- php_admin_value
- php_flag
- php_admin_flag

I used to use only:
- php_admin_value (in my apache2.conf)
- php_flag (in my .htaccess)

Can anyone tell what's the truth about it? I'm puzzled now... :)

Thomas


Reply to: