cwings2001
Jan 2 2002, 12:45 AM
One of our users has requested that we possibly turn off the open_basedir restriction in PHP. What is this? What does it do? How do we turnit off if we wanted to? What are the consequences of doing so?
See
http://www.php.net/manual/en/configuration...ni.open-basedir
Edit php.ini and restart the web server. The consequence is that your users will be able to access any file with the webserver's permissions. This is actually not that bad unless you totally don't trust your users
cwings2001
Jan 2 2002, 12:05 PM
Hi there,
Thank you for the response! My next question is - after searching my php.ini file I do not see this option anywhere in there - under which section do I put this directive, and how should it be written? This would be on a PLESK server for our users.
Thanks again,
Shawn
eva2000
Jan 2 2002, 03:15 PM
QUOTE
Originally posted by cwings2001
Hi there,
Thank you for the response! My next question is - after searching my php.ini file I do not see this option anywhere in there - under which section do I put this directive, and how should it be written? This would be on a PLESK server for our users.
Thanks again,
Shawn
http://forum.plesk.com/showthread.php?s=&threadid=447
Mike Henderson
Jan 2 2002, 08:42 PM
I tired that but it seems to not be working. I'm having the problem with VBulletin that a few others at the Plesk forum have mentioned, but I'm still getting the errors. It seems to be something to do with either open_basedir or the fopen() command. Any ideas?
RaQServices
Jan 5 2002, 08:46 PM
locate your httpd.include file
(/usr/local/psa/apache/conf/httpd.include)
edit that file using the pico -w /path/to/file
press CRTL W and enter the domain you want to change the base dir restriction...
Look for the php_admin_value open_basedir .... line
at the end of the line before the ending " you can add :/tmp and it will allow php to use the :/tmp folder when uploading files.
You can add any folder you want to the end..
Only thing is that you may need to do this each time you add a new site to your server, as the file may be overwritten. (some people have complained of this, while others didn't have the problem)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.