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!

Any precautions Rebuilding EasyApache Configuration?

Discussion in 'EasyApache' started by JustAGuyUsingWHM, Sep 6, 2018.

  1. JustAGuyUsingWHM

    JustAGuyUsingWHM Member

    Joined:
    Sep 6, 2018
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    England
    cPanel Access Level:
    Root Administrator
    I'm new to WHM and CPanel and would like some feedback on rebuilding and restarting Apache.

    I have a server running several websites and would like to turn off directory listings globally.

    Usually I'd edit the httpd.conf and restart Apache. Looking at the Apache conf and reading the WHM/CPanel documentation the httpd.conf is automatically generated, and the most sensible way to do this would be via the WHM portal and have it rebuild the conf files and restart Apache for me.

    The options I'm looking at are under Home » Service Configuration » Apache Configuration »Global Configuration and the UI reports "For your changes to take effect, the Apache configuration must be rebuilt and Apache restarted."

    Are there any known gotchas with the process? should I be concerned Apache may not restart or that direct modifications to httpd.conf (unknown to me) could be lost or messed up?

    I've backed up /usr/local/apache/httpd.conf. Presumably I could replace the newly generated httpd.conf with the backup and restart Apache from the command line if things go awry?

    I guess I'm asking what backups need to be taken and how do I recover if it all goes wrong?
     
    #1 JustAGuyUsingWHM, Sep 6, 2018
    Last edited by a moderator: Sep 6, 2018
    cPanelLauren likes this.
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,459
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Nope, you shouldn't be - as long as you're making the changes in WHM through the Apache Configuration you should be fine.

    We create a backup when the process starts you shouldn't need to worry about this but I commend you for this practice, I wish everyone would follow suit! If you want to be cautious a backup of the httpd.conf is all that is necessary.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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