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.

EasyApache 4 build 404 pages no longer working

Discussion in 'EasyApache' started by Gareth-AWD, Jul 19, 2017.

Thread Status:
Not open for further replies.
  1. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    161
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    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?
     
  2. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    161
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Found there's an internal case for this and have used it and it works now.
     
  3. RickKukiela

    RickKukiela Registered

    Joined:
    Jan 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...
Thread Status:
Not open for further replies.

Share This Page