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

sahostking

Well-Known Member
May 15, 2012
378
10
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Twitter
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?
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
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!