MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //scripts.20110601.041516.15411/nomodgzipconfmods
#!/usr/bin/perl

require '/scripts/regsrep.pl';

regsrep("/usr/local/apache/conf/httpd.conf","LoadModule[\\s]*gzip_module[\\s]*modules/mod_gzip.so","#LoadModule gzip_module       modules/mod_gzip.so");
regsrep("/usr/local/apache/conf/httpd.conf","LoadModule[\\s]*gzip_module[\\s]*libexec/mod_gzip.so","#LoadModule gzip_module        libexec/mod_gzip.so");
regsrep("/usr/local/apache/conf/httpd.conf","AddModule[\\s]*mod_gzip.c","#AddModule mod_gzip.c");

system '/scripts/strip_apache_directive', '--no-restart', '<IfModule mod_gzip.c>';

sub safeaprestart {
        if (-x "/usr/local/cpanel/bin/safeapacherestart") {
                system("/usr/local/cpanel/bin/safeapacherestart");
        } else {
                if (-x "/usr/bin/killall") {
			system("/usr/bin/killall","-USR1","httpd");
                } elsif (-x "/usr/sbin/killall") {
                        system("/usr/sbin/killall","-USR1","httpd");
                } elsif (-x "/sbin/killall") {
                        system("/sbin/killall","-USR1","httpd");
                } elsif (-x "/bin/killall") {
                        system("/bin/killall","-USR1","httpd");
                } elsif (-x "/usr/local/bin/killall") {
                        system("/usr/local/bin/killall","-USR1","httpd");
                } elsif (-x "/usr/local/sbin/killall") {
                        system("/usr/local/sbin/killall","-USR1","httpd");
                }
        }
}