Changed Default Account Directory in httpd.conf Issue

dhruva kumar

Registered
Dec 19, 2017
3
0
1
india
cPanel Access Level
Root Administrator
dear team

i made changes in the apache configuration file (etc/apache2/conf/httpd.conf)
i changed the default directory /var/www/html to /home/admin/public_html for bounded ip's and unbounded ip's
but after two or three days it changes to its orignal default directory (var/www/html)
how to prevent them to make default
kindly help me because i m facing this issue from last one month.
and one more issue in my public_html folder there is a directory name as photos but since morning when i try to open that directory it is showing data error and due to this data error that image is not showing in my website as well.
kindly help me
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

1. The following document includes instructions on how to make custom changes to your Apache configuration file:

Advanced Apache Configuration - EasyApache 4 - cPanel Documentation

However, if you simply want to change the default website page, you can use "WHM >> Web Template Editor" instead.

2. As far as the website error message, could you let us know what appears in /usr/local/apache/logs/error_log when that happens?

Thank you.
 

dhruva kumar

Registered
Dec 19, 2017
3
0
1
india
cPanel Access Level
Root Administrator
kindly tell me the step wise procedure so that my default cpanel directroy does not changes to var/www/html

as i want my directory for the bounded ip's should be /home/admin/public_html
kindly tell the step wise procedure
looking for permanent solution
kindly give me response

upload_2017-12-21_18-34-31.png


this doccumentroot directroy changes to /var/www/html in every two to three days
kindly help me to sort this problem permamently
as i want this doccuemnt root directory should be /home/systemadmin/public_html
 
Last edited by a moderator:

24x7server

Well-Known Member
Apr 17, 2013
1,896
91
78
India
cPanel Access Level
Root Administrator
Hi,

You can do this more easier than getting into configuring. Just create a link between the /var/www/html to /home/systemadmin/public_html using below command:

# mv /var/www/html /var/www/html_old
# ln -s /home/systemadmin/public_html /var/www/html


This will rename the html folder for future reference if needed and then creates a link to the location you want.

Give it a try..