ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
714
280
363
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
 

bin_asc

Well-Known Member
Jul 18, 2005
280
0
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.