Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2002
    Posts
    33

    Error viewing forums, changed servers

    I uploaded these to my server in an effort to install phpbb, and I get this error message:

    PHP Code:
    WarningUnknown(): open_basedir restriction in effectFile(/home/pr/public_html/forum/index.phpis not within the allowed path(s): (/home/naked:/usr/lib/php:/usr/local/lib/php:/tmpin Unknown on line 0

    Warning
    Unknown(/home/pr/public_html/forum/index.php): failed to open streamOperation not permitted in Unknown on line 0

    Warning
    : (null)(): Failed opening '/home/pr/public_html/forum/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in Unknown on line 0 
    This hasn't happened before.. did my host do something? If so, what should I tell him to fix?

    Thanks

  2. #2
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    Could be a few things:

    Do you have safe_mode on?

    open_basedir could be badly configured or which version of PHP are you running, there was a bug in 4.2.something related to this.
    Hyperconfused (™)

  3. #3
    Join Date
    Nov 2002
    Posts
    33
    My php version is 4.3.4

    and i do not know if i have safe_mode on. How do I check (using cpanel/whm)

    thanks

  4. #4
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    Upload a file with just the line:

    PHP Code:
    <?php phpinfo() ?>
    in it, view it in your browser and near the bottom of the "Configuration" section will be the value for safe_mode (either on or off)
    Hyperconfused (™)

  5. #5
    Join Date
    Nov 2002
    Posts
    33
    I can't view it when I upload it as a php file, I just get the same error

  6. #6
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    If you get the same error on all php files, then you need to contact your host, something is wrong with their configration.
    Hyperconfused (™)

  7. #7
    Join Date
    Nov 2002
    Posts
    33
    well, I have another account on my whm and php works fine on there.. hmm any ideas?

  8. #8
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    well you shouldn't get that trying to view a phpinfo file, but save the following in a file named php.ini and upload it to the forums directory, see if it fixes your problem

    PHP Code:
    open_basedir "/home/pr/public_html/forum" 
    Hyperconfused (™)

  9. #9
    Join Date
    Nov 2002
    Posts
    33
    no, it doesn't work. I will contact my host.

    Thanks

  10. #10
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    Did you see i edited my post? ^

    If not, contact them, they can easily edit the open_basedir restrictions for your domain from WHM
    Hyperconfused (™)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •