php5 directives in httpd.conf

IrPr

Well-Known Member
#1
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

Code:
    <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:
Code:
    <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
 
Last edited:

mistwang

LiteSpeed Staff
#4
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
 
Top