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.

How to fix File does not exist errors in error log

Discussion in 'General Discussion' started by searchmaster, Jun 18, 2013.

  1. searchmaster

    searchmaster Member

    Joined:
    Jul 20, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    I have a new dedicated server cpanel, cloudlinux migrated from DirectAdmin, and when I checked the error logs, I found many file does not exist errors - ie File does not exist: /home/fascia/public_html/404.shtml

    Yet there are error documents in the following: /usr/local/apache/htdocs

    How do I get the /usr/local/apache/htdocs error documents to be used? I am not so keen on having to copy the default error files to every directory, or do I have to do this in order to get the error pages working??? - once I have the default ones working, I will then be creating some custom ones based off the default.

    https://httpd.apache.org/docs/current/mod/core.html#errordocument seems to say that the errordocument.conf is relative to the clients root directory. - so why do the /usr/local/apache/htdocs files exist...

    If I am able to get those error documents in /usr/local/apache/htdocs working, will they still be able to work with cagefs turned on for a client. What would I have to do to get them working?
    - adding the path to cafefs.mp ???
    - creating a new cfg file in /etc/cagefs/conf.d/ ???

    Shouldn't the error files work by default and not throw up the errors???

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,776
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have any custom error document entries in the .htaccess files of the accounts you are encountering this issue with? Is CageFS already enabled when this happens? If so, have you tried temporarily disabling CageFS to see if the issue continues?

    Thank you.
     
  3. searchmaster

    searchmaster Member

    Joined:
    Jul 20, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    There are no custom error pages in that sites htaccess. And I have tried cafefs both on and off for that client, both are the same.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,776
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could try rebuilding Apache via EasyApache to see if that helps. However, if the issue persists, you may want to open a ticket so we can access your server and investigate further. You can open a ticket via:

    Submit A Ticket

    Remember to post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page