Apache

How To Fix Apache SSL Module Skipping Warning

ssl_modules
mm
Written by Santosh Prasad

Recently I faced another issue during Apache restart. When I ran “httpd -t” command to check Apache configuration. I got ” module ssl_module is already loaded, skipping ” error during test.This happened because ssl module was enabled more than 1 place. If you have more virtual host configuration file in Apache,it is very difficult to find where ssl module line is define. In this article I will explain how to fix this error easily. After editing Apache configuration file check it for syntax error.

How to find out syntax error in Apache configuration file ?

Execute below command to check for error.

For Debian Linux :

#/usr/sbin/apache-perl -t

For Redhat Linux :

#/usr/sbin/httpd -t

command output:
[Fri Jun 08 11:12:19 2012] [warn] module ssl_module is already loaded, skipping
Syntax OK

To fix abow warning, first we will grep “ssl_module” in all configuration file.

#grep ssl_module -rI /etc/httpd/*

conf/httpd.conf:LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so

conf.d/ssl.conf:LoadModule ssl_module modules/mod_ssl.so

You can see there are two file grepped where ssl_module is define.

We can load all needed modules in one place /etc/httpd/conf/httpd.conf file. So we can remove or comment out it from /etc/httpd/conf.d/ssl.conf file.

Example :

#vim /etc/httpd/conf.d/ssl.conf

#LoadModule ssl_module modules/mod_ssl.so

commend out ssl_module, and exit after saving file.

Now run again sysntex check command and check

#httpd -t

Syntax OK

You can see there are any warning.

Restart apache service

#service httpd restart

I hope this article will be helpful to  fix Apache ssl_module skipping warning if already loaded. If you have any queries and problem please comment in comment section or you can also ask your question.

Thanks:)

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment