Solved

Apache cannot start, unable to load module mod_ssl

Posted on 2011-03-08
8
4,738 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

786 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