I had httpd 2.2.25 no-ssl installed on my server, to enable ssl I followed the following -
- Installed OpenSSL from here.
- Generated self-signed certificate (server.crt and server.key).
- Edited httpd-ssl.conf and httpd.conf to include .crt and .key files as well as mod_ssl.so from modules.
- Placed mod_ssl.so in the modules folder of apache.I used mod_ssl.so from various different sources available on the internet (also from the modules folder of a httpd 2.2.25 ssl version, but none seemed to work)
- On restarting httpd it gave this error everytime: httpd.exe Syntax error in line 123 c:/xyz/apache/conf/httpd.conf can not load c:/xyz/apache/modules/mod_ssl.so into server. The specified module can not found.
At last when nothing worked, I had to go with a new httpd installation with ssl.
This seems like some kind of version miss-match to me, but not sure if it is mod_ssl.so OR libeay32.dll OR ssleay32.dll causing the problem.
How to deal with this next time, I dont want to go with the re-installation everytime ?