I need your help.

Discussion in 'Apache' started by The Critic, Dec 8, 2006.

  1. #1
    Every time I try to load my site (see sig) I get a 403 error. Can you guys and gals see if it works for you? TIA

    And thanks to the mod who moved this into the right forum. I wasn't sure exactly where it should go.
     
    The Critic, Dec 8, 2006 IP
  2. TheBrain

    TheBrain Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What files do you have in your web directory? Do you have index.html or index.php? What are the file permissions on your web directory?
     
    TheBrain, Dec 9, 2006 IP
  3. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #3
    if you have done any modifications to files / folders
    make sure all your www files / folders have correct ownership / users ( chown )
    since changes often are made as root ( or user ) - root files are typically 403 to the world !

    also - if on Linux hosting and root server
    see log files in your bash while testing of following log files

    tail -f 50 /var/log/warn
    tail -f 50 /var/log/messages
    tail -f /var/log/apache2/error_log

    also TEST your apache configuration using

    rcapache2 configtest
    rcapache2 extreme-configtest

    if ANY changes to apache has been made - make sure to FIRST test your NEW apache global config file using above
    then RELOAD / or restart your apache using

    rcapache2 reload
    rcapache2 restart

    or modified of course if you use apache 1.3

    see also TheBrain's post


    if no instant solution found then
    make a test file - any simple html or .txt file to test-load in browser
    chmod that file cleanly to 644
    and chown to the ownership to values common on your hostaccount
    then test load in browser

    if you need MORE help
    pls give FULL details
    operating system
    file extentions of normal content
    server ( apache 2.x OR what ? )
    root server or managed server or regular shared hosting account
    SSH access

    did same site work before and what did u change since then ??

    etc - the more details you give the less guesswork is needed and the more precise the possible help
     
    hans, Dec 9, 2006 IP
  4. unispace

    unispace Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are all your sites on the server like this?

    If they are then you may have not configure apache to have permission to run documents in the file path. Otherwise use chmod and chown to make sure the www user has permission. Just try 777 then change it to 755 (or 775 if private server) for security.

    so in short:
    ssh your server
    login and enter chmod -R 775 website_file_path

    check webpage.

    then chown -R your_user filepath

    Should work otherwise look at the post above or post back your results.
     
    unispace, Dec 9, 2006 IP
  5. The Critic

    The Critic Peon

    Messages:
    392
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for your help everybody. The problem was that I was trying to switch from one hosting account to another with the same host and they gave me bad information. Basically everything they told me to do was wrong, and I ended up being down for over 2 days as a result.

    I figured this was the problem, but part of their instructions was to modify the host file on my comp to point the domain to the new IP and make sure it was working. It wasn't, so I deleted the entry... only it still wasn't working. I pointed the host to the old IP and it worked fine, but then deleted the line again so I wouldn't be looking at the wrong IP down the line. Deleting the line once again got me the 403 error, so I just wanted to make sure that the errors I was recieving was actually due to problems with my site and not just with my computer. Thanks again for your help.
     
    The Critic, Dec 10, 2006 IP
  6. unispace

    unispace Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Not sure really what you are talking about but I'm glad it worked.
     
    unispace, Dec 10, 2006 IP