Help - Search - Members - Calendar
Full Version: open_basedir restriction
The Planet Forums > Control Panels > Plesk
josua
I obtain these errors...

Warning: file(): open_basedir restriction in effect. File(/proc/cpuinfo) is not within the allowed path(s): (/home/httpd/vhosts/domain.com/httpdocs:/tmp) in /home/httpd/vhosts/domain.com/httpdocs/status/index.php on line 17

Warning: file(/proc/cpuinfo): failed to open stream: Operation not permitted in /home/httpd/vhosts/domain.com/httpdocs/status/index.php on line 17

Warning: file(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/home/httpd/vhosts/domain.com/httpdocs:/tmp) in /home/httpd/vhosts/domain.com/httpdocs/status/index.php on line 39

Warning: file(/proc/meminfo): failed to open stream: Operation not permitted in /home/httpd/vhosts/domain.com/httpdocs/status/index.php on line 39

Warning: Division by zero in /home/httpd/vhosts/domain.com/httpdocs/status/index.php on line 54



Any ideas ?? :confused:
levovich
If the account returning this error belongs to you or to a person you trust, you can just turn off open_basedir restriction. Otherwise, I wouldn't do it. The script returns the error because it tries to access files outside of the account.
josua
how can I turn off open_basedir restriction ??

Thank you
drumsy
Are you running vBulletin?

If so, try this link: http://www.vbulletin.com/forum/showthread.php?t=37766
cisco_s
I'm not sure about other people's configurations, but on my system, to access pear includes, I had to go into
/home/httpd/vhosts/mysite.com/conf
and open up httpd.include
and go down to the line that starts with
php_admin_value open_basedir and add
:/usr/share/pear
to the string value. That fixed it. (you'll need to restart httpd)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.