Hi all,
I am pretty sure I understand how the open_basedir directive works but I am still struggling with it.
I have safe mode turned OFF, open_basedir commented out and include_path set to ".:/usr/local/php" in php.ini.
The only part of my apache configuration that I am using open_basedir is in my vhosts.conf as follows
I have put a test.php file at /g01/inet/htdocs/basetest/test.php but when I browse to it I still get the message
I thought it may be the '.' in the include_path but I have tried it without that too,
Can anyone see where I am going wrong?
I have also tried setting open_basedir to only / but this still doesn't work which just stumps me.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom
I am pretty sure I understand how the open_basedir directive works but I am still struggling with it.
I have safe mode turned OFF, open_basedir commented out and include_path set to ".:/usr/local/php" in php.ini.
The only part of my apache configuration that I am using open_basedir is in my vhosts.conf as follows
Code:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
DocumentRoot /g01/inet/htdocs/basetest
ServerName basetest.mydomain.com
php_admin_flag open_basedir /g01/inet/htdocs:/usr/local/php
</VirtualHost>
Code:
Warning: Unknown: open_basedir restriction in effect. File(/g01/inet/htdocs/basetest/test.php) is not within the allowed path(s): (0) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Fatal error: Unknown: Failed opening required '/g01/inet/htdocs/basetest/test.php' (include_path='.:/usr/local/php/lib/php') in Unknown on line 0
Can anyone see where I am going wrong?
I have also tried setting open_basedir to only / but this still doesn't work which just stumps me.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom