PDA

View Full Version : php5 directives in httpd.conf


IrPr
11-27-2010, 03:29 AM
Hi there,
after upgrading to 4.0.17 it seems php5_admin_value is not working properly while php_admin_value works fine

Here is VH php directives which doesn't set open_basedir value


<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/user:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/ph$
php5_admin_value open_basedir "/home/user:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/user:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib$
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/user:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/user:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib$
</IfModule>
</IfModule>


however changing php5 to php at 3nd line fixes that:

<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/user:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/ph$
php_admin_value open_basedir "/home/user:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>


to me it seems conditions parsing or php5_* directives issue

also tried latest 4.0.18 but the same while 4.0.16 is okay
please inform me when got patched

Regards

NiteWave
11-27-2010, 04:34 AM
can you give the output of open_basedir value in phpinfo()?

IrPr
11-27-2010, 09:54 AM
can you give the output of open_basedir value in phpinfo()?
Its null using php5_admin_value directive
Also tried changing another variables such as register_globals

php_admin_value works but php5_admin_value

mistwang
11-27-2010, 03:21 PM
You can add "concurrent_php" to Ignored Apache modules in server->general tab.
php4_admin_value, php5_admin_value directives are not supported as it is not PHP standard