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!

/scripts/rebuildhttpdconf preview?

Discussion in 'General Discussion' started by ffeingol, May 25, 2008.

  1. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    318
    cPanel Access Level:
    DataCenter Provider
    Is there any way to run /scripts/rebuildhttpdconf and have it generate a temp httpd.conf or simply not overwrite httpd.com? We have some changes we'd like to implement but want to test things and not have httpd.conf overwritten.

    TIA
     
  2. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    166
    Copy /scripts/rebuildhttpdconf to /scripts/rebuildhttpdconf2

    Edit :
    my $apache_conf = '/usr/local/apache/conf/httpd.conf';
    and change the location like

    my $apache_conf = '/usr/local/apache/conf/httpd-test.conf';

    Save it and run it.

    You could also chattr +i the httpd.conf just in case so it won`t get overwritten.
     
  3. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    318
    cPanel Access Level:
    DataCenter Provider
    I was hoping to not have to hack up the cPanel scripts, but that is a good option.
     
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