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.

Forbidden error message

Discussion in 'Data Protection' started by thewebhosting, Jul 19, 2008.

  1. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    When I browse my website http://www.manishajanak.com, I am getting below error:

    "You don't have permission to access /index.php on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. "

    What could be the issue?

    Please advise as soon as possible!!
     
  2. chandro

    chandro Well-Known Member

    Joined:
    Nov 21, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    /home/chandro
    cPanel Access Level:
    Root Administrator
    403 is when you have another permisions (chmod) in the folder, not 755 or 777
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    The permissions seems to be fine. I have checked in Cpanel "Error log" and found below error messages:

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

    I have checked the permission of .htaccess file and it seems to be fine. Can anybody tell what am I missing?
     
  4. chandro

    chandro Well-Known Member

    Joined:
    Nov 21, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    /home/chandro
    cPanel Access Level:
    Root Administrator
    login via ssh to that folder and then delete the .htaccess

    so when you login again, system can create one new


    or edit that file

    pico .htaccess looking for something about "pcfg_openfile"
     
  5. ravindradhainwa

    ravindradhainwa Well-Known Member

    Joined:
    Jan 24, 2008
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    #5 ravindradhainwa, Jul 21, 2008
    Last edited: Aug 11, 2008
  6. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Below is the copy of my .htaccess file:

    =====================================
    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName www.manishajanak.com
    AuthUserFile /mnt/partition-dev-sdc1/home/manisha/public_html/_vti_pvt/service.pwd
    AuthGroupFile /mnt/partition-dev-sdc1/home/manisha/public_html/_vti_pvt/service.grp

    ================================================


    Is this configured correctly or am I missing something?
     
  7. xyber13

    xyber13 Well-Known Member

    Joined:
    May 30, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Ownership

    Hi,

    Have you tried to check ownership of files? Fix file permissions...

    Rgrds,
    -Xyber13.
     
  8. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    yes..the ownership is already assigned to user.
     
  9. xyber13

    xyber13 Well-Known Member

    Joined:
    May 30, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Which acc

    Hi,

    Does this happen to only one account or all the accounts? If it is just only one account, you may just need to manually backup the files and SQL databases and the mail filters etc. Then re-create the account and re-upp the backup files. See if this works...

    Rgrds,
    -Xyber.
     
  10. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    The Problem you are facing is due to incorrect ownership for public_html folder. You need to be check ownership for public_html folder which need to be as follows

    drwxr-x--- username.nobody public_html
     
    #10 linux7802, Jul 29, 2008
    Last edited: Sep 14, 2008
Loading...

Share This Page