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
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
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.
I was hoping to not have to hack up the cPanel scripts, but that is a good option.