Hari ini salah satu server cPanel saya mengalami down. penyebab utamanya httpd tidak mau distart
berikut error yang saya temukan
Mod_Security another rule with same ID
dikarenakan aplikasi apache mati, saya coba start kembali. namun hasilnya seperti dibawah ini
root@arielfx [~]# /etc/init.d/httpd start Syntax error on line 31 of /var/cpanel/cwaf/rules/cwaf_01.conf: ModSecurity: Found another rule with the same id httpd could not be started
lalu saya coba rebuild confing httpd
root@arielfx [~]# /scripts/rebuildhttpdconf info [rebuildhttpdconf] Missing owner for domain arielfx.emangmanistuh.net, force lookup to root Initial configuration generation failed with the following message: Configuration problem detected on line 31 of file /var/cpanel/cwaf/rules/cwaf_01.conf: ModSecurity: Found another rule with the same id --- /var/cpanel/cwaf/rules/cwaf_01.conf --- 25SecAction \ 26 "id:210000,\ 27 phase:1,\ 28 pass,\ 29 setvar:tx.points_limit4=5, setvar:tx.points_limit3=4, setvar:tx.points_limit2=3, setvar:tx.points_limit1=2,\ 30 nolog,\ <=== 31 ===> t:none" 32 33 34SecAction \ 35 "id:210010,\ 36 phase:1,\ 37 pass,\ --- /var/cpanel/cwaf/rules/cwaf_01.conf ---
dari hasil troubleshoot diatas. dipastikan error disebabkan oleh mod_security
langkah pertama yang anda lakukan coba reinstall mod_security
root@arielfx [~]# cd /var/cpanel/cwaf/scripts && ./uninstall_cwaf.sh
jika masih error, silahkan ikuti perintah dibawah ini
root@arielfx [~]# rm -rf /var/cpanel/cwaf/rules/* root@arielfx [~]# /var/cpanel/cwaf/scripts/updater.pl
lalu restart apache cPanel anda
root@arielfx [~]# /etc/init.d/httpd restart
Jika anda menggunakan plesk. anda dapat mengikut cara ini
root@arielfx [~]# rm -rf /usr/local/cwaf/rules/* root@arielfx [~]# /usr/local/cwaf/scripts/updater.pl
Selamat Oprek!