EasyApache 4 build 404 pages no longer working

Status
Not open for further replies.

Gareth-AWD

Well-Known Member
Jul 3, 2008
195
13
68
London, UK
cPanel Access Level
Root Administrator
In my .htaccess file for sites I have

ErrorDocument 404 /404.php

It doesn't seem to work to my custom 404 page when it did before. It's only after updating to EasyApache 4 and rebuilding Apache etc.

No matter what I do so:

ErrorDocument 404 404.php
ErrorDocument 404 "test"

doesn't work either. Any ideas?
 

RickKukiela

Active Member
Jan 17, 2017
25
15
53
Chicago
cPanel Access Level
Root Administrator
Just had this problem, the new version creates a file called errordocument.conf inside your conf.d/includes file. This file is causing the problem and you need to remove it. Also its being created by a file in your apache-bin directory: /etc/apache2/bin/generate-errordoc-conf - I chmoded this file 000 and also edited the shebang (#!) at the top of the file to be double comment (##!) to ensure this script cannot run and recreate this file.
 
Status
Not open for further replies.