I am currently setting up an Apache web server on my Pi running on Archlinux ARM. After installing and making the first small configurations I have tested it and it works. Then I stop the server and wanted to add SSL certificates, I have followed this guide. But after doing this the server does not start again. The error message I get from systemctl status httpd.service is:
httpd.service - Apache Web Server Loaded: loaded (/usr/lib/systemd/system/httpd.service:disabled) Active: failed (Result: resources) since Di [...]; 13 min ago Process: 1071 ExecStart=/usr/bin/apachectl start (code=exited, status=0/SUCCESS) [...] apachectl: (98)Address already in use: AH00072: make_sock:could not bind to address [::]443 [...] PID file /run/httpd/htppd.pit not readable (yet?) after start [...] httpd.service never wrote its PID file. Failing. [...] Failed to start Apache Web Server [...] Unit httpd.service entered failed state
The [...] brackets indicates where the date and time would be showned, I left them out as I had to retype everything. I have already change the content of the file /usr/lib/tmpfiles.d/apache.conf to:
d /run/httpd 0755 http http -
I have also checked if there is another service running with the following command:
/usr/sbin/lsof -i | grep http
But there is no and chaning the listening port to e.g. 8080 produces the same error just with port 8080 instead of 443.
I am looking forward to hear from you.