I'm trying to install ssl on my apache2 ubuntu 14.04. After I install all my credentials and restart my apache I get
caught SIGTERM shutdown
There is no more error or explanation.
I created a folder in etc/apache2 called ssl and generated my csr & key there using this command:
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
Here is my 000-default.conf in sites-available:
my 000-default:
<VirtualHost *:80>
ServerName mydomain.com/
Redirect / h t t p s ://mydomain.com/
</VirtualHost>
<VirtualHost *:443>
ServerName mydomain.com:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/962dfc9e10c76031.crt
SSLCertificateKeyFile /etc/apache2/ssl/mydomain.com.key
SSLCertificateChainFile /etc/apache2/ssl/gd_bundle-g2-g1.crt
ServerAdmin admin@domain.com
DocumentRoot /var/www/html
<Directory /var/www/html/>
AllowOverride All
order allow,deny
allow from all
</Directory
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Then I call
a2enmod ssl
and restart apache. But I get SIGTERM shutdown.
Note: I used cloudfalre on strict mode
Best Answer
In my experience, the explanation for this type of error gets logged to the master Apache error log file. Take a look at that and see what error it's giving you and I expect that will quickly lead you to the solution. If there's no log entry, check /var/log/messages as well, and if none in either of those places, try starting apache using strace and see if any of the last messages it outputs give any hint as to what's going on.