Solved

Apache cannot start, unable to load module mod_ssl

Posted on 2011-03-08
8
4,724 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

22 Experts available now in Live!

Get 1:1 Help Now