Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    171
    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:
    171
    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 Member

    Joined:
    Jan 17, 2017
    Messages:
    8
    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:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice