Apache won't start after installing SSL












0















I've recently purchased SSL Certificate from GoDaddy and installed it on Ubuntu 18.04.1 LTS when I enable my website apache doesn't start, when I disable the website, it works fine.



When I restart it says:



See "systemctl status apache2.service" and "journalctl -xe" for details.



error.log says



[Thu Jan 10 08:30:52.262743 2019] [core:info] [pid 11697] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11697)
[Thu Jan 10 08:30:52.262778 2019] [mpm_prefork:notice] [pid 11697] AH00169: caught SIGTERM, shutting down
[Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL
AH00016: Configuration Failed
[Thu Jan 10 08:30:59.345931 2019] [ssl:info] [pid 11799] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.347452 2019] [ssl:info] [pid 11799] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.372953 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(401): AH00821: shmcb_init allocated 512000 bytes of shared memory
[Thu Jan 10 08:30:59.372962 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(417): AH00822: for 511912 bytes (512000 including header), recommending 32 subcaches, 88 indexes each
[Thu Jan 10 08:30:59.372965 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(450): AH00824: shmcb_init_memory choices follow
[Thu Jan 10 08:30:59.372967 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(452): AH00825: subcache_num = 32
[Thu Jan 10 08:30:59.372969 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(454): AH00826: subcache_size = 15992
[Thu Jan 10 08:30:59.372972 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(456): AH00827: subcache_data_offset = 2128
[Thu Jan 10 08:30:59.372974 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(458): AH00828: subcache_data_size = 13864
[Thu Jan 10 08:30:59.372976 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(460): AH00829: index_num = 88
[Thu Jan 10 08:30:59.373045 2019] [socache_shmcb:info] [pid 11805] AH00830: Shared memory socache initialised
[Thu Jan 10 08:30:59.373048 2019] [ssl:info] [pid 11805] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.374533 2019] [ssl:info] [pid 11805] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.374553 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Thu Jan 10 08:30:59.374557 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Thu Jan 10 08:30:59.374560 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Thu Jan 10 08:30:59.374563 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Thu Jan 10 08:30:59.374565 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Thu Jan 10 08:30:59.376195 2019] [watchdog:debug] [pid 11809] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.376847 2019] [watchdog:debug] [pid 11810] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.377929 2019] [watchdog:debug] [pid 11813] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.378492 2019] [mpm_prefork:notice] [pid 11805] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Jan 10 08:30:59.378507 2019] [mpm_prefork:info] [pid 11805] AH00164: Server built: 2018-10-10T18:59:25
[Thu Jan 10 08:30:59.378513 2019] [core:notice] [pid 11805] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 10 08:30:59.378516 2019] [core:debug] [pid 11805] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Thu Jan 10 08:30:59.378526 2019] [mpm_prefork:debug] [pid 11805] prefork.c(923): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Thu Jan 10 08:30:59.378714 2019] [watchdog:debug] [pid 11815] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.379264 2019] [watchdog:debug] [pid 11816] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:05.386866 2019] [watchdog:debug] [pid 11817] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:09.392196 2019] [watchdog:debug] [pid 11818] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.393937 2019] [watchdog:debug] [pid 11830] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.434633 2019] [core:info] [pid 11805] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11805)
[Thu Jan 10 08:31:12.434663 2019] [mpm_prefork:notice] [pid 11805] AH00169: caught SIGTERM, shutting down


apache2ctl configtest
Syntax OK



My Website conf file (I've changed the host to mydomain.com),



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin info@mydomain.com
ServerName mydomain.com
DocumentRoot /var/www

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/mydomain.com_ssl_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/mydomain.com_ssl_access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


SSLEngine on

SSLCertificateFile /home/ubuntu/ssl_mydomain.com.crt
SSLCertificateKeyFile /home/ubuntu/ssl_mydomain.com.key
SSLCertificateChainFile /home/ubuntu/ssl_mydomain.com_chain.crt

<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>


Path to certificate files are correct, I've double checked it.



PS: The same conf file with another host is working perfectly on the same server.










share|improve this question























  • What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

    – mariaczi
    Jan 10 at 12:03













  • I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

    – Wasi
    Jan 10 at 13:52











  • In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

    – mariaczi
    Jan 10 at 13:57











  • @mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

    – Wasi
    Jan 11 at 9:40
















0















I've recently purchased SSL Certificate from GoDaddy and installed it on Ubuntu 18.04.1 LTS when I enable my website apache doesn't start, when I disable the website, it works fine.



When I restart it says:



See "systemctl status apache2.service" and "journalctl -xe" for details.



error.log says



[Thu Jan 10 08:30:52.262743 2019] [core:info] [pid 11697] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11697)
[Thu Jan 10 08:30:52.262778 2019] [mpm_prefork:notice] [pid 11697] AH00169: caught SIGTERM, shutting down
[Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL
AH00016: Configuration Failed
[Thu Jan 10 08:30:59.345931 2019] [ssl:info] [pid 11799] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.347452 2019] [ssl:info] [pid 11799] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.372953 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(401): AH00821: shmcb_init allocated 512000 bytes of shared memory
[Thu Jan 10 08:30:59.372962 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(417): AH00822: for 511912 bytes (512000 including header), recommending 32 subcaches, 88 indexes each
[Thu Jan 10 08:30:59.372965 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(450): AH00824: shmcb_init_memory choices follow
[Thu Jan 10 08:30:59.372967 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(452): AH00825: subcache_num = 32
[Thu Jan 10 08:30:59.372969 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(454): AH00826: subcache_size = 15992
[Thu Jan 10 08:30:59.372972 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(456): AH00827: subcache_data_offset = 2128
[Thu Jan 10 08:30:59.372974 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(458): AH00828: subcache_data_size = 13864
[Thu Jan 10 08:30:59.372976 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(460): AH00829: index_num = 88
[Thu Jan 10 08:30:59.373045 2019] [socache_shmcb:info] [pid 11805] AH00830: Shared memory socache initialised
[Thu Jan 10 08:30:59.373048 2019] [ssl:info] [pid 11805] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.374533 2019] [ssl:info] [pid 11805] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.374553 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Thu Jan 10 08:30:59.374557 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Thu Jan 10 08:30:59.374560 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Thu Jan 10 08:30:59.374563 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Thu Jan 10 08:30:59.374565 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Thu Jan 10 08:30:59.376195 2019] [watchdog:debug] [pid 11809] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.376847 2019] [watchdog:debug] [pid 11810] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.377929 2019] [watchdog:debug] [pid 11813] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.378492 2019] [mpm_prefork:notice] [pid 11805] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Jan 10 08:30:59.378507 2019] [mpm_prefork:info] [pid 11805] AH00164: Server built: 2018-10-10T18:59:25
[Thu Jan 10 08:30:59.378513 2019] [core:notice] [pid 11805] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 10 08:30:59.378516 2019] [core:debug] [pid 11805] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Thu Jan 10 08:30:59.378526 2019] [mpm_prefork:debug] [pid 11805] prefork.c(923): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Thu Jan 10 08:30:59.378714 2019] [watchdog:debug] [pid 11815] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.379264 2019] [watchdog:debug] [pid 11816] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:05.386866 2019] [watchdog:debug] [pid 11817] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:09.392196 2019] [watchdog:debug] [pid 11818] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.393937 2019] [watchdog:debug] [pid 11830] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.434633 2019] [core:info] [pid 11805] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11805)
[Thu Jan 10 08:31:12.434663 2019] [mpm_prefork:notice] [pid 11805] AH00169: caught SIGTERM, shutting down


apache2ctl configtest
Syntax OK



My Website conf file (I've changed the host to mydomain.com),



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin info@mydomain.com
ServerName mydomain.com
DocumentRoot /var/www

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/mydomain.com_ssl_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/mydomain.com_ssl_access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


SSLEngine on

SSLCertificateFile /home/ubuntu/ssl_mydomain.com.crt
SSLCertificateKeyFile /home/ubuntu/ssl_mydomain.com.key
SSLCertificateChainFile /home/ubuntu/ssl_mydomain.com_chain.crt

<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>


Path to certificate files are correct, I've double checked it.



PS: The same conf file with another host is working perfectly on the same server.










share|improve this question























  • What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

    – mariaczi
    Jan 10 at 12:03













  • I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

    – Wasi
    Jan 10 at 13:52











  • In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

    – mariaczi
    Jan 10 at 13:57











  • @mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

    – Wasi
    Jan 11 at 9:40














0












0








0








I've recently purchased SSL Certificate from GoDaddy and installed it on Ubuntu 18.04.1 LTS when I enable my website apache doesn't start, when I disable the website, it works fine.



When I restart it says:



See "systemctl status apache2.service" and "journalctl -xe" for details.



error.log says



[Thu Jan 10 08:30:52.262743 2019] [core:info] [pid 11697] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11697)
[Thu Jan 10 08:30:52.262778 2019] [mpm_prefork:notice] [pid 11697] AH00169: caught SIGTERM, shutting down
[Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL
AH00016: Configuration Failed
[Thu Jan 10 08:30:59.345931 2019] [ssl:info] [pid 11799] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.347452 2019] [ssl:info] [pid 11799] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.372953 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(401): AH00821: shmcb_init allocated 512000 bytes of shared memory
[Thu Jan 10 08:30:59.372962 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(417): AH00822: for 511912 bytes (512000 including header), recommending 32 subcaches, 88 indexes each
[Thu Jan 10 08:30:59.372965 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(450): AH00824: shmcb_init_memory choices follow
[Thu Jan 10 08:30:59.372967 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(452): AH00825: subcache_num = 32
[Thu Jan 10 08:30:59.372969 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(454): AH00826: subcache_size = 15992
[Thu Jan 10 08:30:59.372972 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(456): AH00827: subcache_data_offset = 2128
[Thu Jan 10 08:30:59.372974 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(458): AH00828: subcache_data_size = 13864
[Thu Jan 10 08:30:59.372976 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(460): AH00829: index_num = 88
[Thu Jan 10 08:30:59.373045 2019] [socache_shmcb:info] [pid 11805] AH00830: Shared memory socache initialised
[Thu Jan 10 08:30:59.373048 2019] [ssl:info] [pid 11805] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.374533 2019] [ssl:info] [pid 11805] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.374553 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Thu Jan 10 08:30:59.374557 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Thu Jan 10 08:30:59.374560 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Thu Jan 10 08:30:59.374563 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Thu Jan 10 08:30:59.374565 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Thu Jan 10 08:30:59.376195 2019] [watchdog:debug] [pid 11809] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.376847 2019] [watchdog:debug] [pid 11810] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.377929 2019] [watchdog:debug] [pid 11813] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.378492 2019] [mpm_prefork:notice] [pid 11805] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Jan 10 08:30:59.378507 2019] [mpm_prefork:info] [pid 11805] AH00164: Server built: 2018-10-10T18:59:25
[Thu Jan 10 08:30:59.378513 2019] [core:notice] [pid 11805] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 10 08:30:59.378516 2019] [core:debug] [pid 11805] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Thu Jan 10 08:30:59.378526 2019] [mpm_prefork:debug] [pid 11805] prefork.c(923): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Thu Jan 10 08:30:59.378714 2019] [watchdog:debug] [pid 11815] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.379264 2019] [watchdog:debug] [pid 11816] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:05.386866 2019] [watchdog:debug] [pid 11817] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:09.392196 2019] [watchdog:debug] [pid 11818] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.393937 2019] [watchdog:debug] [pid 11830] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.434633 2019] [core:info] [pid 11805] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11805)
[Thu Jan 10 08:31:12.434663 2019] [mpm_prefork:notice] [pid 11805] AH00169: caught SIGTERM, shutting down


apache2ctl configtest
Syntax OK



My Website conf file (I've changed the host to mydomain.com),



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin info@mydomain.com
ServerName mydomain.com
DocumentRoot /var/www

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/mydomain.com_ssl_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/mydomain.com_ssl_access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


SSLEngine on

SSLCertificateFile /home/ubuntu/ssl_mydomain.com.crt
SSLCertificateKeyFile /home/ubuntu/ssl_mydomain.com.key
SSLCertificateChainFile /home/ubuntu/ssl_mydomain.com_chain.crt

<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>


Path to certificate files are correct, I've double checked it.



PS: The same conf file with another host is working perfectly on the same server.










share|improve this question














I've recently purchased SSL Certificate from GoDaddy and installed it on Ubuntu 18.04.1 LTS when I enable my website apache doesn't start, when I disable the website, it works fine.



When I restart it says:



See "systemctl status apache2.service" and "journalctl -xe" for details.



error.log says



[Thu Jan 10 08:30:52.262743 2019] [core:info] [pid 11697] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11697)
[Thu Jan 10 08:30:52.262778 2019] [mpm_prefork:notice] [pid 11697] AH00169: caught SIGTERM, shutting down
[Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL
AH00016: Configuration Failed
[Thu Jan 10 08:30:59.345931 2019] [ssl:info] [pid 11799] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.347452 2019] [ssl:info] [pid 11799] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.372953 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(401): AH00821: shmcb_init allocated 512000 bytes of shared memory
[Thu Jan 10 08:30:59.372962 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(417): AH00822: for 511912 bytes (512000 including header), recommending 32 subcaches, 88 indexes each
[Thu Jan 10 08:30:59.372965 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(450): AH00824: shmcb_init_memory choices follow
[Thu Jan 10 08:30:59.372967 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(452): AH00825: subcache_num = 32
[Thu Jan 10 08:30:59.372969 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(454): AH00826: subcache_size = 15992
[Thu Jan 10 08:30:59.372972 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(456): AH00827: subcache_data_offset = 2128
[Thu Jan 10 08:30:59.372974 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(458): AH00828: subcache_data_size = 13864
[Thu Jan 10 08:30:59.372976 2019] [socache_shmcb:debug] [pid 11805] mod_socache_shmcb.c(460): AH00829: index_num = 88
[Thu Jan 10 08:30:59.373045 2019] [socache_shmcb:info] [pid 11805] AH00830: Shared memory socache initialised
[Thu Jan 10 08:30:59.373048 2019] [ssl:info] [pid 11805] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jan 10 08:30:59.374533 2019] [ssl:info] [pid 11805] AH01876: mod_ssl/2.4.29 compiled against Server: Apache/2.4.29, Library: OpenSSL/1.1.0g
[Thu Jan 10 08:30:59.374553 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Thu Jan 10 08:30:59.374557 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Thu Jan 10 08:30:59.374560 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Thu Jan 10 08:30:59.374563 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Thu Jan 10 08:30:59.374565 2019] [watchdog:debug] [pid 11805] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Thu Jan 10 08:30:59.376195 2019] [watchdog:debug] [pid 11809] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.376847 2019] [watchdog:debug] [pid 11810] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.377929 2019] [watchdog:debug] [pid 11813] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.378492 2019] [mpm_prefork:notice] [pid 11805] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Jan 10 08:30:59.378507 2019] [mpm_prefork:info] [pid 11805] AH00164: Server built: 2018-10-10T18:59:25
[Thu Jan 10 08:30:59.378513 2019] [core:notice] [pid 11805] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 10 08:30:59.378516 2019] [core:debug] [pid 11805] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Thu Jan 10 08:30:59.378526 2019] [mpm_prefork:debug] [pid 11805] prefork.c(923): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Thu Jan 10 08:30:59.378714 2019] [watchdog:debug] [pid 11815] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:30:59.379264 2019] [watchdog:debug] [pid 11816] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:05.386866 2019] [watchdog:debug] [pid 11817] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:09.392196 2019] [watchdog:debug] [pid 11818] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.393937 2019] [watchdog:debug] [pid 11830] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Thu Jan 10 08:31:12.434633 2019] [core:info] [pid 11805] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=11805)
[Thu Jan 10 08:31:12.434663 2019] [mpm_prefork:notice] [pid 11805] AH00169: caught SIGTERM, shutting down


apache2ctl configtest
Syntax OK



My Website conf file (I've changed the host to mydomain.com),



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin info@mydomain.com
ServerName mydomain.com
DocumentRoot /var/www

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/mydomain.com_ssl_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/mydomain.com_ssl_access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


SSLEngine on

SSLCertificateFile /home/ubuntu/ssl_mydomain.com.crt
SSLCertificateKeyFile /home/ubuntu/ssl_mydomain.com.key
SSLCertificateChainFile /home/ubuntu/ssl_mydomain.com_chain.crt

<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>


Path to certificate files are correct, I've double checked it.



PS: The same conf file with another host is working perfectly on the same server.







ubuntu apache-http-server ssl






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 10 at 11:47









WasiWasi

11




11













  • What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

    – mariaczi
    Jan 10 at 12:03













  • I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

    – Wasi
    Jan 10 at 13:52











  • In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

    – mariaczi
    Jan 10 at 13:57











  • @mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

    – Wasi
    Jan 11 at 9:40



















  • What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

    – mariaczi
    Jan 10 at 12:03













  • I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

    – Wasi
    Jan 10 at 13:52











  • In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

    – mariaczi
    Jan 10 at 13:57











  • @mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

    – Wasi
    Jan 11 at 9:40

















What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

– mariaczi
Jan 10 at 12:03







What you got in apache error log file when you try to start it with enabled this conf? Maybe you have two the same VirtualHost: "default:443"

– mariaczi
Jan 10 at 12:03















I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

– Wasi
Jan 10 at 13:52





I already have two different host i.e. ServerName running with <VirtualHost default:443> and its working perfectly fine.

– Wasi
Jan 10 at 13:52













In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

– mariaczi
Jan 10 at 13:57





In your attached log is: [Thu Jan 10 08:30:52.322647 2019] [ssl:info] [pid 11757] AH01887: Init: Initializing (virtual) servers for SSL AH00016: Configuration Failed so, you have something wrong in your configuration. You show us only a part of them.

– mariaczi
Jan 10 at 13:57













@mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

– Wasi
Jan 11 at 9:40





@mariaczi I've shared complete site configuration file here. And two other hosts with same configuration files are working perfectly fine, I've compared them with WinMerge multiple times.

– Wasi
Jan 11 at 9:40










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392724%2fapache-wont-start-after-installing-ssl%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392724%2fapache-wont-start-after-installing-ssl%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...