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!

Converted to EA4 now documentroot is /var/www/html

Discussion in 'EasyApache' started by sahostking, Jan 6, 2017.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    After convertting one server from EA4 to EA4 I notice our monitoring shows the server having an error 403 Forbidden

    I checked and see the Document root of the servername in httpd.conf file is now /var/www/html

    If I edit and change it to /usr/local/apache/htdocs

    It then starts working fine and redirects to /cgi-sys/defaultwebpage.cgi correctly but then auto changes somehow few minutes later back to /var/www/html


    Note I tried rerunning Easy Apache and also tried:
    /scripts/upcp --force
    and
    /scripts/rebuildhttpdconf

    Note sure what else to do

    Any reason why?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    EA4's default documentroot is /var/www/html. You'll need to put any files in that directory. If you change it, it'll be changed back every time httpd.conf is rebuilt.

    I hope this helps!
     
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