Sentora Support Forums

Full Version: SSL install breaks apache service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, when I configure SSL using the method in the Sentora docs, and restart the httpd service, I get an error saying that the httpd service exited with an error code. Upon checking the status of the service using systemctl, I see the following message.
Code:
#I have censored the domain for security reasons ● httpd.service - The Apache HTTP Server   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)   Active: failed (Result: exit-code) since Tue 2020-07-21 18:05:40 EDT; 1min 29s ago     Docs: man:httpd(8)           man:apachectl(8)  Process: 11923 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)  Process: 11876 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)  Process: 11927 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 11927 (code=exited, status=1/FAILURE) Jul 21 18:05:40 panel.*** systemd[1]: Stopped The Apache HTTP Server. Jul 21 18:05:40 panel.*** systemd[1]: Starting The Apache HTTP Server... Jul 21 18:05:40 panel.*** httpd[11927]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443 Jul 21 18:05:40 panel.*** systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jul 21 18:05:40 panel.*** systemd[1]: Failed to start The Apache HTTP Server. Jul 21 18:05:40 panel.*** systemd[1]: Unit httpd.service entered failed state. Jul 21 18:05:40 panel.*** systemd[1]: httpd.service failed.

Apparently, it says that some other process is using the SSL port 443 but after checking with many tools, including netstat and lsof, they say that the port is not being used. Please help me with this issue.

EDIT: I fixed it by replacing the configs and starting the httpd service. After installing wordpress, SSL works fine on it

Thanks,
EGO SKY
The issue specifically happens when you install mod_ssl and then enable SSL in the sentora panel. What happens is that mod_ssl already created a file /etc/httpd/conf.d/ssl.conf with the "Listen 443 https" and then when you enable https from sentora panel, it also adds "Listen 443 https" to the httpd-vhosts.conf file. This is a conflict. There can't be two Listen lines of the same type across Apache config files.

You already fixed it somehow, but the easiest thing to do is uncomment the "Listen" line in the ssl.conf file and retry restarting apache