php5 directives in httpd.conf

Discussion in 'Bug Reports' started by IrPr, Nov 27, 2010.

  1. IrPr

    IrPr New Member

    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: Nov 27, 2010
  2. NiteWave

    NiteWave Administrator

    can you give the output of open_basedir value in phpinfo()?
  3. IrPr

    IrPr New Member

    Its null using php5_admin_value directive
    Also tried changing another variables such as register_globals

    php_admin_value works but php5_admin_value
  4. mistwang

    mistwang LiteSpeed Staff

    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

Share This Page