Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    17

    Default 1 filename give 403 forbidden

    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. #2
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    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. #3
    Member
    Join Date
    Oct 2003
    Posts
    17

    Default

    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. #4
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    # 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

Similar Threads & Tags
Similar threads

  1. 403 Forbidden on everything...
    By Fourtoes in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-09-2010, 10:26 PM
  2. mp3s,forbidden filename
    By spankky in forum New User Questions
    Replies: 2
    Last Post: 11-19-2009, 09:26 AM
  3. 403 Forbidden error
    By davidanand in forum New User Questions
    Replies: 2
    Last Post: 01-24-2008, 11:37 PM
  4. 403 Forbidden
    By wschutte in forum cPGS Discussions
    Replies: 2
    Last Post: 08-30-2007, 04:48 PM
  5. Forbidden 403 ???
    By jmc67 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-21-2003, 08:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube