PDA

View Full Version : openbase restriction?


keymistress
03-18-2005, 02:33 AM
this page was working well until suddenly a few days ago i got this error:

Warning: main(): open_basedir restriction in effect. File(./global.php) is not within the allowed path(s): (/usr/local/psa/home/vhosts/keeptouch.net/subdomains/hostings/httpdocs:/tmp) in /usr/local/psa/home/vhosts/keeptouch.net/subdomains/hostings/httpdocs/index.php on line 17

Warning: main(./global.php): failed to open stream: Operation not permitted in /usr/local/psa/home/vhosts/keeptouch.net/subdomains/hostings/httpdocs/index.php on line 17

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/keeptouch.net/subdomains/hostings/httpdocs/index.php on line 17


need help!

amykhar
03-18-2005, 03:01 AM
sounds to me like your host made a permissions change. It might be necessary to contact them.

amykhar
03-18-2005, 03:02 AM
<a href="http://www.ez.no/ez_publish/documentation/configuration/troubleshooting/open_basedir_restriction" target="_blank">http://www.ez.no/ez_publish/document...ir_restriction</a>

keymistress
03-18-2005, 03:06 AM
i tried to ssh change the openbase restrictions but it didn't work...
is it because it'll take awhile to take effect?
i'm using

chflags noschg /usr/local/psa/home/vhosts/keeptouch.net/conf/httpd.include

amykhar
03-18-2005, 10:08 AM
do you have root permissions?

keymistress
03-19-2005, 03:43 AM
thanks, solved it already...
had to do an SSH to re-write the httpd.include file because i'm using Plesk cpanel and they have certain security measures...

keymistress
03-22-2005, 02:15 AM
for the benefit of everyone, i have to first allow openbase_dir restriction
next i have to edit my httpd.include file from

/subdomains/gallery/httpdocs:/tmp to
/subdomains:/tmp

lastly, disallow openbase_dir restriction and restart the server :)