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.

Apache showing 404 on existing directories

Discussion in 'EasyApache' started by BnMcG, May 27, 2014.

  1. BnMcG

    BnMcG Registered

    Joined:
    Feb 22, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    I'm having a few issues with Apache. The last couple of days Apache (seemingly randomly) throws 404 errors for directories which exist and are under the document root. So at first I thought this was a permissions problem, but it's happening for every website on the server, except the server's hostname's domain.

    There's nothing amiss in the apache error log (/usr/local/apache/logs), and I'm guessing permissions wouldn't be a problem across almost every account.

    As far as I can tell nothing is done by a user to trigger this action - I hadn't changed any settings immediately prior to this happening.

    The only thing that seems to fix it is a rebuild of Apache + PHP using EasyApache, but even this fix seems to be temporary - I rebuilt yesterday and the issue has just resurfaced again.

    Any help appreciated!

    - - - Updated - - -

    I should mention, Apache throws 404 constantly once it has started, but it seemingly starts at random (this wasn't clear in my original message). This also affects the public_html directory - 404 is thrown for the public_html directory (eg: domain.com/ throws a 404, too, not just subdirectories.)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. BnMcG

    BnMcG Registered

    Joined:
    Feb 22, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there:

    [Tue May 27 17:07:54 2014] [error] [client 123.456.789.10] File does not exist: /home/**CPANELUSER**/public_html

    But the folder does exist, the directory listing in /home/**CPANELUSER** :

    drwxr-x--- 12 **CPANELUSER** **CPANELUSER** 4096 May 4 18:11 public_html/
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It seems odd that Apache would not find the directory if it exists. Feel free to open a support ticket so we can take a closer look and attempt to reproduce the issue. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. BnMcG

    BnMcG Registered

    Joined:
    Feb 22, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    Request ID is: 5005233
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page