Windows – Apache 2.4 with OpenSSL service failing with “specific error Incorrect function”

opensslwindows 7

I downloaded Apache 2.4 from Apache Lounge and installed it on Windows 7, as a development server, and it worked fine. Now I'm try to use SSL with a self-signed certificate but restarting the service fails with:

The Apache2.4 service terminated with service-specific error Incorrect function..

I remember that Apache 2.2 had a specific OpenSSL download if you wanted to use SSL. Is this the case with Apache 2.4?

What else could cause the problem?

I have made sure that:

  1. Ports 80 and 443 are free
  2. LoadModule ssl_module modules/mod_ssl.so is uncommented
  3. Include conf/extra/httpd-ssl.conf is also uncommented

Best Answer

I just had this same problem. By running httpd.exe itself, I was given the following output:

AH00526: Syntax error on line 92 of C:/Apache24/conf/extra/httpd-ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you
need to load the appropriate socache module (mod_socache_shmcb?).

The fix is to uncomment the following line in httpd.conf:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
Related Question