open_basedir restriction in effect Unknown on line 0?

Holly picture Holly · Dec 31, 2012 · Viewed 9.1k times · Source

I keep on getting these messages for every page at different times. What does line 0 mean?. Right now i'm using a free domain name from host(sub domain) and i'm using free hosting to test my site. I put this sign->.. down below to replace the real names for private reasons. My host couldn't even fix the problem. I only access my files and folders in account. I guess that the type of hosting i have isn't good ?.Thanks

Warning: Unknown: open_basedir restriction in effect. File(/home/v1/sweet/123/htdocs/subscribe.php) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/home/v1/bill/t/htdocs) 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 '/home/v1/sweet/123/htdocs/subscribe.php' (include_path='.') in Unknown on line 0

Answer

AndreKR picture AndreKR · Dec 31, 2012

open_basedir restriction in effect [...] on line 0 means the open_basedir is too restrictive for PHP to open the script itself.

You can see that /home/v1/sweet is not within your open_basedir which is beneath /home/v1/bill/.