open_basedir not present in user httpd.com

ehsanch

Verified User
Joined
Jun 2, 2008
Messages
46
i have default DA template with this lines :
Code:
|*if OPEN_BASEDIR="ON"|
                php_admin_value open_basedir |OPEN_BASEDIR_PATH|
|*endif|
|*if SUPHP="1"|
                suPHP_Engine |PHP|
                suPHP_UserGroup |USER| |GROUP|
|*endif|

but user httpd.conf has not php_admin_value value, open_basedir is enable for all users...
Code:
        <Directory /home/persian/domains/domain.com/public_html>
                Options +Includes -Indexes



                suPHP_Engine ON
                suPHP_UserGroup persian persian

        </Directory>


what shuld i check to solve it ?
 
yes, you have to do customization if you want to use open_basedir with suphp.
 
what about scenarios where dual php is installed and suphp is only used on one php version, in that scenario you need the open_basedir in the vhosts, and I have always done this it works fine.
 
what about scenarios where dual php is installed and suphp is only used on one php version, in that scenario you need the open_basedir in the vhosts, and I have always done this it works fine.

it only loads those lines when mod_php is loaded, php_admin_value doesn't work with suphp, so even it's loaded with suphp it wouldn't give any effect.
suphp have to use the open_basedir in php.ini to set it.

Code:
        <IfModule mod_php5.c>
                php_admin_flag engine ON
                php_admin_flag safe_mode OFF
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'

                php_admin_value open_basedir /home/user/:/tmp:/usr/local/lib/php/

        </IfModule>
        <IfModule mod_suphp.c>
                suPHP_Engine ON
        </IfModule>
 
Back
Top