1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server Issue My site is forbbiden for me.

Discussion in 'Resolved Bug Reports' started by MrEdinLaw, Jun 13, 2012.

  1. MrEdinLaw

    MrEdinLaw Member

    Hi today i wanted to check my inbox at my forum and got a java error.
    After that i tryed to refresh the site and got this:

    Code:
    Forbidden
     
    You don't have permission to access / on this server.
     
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    I think thats a bug.
     
  2. MrEdinLaw

    MrEdinLaw Member

    People please help!
     
  3. CyclingTribe

    CyclingTribe Well-Known Member

    Check your server logs - they should give you more information about the error.
     
  4. MrEdinLaw

    MrEdinLaw Member

    i get this:
    Code:
    Warning: Unknown: open_basedir restriction in effect. File(/www/sfcnr.uk.pn/forum/admin.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) 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 '/www/sfcnr.uk.pn/forum/admin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
     
  5. CyclingTribe

    CyclingTribe Well-Known Member

    The first line tells you what's wrong. (y)
     
  6. MrEdinLaw

    MrEdinLaw Member

  7. MrEdinLaw

    MrEdinLaw Member

    I dont understand!
     
  8. CyclingTribe

    CyclingTribe Well-Known Member

  9. MrEdinLaw

    MrEdinLaw Member

    And how to get unbaned now?
     
  10. CyclingTribe

    CyclingTribe Well-Known Member

    If you don't know how use the info you need to ask your host for assistance as this is something on your server that is restricting your access to your XF files.
     
  11. Mopquill

    Mopquill Active Member

    MrEdinLaw, it's obvious you're not particularly versed in this sort of thing. If you've changed anything in your configuration files recently, or moved the directory of your site, undo those changes. Basically, your forum directory is not within the open_basedir directory, which to simplify, controls which files your PHP scripts are allowed to access.

    If you'd like, you can contact me via PM to let me into your server and I'll see about fixing it for you, telling you what was wrong and how to fix it next time. If you're not comfortable with that, then I recommend reading up on web server configuration. Assuming you're using Apache, you want to change the open_basedir line in your VirtualHosts from something like this:

    Code:
    php_admin_value open_basedir /home/:/usr/lib/php:/tmp
    to something like this:

    Code:
    php_admin_value open_basedir /www/sfcnr.uk.pn:/usr/lib/php:/tmp
    You should NOT include your entire /home directory in open_basedir. Feel free to add any other website's directory to its respective virtualhost.

    My personal setup is to have /home/user/domains/example.com/pub/<content here> that way I can non-web-accessible content in example.com (that cannot be reached with the web root set to pub), but that can still be accessed by PHP if I need it to be. Good luck.
     
  12. Mopquill

    Mopquill Active Member

    It would seem our user here doesn't have (or doesn't know he has) any sort of control panel or account for changing settings. I'm with Clickfinity here, thinking he might be best off contacting his host.
     

Share This Page