apache restart failed after SSL installed
Here's my situation. I have one domain/IP with one SSL certificate. I just added another domain on the same linode. Got another IP to install the new SSL certificate for new domain. The new SSL certificate was from bluehost. Because it was purchased by someone else, I generated a request file and sent it to him so he can get a certificate file back from bluehost. I then added the virtual host entry for the new domain and added the SSL entries to point to the certificate file. Below is my new domain configuration file (under /etc/apache2/sites-available).
ServerName cre8ivewear.com
ServerAlias
DocumentRoot /srv/www/cre8ivewear.com/public_html/
ErrorLog /srv/www/cre8ivewear.com/logs/error.log
CustomLog /srv/www/cre8ivewear.com/logs/access.log combined
ErrorLog "|/usr/sbin/rotatelogs /srv/www/cre8ivewear.com/logs/error.log.%d-%H%M%S 100M"
CustomLog "|bin/rotatelogs /srv/www/cre8ivewear.com/logs/access.log.%Y-%m-%d-%H%M%S 100M" combined
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
SSLCertificateFile /etc/apache2/ssl/
SSLCertificateKeyFile /etc/apache2/ssl/
ServerAdmin
ServerName cre8ivewear.com
ServerAlias
DocumentRoot /srv/www/cre8ivewear.com/public_html/
ErrorLog /srv/www/cre8ivewear.com/logs/error.log
CustomLog /srv/www/cre8ivewear.com/logs/access.log combined
ErrorLog "|/usr/sbin/rotatelogs /srv/www/cre8ivewear.com/logs/error.log.%d-%H%M%S 100M"
CustomLog "|bin/rotatelogs /srv/www/cre8ivewear.com/logs/access.log.%Y-%m-%d-%H%M%S 100M" combined
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
What's wrong?
3 Replies
what error is apache giving you when you try to start?
Here's the /var/log/apache2/error.log file.
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/php.ini on line 879 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
[Sun Jul 31 06:25:02 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Sun Jul 31 06:25:02 2011] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.7 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k configured – resuming normal operations
[Sun Jul 31 14:32:07 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Mon Aug 01 23:24:22 2011] [notice] child pid 11123 exit signal Segmentation fault (11)
[Mon Aug 01 23:24:23 2011] [notice] child pid 10628 exit signal Segmentation fault (11)
[Mon Aug 01 23:24:23 2011] [notice] child pid 11124 exit signal Segmentation fault (11)
[Tue Aug 02 00:02:10 2011] [notice] child pid 10947 exit signal Segmentation fault (11)
[Tue Aug 02 00:02:24 2011] [notice] child pid 10836 exit signal Segmentation fault (11)
[Tue Aug 02 00:02:38 2011] [notice] child pid 11112 exit signal Segmentation fault (11)
[Tue Aug 02 00:03:02 2011] [notice] child pid 10945 exit signal Segmentation fault (11)
[Tue Aug 02 00:03:07 2011] [notice] child pid 11110 exit signal Segmentation fault (11)
[Wed Aug 03 19:04:23 2011] [notice] caught SIGTERM, shutting down
[Wed Aug 03 19:04:24 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:04:31 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:06:35 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:08:16 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:13:13 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:22:41 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:31:26 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 19:51:33 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 20:01:26 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/php.ini on line 879 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
[Wed Aug 03 20:01:27 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
[Wed Aug 03 20:01:27 2011] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.7 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k configured – resuming normal operations
[Wed Aug 03 20:36:48 2011] [error] [client 76.170.59.240] File does not exist: /var/www/favicon.ico
[Wed Aug 03 20:37:36 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/php.ini on line 879 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
[Wed Aug 03 20:37:36 2011] [warn] RSA server certificate CommonName (CN) `li216-227.members.linode.com' does NOT match server name!?
Also, you're still using a self signed cert:
~~![](<URL url=)http://brianlance.net/images/cre8ivewear_ssl.jpg
Is your apache config referencing the correct SSL certificate file(s)?~~