I am building a server on Ubuntu 22.04 with Apache2 - latest version. When I enable ModSecurity, I get an error message when I try to restart apache. As soon as I disable ModSecurity, the error message goes away when restarting apache and my website is back online. Any suggestions?
Details:
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:>
Active: failed (Result: exit-code) since Wed 2022-11-23 13:16:04 CST; 8min a>
Docs: https://httpd.apache.org/docs/2.4/
Process: 2799 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL>
CPU: 31ms
More Details:
Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 23 13:16:04 m-70A4003AUX systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Nov 23 13:16:04 m-70A4003AUX systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit apache2.service has finished with a failure.
░░
░░ The job identifier is 2140 and the job result is failed.