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.

1 filename give 403 forbidden

Discussion in 'General Discussion' started by Dataphd, Apr 12, 2005.

  1. Dataphd

    Dataphd Member

    Joined:
    Oct 29, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I have a user that has one file that when you try to access it it comes up 403 forbidden. if you rename the file to something else then it works just fine.

    I just moved this user from a different cpanel box to a new one. THis error started when I moved him, but I can't find the reason.

    I have checked .htaccess and permissions. There is nothing that should restrict the file that I can think of.

    This is a php file, and it is the only one that has this problem. The strange thing is if I rename it to something else it works fine....

    ANY help please!

    Thanks in advance!
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Have you checked the logs for the cause of the error?

    Do you have mod_security installed on the server?

    What permissions do you have on the file?

    What is the file doing, does it include other scripts or use any disabled functions (have you disabled any functions within your /usr/local/lib/php.ini file?
     
  3. Dataphd

    Dataphd Member

    Joined:
    Oct 29, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I have looked at the logs but didn't see anything. Maybe I am looking at th wrong logs, but I can't find it....
    I looked at the error log in cpanel and all it shows is: client denied by server configuration: /home/XXuserXX/public_html/products/customer/register.php


    Yes mod_security is installed.

    the file permissions are the same as all other files 644

    no I haven't changed the php.ini everything is the same.

    The strange thing is I made a copy of the file with a different name, and if you use the different name everything works fine. It seems to be something with that filename that is causing the problem.

    Any idea's??
     
  4. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    # grep 'register.php' /usr/local/apache/logs/audit_log

    That is the default mod_security log, does that bring up anything? If not it may pay to check the log anyway.

    You may need to modify your rules for mod_security.

    Other logs

    /usr/local/apache/logs/error_log
    /usr/local/apache/logs/access_log
    /usr/local/apache/domlogs/domain.com
     
Loading...

Share This Page