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!

SOLVED Default apache location always shows a 404

Discussion in 'General Discussion' started by WebHostPro, Jun 9, 2018.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    I normally upload this script to my server to watch the load remotely. But with my newest server anything I add to the /usr/local/apache/htdocs/ folder gives a 404.

    lv117.example.com/status/

    I've changed the ownership and permissions to be like the other servers that work fine.

    lv115.example.com/status/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 WebHostPro, Jun 9, 2018
    Last edited by a moderator: Jun 10, 2018
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    It should be symlinked to /var/www/html since this is the new location

    but maybe not, what does this give you:

    Code:
    grep DocumentRoot /etc/apache2/conf/httpd.conf | head -1
    you may also need to

    Code:
    chown -R nobody: /usr/local/apache/htdocs/status
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    WebHostPro likes this.
  3. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Bingo, it was missing the symlink. Must of overwritten it on accident.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm happy to see the issue was solved.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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