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!

Changed Default Account Directory in httpd.conf Issue

Discussion in 'EasyApache' started by dhruva kumar, Dec 19, 2017.

  1. dhruva kumar

    dhruva kumar Registered

    Joined:
    Dec 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dhruva kumar

    dhruva kumar Registered

    Joined:
    Dec 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
    #3 dhruva kumar, Dec 21, 2017
    Last edited by a moderator: Dec 21, 2017
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,792
    Likes Received:
    83
    Trophy Points:
    78
    Location:
    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..
     
    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