Solved

Apache cannot start, unable to load module mod_ssl

Posted on 2011-03-08
8
4,696 Views
Last Modified: 2012-05-11
I have recently installed a new apache webserver on my red hat linux server. It was working fine on port 2345. I have recently tried to enable https on it and added the required parameters like below, since when apache is not starting. It gives the error,

--------------------------------------------------------------------------------------------------

httpd: Syntax error on line 43 of /apps/elsdev/apache/conf/httpd.conf: Cannot load /apps/elsdev/apache/modules/mod_ssl.so into server: /apps/elsdev/apache/modules/mod_ssl.so: wrong ELF class: ELFCLASS32

--------------------------------------------------------------------------------------------------


LoadModule ssl_module /apps/elsdev/apache/modules/mod_ssl.so

<IfDefine SSL>

  SSLEngine on
  SSLCertificateFile /apps/elsdev/ssl/sabweb-dev-02.cer
  SSLCertificateKeyFile /apps/elsdev/ssl/server.key
  SSLCertificateChainFile /apps/elsdev/ssl/TEST_SSL_CA.cer

</IfDefine>

Versions info::

Apache webserver: httpd-2.2.17
Red Hat Linux         :

$ uname -a
Linux web-dev-02 2.6.18-128.1.14.el5 #1 SMP Mon Jun 1 15:52:58 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Please let me what I am doing wrong?
0
Comment
Question by:Raz
  • 5
  • 2
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 35078572
looks like a 32 bit module installed on a 64 bit system
0
 
LVL 3

Expert Comment

by:VespaMaru
ID: 35078632
Is SELinux turned on?  If so you may need adjust for the SSL cert files.
0
 

Assisted Solution

by:Raz
Raz earned 0 total points
ID: 35078652
Also I have added a recent version of mod_ssl and tried. It gave me error

httpd: Syntax error on line 43 of /apps/elsdev/apache/conf/httpd.conf: Cannot load /apps/elsdev/apache/modules/mod_ssl.so into server: /apps/elsdev/apache/modules/mod_ssl.so: cannot read file data: Is a directory

mod_ssl version : mod_ssl-2.8.30-1.3.39

How to determine a module 32 bit or 64 bit?
I think my linux server is of 64 bit. so where can I get a 64 bit module?
Please provide me the links.
0
 

Author Comment

by:Raz
ID: 35078656
How to check SELinux turned on or not?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 3

Expert Comment

by:VespaMaru
ID: 35078768
getenforce command will tell you.

As objects said though, get the 64bit module first.

http://www.ioncube.com/faqs/loaders.php#7aa  

You can compile it from source http://www.modssl.org/source/ or better yet, download it from the Red Hat repository.

0
 

Accepted Solution

by:
Raz earned 0 total points
ID: 35079628
I have downloaded 64bit module from,

http://pkgs.org/download/centos-5-rhel-5/centalt-x86_64/mod_ssl-2.2.17-1.el5.x86_64.rpm.html

and tried to start apache. I got another error,

httpd: Syntax error on line 43 of /apps/elsdev/apache/conf/httpd.conf: Cannot load /apps/elsdev/apache/modules/mod_ssl.so into server: libdistcache.so.1: cannot open shared object file: No such file or directory

Please help!!
0
 

Assisted Solution

by:Raz
Raz earned 0 total points
ID: 35079665
I think I have downloaded a module for centos.

Please provide me a url where I can get 64 bit module for linux...!!
0
 

Author Closing Comment

by:Raz
ID: 35174491
the comments provided by the experts is not helpful.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now