The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

403 error + htaccess file

Discussion in 'General Discussion' started by james5, Jul 10, 2003.

  1. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    uploaded new site and while
    digging around I caused a prob.
    Now I can't access the site and the error log
    says "htaccess" file unreadable.
    Is there a permission hang up or
    did I del the file contents.
    any suggestions?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  2. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Earth
    WHat directory is the .htaccess file in and what are its contents? Just for clarification you DO need the leading period in front of the file name...

    cPanel.net Support Ticket Number:
     
  3. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    error log says the "public_html"
    .htaccess is unreadable.
    there is nothing in the file,
    I think that's the prob.
    what should be there to allow access?
    sorry if it's a dumb question,
    Im new to cPanel.
    Thanks

    cPanel.net Support Ticket Number:
     
  4. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Earth
    Well if you want all acces just delete the file. (You may want to check the file permissions via CHMOD to see what is set. Could be that there are no read rights on .htaccess.) You don't technically NEED an .htaccess file. Try that and see what happens.

    cPanel.net Support Ticket Number:
     
  5. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    here is the log from the error file...

    .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable.

    no matter what I do all I get is...
    permission denied and the message above.

    Tech at the server is nowhere to be found,
    so Im stuck and a little over my head.
    Thanks for all your help tho.

    cPanel.net Support Ticket Number:
     
  6. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Earth
    OK try this... On your machine create a new text file and in it put the following on a line by itself...


    Options All -Indexes


    Save it, name it .htaccess, then upload it to your server and MAKE SURE you send it in ACSII/TEXT mode (not binary). Tell us what happens.

    cPanel.net Support Ticket Number:
     
  7. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    try the new .htaccess with Options All -Indexes


    but no go,
    in fact every time I trash the file and I
    come back later it's there again.
    a new one that is.
    I would be happy to trash the whole
    site and start fresh,
    No damn reset button...
    Ha-Ha.

    Thanks again for the help,
    -J5

    cPanel.net Support Ticket Number:
     
  8. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Earth
    Whats the URL of the site?

    cPanel.net Support Ticket Number:
     
  9. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
  10. james5

    james5 Member

    Joined:
    Jul 8, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    trashed the site and started over
    and it worked!
    thanks again for the help.

    cPanel.net Support Ticket Number:
     
  11. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    I just had the same error. Cause: folder .htaccess was in had wrong chmod value. Having the same problem? chmod the folder to 755.

    cPanel.net Support Ticket Number:
     
  12. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Getting the same error message here :

    [Thu Aug 21 22:32:03 2003] [crit] [client 198.81.26.48] (13)Permission denied: /home/test/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

    Tried "Aerosmith" and "james5" suggestion , no luck.

    cPanel.net Support Ticket Number:
     
  13. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    I would say: Try my suggestion

    cPanel.net Support Ticket Number:
     
  14. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Yep, tried that..also not working...

    cPanel.net Support Ticket Number:
     
  15. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Hi ,

    Ok...solve it by recompiling the apache with option 5...:D

    cPanel.net Support Ticket Number:
     
  16. kerosin

    kerosin Well-Known Member

    Joined:
    Aug 27, 2002
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Yees this is probably going to solve it

    cPanel.net Support Ticket Number:
     
  17. hostito

    hostito Active Member

    Joined:
    Mar 9, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I had this happen to me when I did a cpanel move. What I noticed was that the public_html directory was something like drwxr-x--- So what I did is chmod it so others can view it.

    Check permissions for the public_html folder, specially group permissions.

    cPanel.net Support Ticket Number:
     
  18. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    chmod to 755 and fixed the issue on public_html folder...

    cPanel.net Support Ticket Number:
     
  19. wadearnold

    wadearnold Well-Known Member

    Joined:
    Jan 13, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    solution

    mv /home/USERNAME/public_html/.htaccess /home/USERNAME/public_html/htaccess.old
    chown USERNAME:nobody /home/USERNAME/public_html
    restart apache

    where username is the user that you are having issues with.

    thanks P5 = God <-- note capital G

    wade
     
Loading...

Share This Page