Apache2 won't start

# systemctl status apache2.service
× apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Sun 2024-04-28 10:40:31 CEST; 8min ago
   Duration: 11ms
    Process: 23578 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=254)
    Process: 23593 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
   Main PID: 23578 (code=exited, status=254)
     Status: "Reading configuration..."
        CPU: 94ms

Apr 28 10:40:31 stephan.intra.boeni.com systemd[1]: Starting The Apache Webserver...
Apr 28 10:40:31 stephan.intra.boeni.com systemd[1]: Started The Apache Webserver.
Apr 28 10:40:31 stephan.intra.boeni.com systemd[1]: apache2.service: Main process exited, code=exited, status=254/n/a
Apr 28 10:40:31 stephan.intra.boeni.com start_apache2[23593]: httpd (no pid file) not running
Apr 28 10:40:31 stephan.intra.boeni.com systemd[1]: apache2.service: Failed with result 'exit-code'.

# tail /var/log/apache2/error_log 
[Sun Apr 28 10:15:08.942808 2024] [ssl:warn] [pid 19286] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Fatal error:  Unable to start pcre module in Unknown on line 0

Does anyone have any ideas?

Workarourd:

zypper remove libpcre2-16-0-x86-64-v3 libpcre2-32-0-x86-64-v3 libpcre2-8-0-x86-64-v3
systemctl start apache2.service
zypper inr
1 Like

It looks like it also resolves the “PHP Fatal error: Unable to start pcre module in Unknown on line 0” error.

I only had to remove “libpcre2-8-0-x86-64-v3”.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.