Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Apache cannot start, unable to load module mod_ssl

Posted on 2011-03-08
8
Medium Priority
?
5,024 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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 

Author Comment

by:Raz
ID: 35078656
How to check SELinux turned on or not?
0
 
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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month10 days, left to enroll

927 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