The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/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:
    18
    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:
    16
    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:
    18
    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