Getting site back up due to connection error and installing SSL certificate.

June 27, 2019 161 views
Apache DigitalOcean DNS Ubuntu Ubuntu 16.04

Hello, my site goes down everytime I try to install the SSL certificate. For right now I would at least love for my site to get back up.

http://cibonayrae.com/ is receiving a “connect fail message after trying to install the SSL certificate for this site. I was following these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

*Then it would be great if I could get some assistance with getting the SSL certificate on the site as well. *

root@cibonay:/etc/apache2/sites-available# cd /etc/apache2/sites-available
root@cibonay:/etc/apache2/sites-available# cp 000-default.conf 000-default.conf.orig
root@cibonay:/etc/apache2/sites-available# sudo vi 000-default.conf
root@cibonay:/etc/apache2/sites-available# sudo a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socacheshmcb for ssl:
Module socache
shmcb already enabled
Module ssl already enabled
root@cibonay:/etc/apache2/sites-available# sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service” and “journalctl -xe” for details.
root@cibonay:/etc/apache2/sites-available#


Here are the journal details:

root@cibonay:/etc/apache2/sites-available# journalctl | tail
Jun 27 02:24:41 cibonay sshd[24308]: Failed password for invalid user webalizer from 23.97.70.232 port 1920 ssh2
Jun 27 02:24:41 cibonay sshd[24308]: Received disconnect from 23.97.70.232 port 1920:11: Bye Bye [preauth]
Jun 27 02:24:41 cibonay sshd[24308]: Disconnected from 23.97.70.232 port 1920 [preauth]
Jun 27 02:24:57 cibonay kernel: [UFW BLOCK] IN=eth0 OUT= MAC=3a:84:da:58:1f:57:5c:45:27:78:fb:30:08:00 SRC=92.118.37.86 DST=165.227.115.26 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=21734 PROTO=TCP SPT=53732 DPT=1291 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 27 02:25:24 cibonay sshd[24315]: Invalid user lachlan from 190.64.68.181
Jun 27 02:25:24 cibonay sshd[24315]: inputuserauthrequest: invalid user lachlan [preauth]
Jun 27 02:25:24 cibonay sshd[24315]: pamunix(sshd:auth): check pass; user unknown
Jun 27 02:25:24 cibonay sshd[24315]: pam
unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.64.68.181
Jun 27 02:25:26 cibonay sshd[24315]: Failed password for invalid user lachlan from 190.64.68.181 port 27553 ssh2
Jun 27 02:25:34 cibonay kernel: [UFW BLOCK] IN=eth0 OUT= MAC=3a:84:da:58:1f:57:5c:45:27:78:fb:30:08:00 SRC=18.162.56.184 DST=165.227.115.26 LEN=40 TOS=0x00 PREC=0x00 TTL=237 ID=54321 PROTO=TCP SPT=39662 DPT=3389 WINDOW=65535 RES=0x00 SYN URGP=0
root@cibonay:/etc/apache2/sites-available#

1 Answer

Hi,

I would first start with a quick apache config test:

apachectl -t

You would get a warning in case that you have an error in your apache conf.

Also check your apache error log.

If you are still unable to get that fixed let me know. You could also provide us with your vhosts.

Hope that this helps!
Bobby

Have another answer? Share your knowledge.