{"id":9169,"date":"2024-10-02T16:16:18","date_gmt":"2024-10-02T16:16:18","guid":{"rendered":"https:\/\/www.linuxandotherstuff.com\/?p=9169"},"modified":"2024-10-02T16:16:19","modified_gmt":"2024-10-02T16:16:19","slug":"apache-wont-restart-after-enabling-mod_security-on-cwp-panel","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2024\/10\/02\/apache-wont-restart-after-enabling-mod_security-on-cwp-panel\/","title":{"rendered":"Apache wont restart after enabling mod_security on CWP Panel"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>httpd.service &#8211; Web server Apache<br>Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; preset: disabled)<br>Active: failed (Result: exit-code) since Wed 2024-10-02 11:21:30 UTC; 9s ago<br>Duration: 7h 32min 47.783s<br>Process: 211481 ExecStart=\/usr\/local\/apache\/bin\/apachectl start (code=exited, status=1\/FAILURE)<br>CPU: 32ms<\/p>\n\n\n\n<p>Oct 02 11:21:30 cloudtwo.coldriverdata.net systemd[1]: Starting Web server Apache\u2026<br>Oct 02 11:21:30 cloudtwo.coldriverdata.net apachectl[211483]: httpd: Syntax error on line 512 of \/usr\/local\/apache\/conf\/httpd.conf: Syntax error on line 2 of \/usr\/local\/apache\/conf.d\/mod_security.conf: Cannot load \/usr\/lib64\/ into server: \/usr\/lib64\/: cannot read file data: Is a directory<br>Oct 02 11:21:30 cloudtwo.coldriverdata.net systemd[1]: httpd.service: Control process exited, code=exited, status=1\/FAILURE<br>Oct 02 11:21:30 cloudtwo.coldriverdata.net systemd[1]: httpd.service: Failed with result &#8216;exit-code&#8217;.<br>Oct 02 11:21:30 cloudtwo.coldriverdata.net systemd[1]: Failed to start Web server Apache.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>There seems to be a install problem.<\/p>\n\n\n\n<p><br>nano \/usr\/local\/apache\/conf.d\/mod_security.conf<\/p>\n\n\n\n<p>Line 2 \u2013 Add \u2013 liblua-5.4.so to the end.<\/p>\n\n\n\n<p><br>systemctl start httpd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>httpd.service &#8211; Web server ApacheLoaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; preset: disabled)Active: failed (Result: exit-code) since Wed 2024-10-02 11:21:30 UTC; 9s agoDuration: 7h 32min 47.783sProcess: 211481 ExecStart=\/usr\/local\/apache\/bin\/apachectl start (code=exited, status=1\/FAILURE)CPU: 32ms Oct 02 11:21:30 cloudtwo.coldriverdata.net systemd[1]: Starting Web server Apache\u2026Oct 02 11:21:30 cloudtwo.coldriverdata.net apachectl[211483]: httpd: Syntax error on line 512 of \/usr\/local\/apache\/conf\/httpd.conf: Syntax error on line 2 &#8230; <a title=\"Apache wont restart after enabling mod_security on CWP Panel\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2024\/10\/02\/apache-wont-restart-after-enabling-mod_security-on-cwp-panel\/\" aria-label=\"Read more about Apache wont restart after enabling mod_security on CWP Panel\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154],"tags":[],"class_list":["post-9169","post","type-post","status-publish","format-standard","hentry","category-cwp-panel"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=9169"}],"version-history":[{"count":1,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9169\/revisions"}],"predecessor-version":[{"id":9170,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9169\/revisions\/9170"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=9169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=9169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=9169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}