4

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

Jonathan de M.
  • 9,721
  • 8
  • 47
  • 72
Holly
  • 91
  • 1
  • 5

1 Answers1

3

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/.

AndreKR
  • 32,613
  • 18
  • 106
  • 168
  • hi,it says this in the php configuration for open_basedir-> /php_sessions:/tmp:/var/www/errors:/home/ve/awd/uio/orange/htdocs – Holly Dec 31 '12 at 01:56
  • i don't see /home/v1/bill/ in configuration – Holly Dec 31 '12 at 01:57
  • 1
    Same rule applies: `/home/v1` is not within `/home/ve/`. – AndreKR Dec 31 '12 at 02:05
  • Thanks :). I will need to get a host that allows me to change php configuration.The host that i currently have wanted me to get expensive vps to stop getting messages instead of giving me answers. i wish that i can give you and Matti a +1 but i can't vote. – Holly Dec 31 '12 at 04:18
  • 2
    Actually on a typical shared hosting configuration the `open_basedir` is your webspace, even on the cheap ones. If your script is in `/home/v1/sweet/123/htdocs/subscribe.php` the root of the webspace is probably `/home/v1/sweet/123/htdocs/` and if they put `/home/ve/awd/uio/orange/htdocs` in `open_basedir` that is most certainly their mistake. – AndreKR Dec 31 '12 at 04:25
  • Thanks It is more clear to me. Yep I see that it is defiantly their mistake. I'll do site testing at another host. – Holly Jan 01 '13 at 17:00