I wanted to enable HTTP/2 for my Apache configuration. Following this article. However that broke my Apache. (I reverted all the steps from this article).
Executing the command:
sudo zypper remove apache2-prefork
Reading installed packages...
Resolving package dependencies...
The following 4 packages are going to be REMOVED:
apache2 apache2-mod_php8 apache2-prefork postfixadmin-apache
4 packages to remove.
Removed Apache and PHP.
Okay I was not awake when I confirmed.
However that is when the problems started. I removed the event package that the article mentioned and re-installed the removed packages. I ran into the issue that Apache did not wanted to start and I had to modify my /etc/sysconfig/apache2 file and tell Apache to use ‘prefork’ for MPM.
After some more tinkering I was able to start Apache without errors. However my site is not served by Apache. And I’m now presented by " Secure Connection Failed", but I don’t understand why.
I removed the http/2 Protocol line from my VHost, so that I’m back at the original version that worked previously. When I check the logs I don’t see the request coming in on Apache for the site. There is not an entry in both the access and error log for both Apache in general and the site specific.
I appear to have resolved the AH01909 message. What I don’t understand is that I don’t see any request in the access log or error log when I try to visit the site.
I have now a new error. I noticed a typo in the reference file for my httpd.conf.local file. Now Apache does not want to start at all. The status gives this error:
sudo 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 Fri 2025-04-04 08:01:22 CST; 2s ago
Duration: 6min 15.223s
Process: 29486 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 29486 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
CPU: 53ms
Apr 04 08:01:22 postoffice systemd[1]: Starting The Apache Webserver...
Apr 04 08:01:22 postoffice start_apache2[29486]: [Fri Apr 04 08:01:22.498426 2025] [so:warn] [pid 29486] AH01574: module headers_module is already loaded, skipping
Apr 04 08:01:22 postoffice start_apache2[29486]: [Fri Apr 04 08:01:22.498511 2025] [so:warn] [pid 29486] AH01574: module proxy_module is already loaded, skipping
Apr 04 08:01:22 postoffice start_apache2[29486]: [Fri Apr 04 08:01:22.498516 2025] [so:warn] [pid 29486] AH01574: module proxy_http_module is already loaded, skipping
Apr 04 08:01:22 postoffice start_apache2[29486]: AH00526: Syntax error on line 19 of /etc/apache2/listen.conf:
Apr 04 08:01:22 postoffice start_apache2[29486]: Cannot define multiple Listeners on the same IP:port
Apr 04 08:01:22 postoffice systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
Apr 04 08:01:22 postoffice systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 04 08:01:22 postoffice systemd[1]: Failed to start The Apache Webserver.
However listen.conf is the default file and on line 19 it states “Listen 80”.