PHP Open_basedir Error

456and

Verified User
Joined
Feb 18, 2008
Messages
7
I keep getting errors on my sites saying Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. I have gone in php.ini and modded out this line but when apache restarts i get the same error. anyone have any idea how to fix this
 

456and

Verified User
Joined
Feb 18, 2008
Messages
7
ok fixed the the issue by going to /usr/local/directadmin/data/users/$USER/httpd.conf then modding out:
# php_admin_flag safe_mode OFF
# php_admin_value open_basedir /home/admin/:/tmp:/usr/local/lib/php/
 

treybriggs

New member
Joined
Aug 8, 2008
Messages
1
That way will work temporarily (until DirectAdmin updates the custom user httpd.conf), then you'll have to do it again.

Do it this way:
 
Top