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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    314
    Likes Received:
    2
    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?
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    604
    Likes Received:
    94
    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