How to fix File does not exist errors in error log

searchmaster

Member
Jul 20, 2007
8
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.