Apache 2.4 configuration for ssl not working

Apache Server 2.4 with mod_jk 1.3.7 does not work for ssl (https)

Error 1:

Apache reported the following error:

SSLSessionCache: 'shmcb' session cache is not supported (known names :). Perhaps you need to download the appropriate socache module (mod_socache_shmcb?).

Error 2:

Invalid application name: httpd.exe, version: 2.4.4.0, time stamp: 0x512fec36 Module name error: mod_jk.so, version: 1.2.37.0, time stamp: 0x4fc48072 Exception code: 0xc0000005 Error offset: 0x000000000000752d Failure process identifier: 0x3580 Time application launch: 0x01cee6d2be493d71 Error in the application path: C: \ Program Files \ Apache Software Foundation \ Apache2.4 \ bin \ httpd.exe Error in the module path: C: \ Program Files \ Apache Software Foundation \ Apache2.4 \ modules \ mod_jk .so Report ID: f8d090fa-52c6-11e3-bce9-e4d53d737212

Our configuration for httpd_ssl.conf as follows:

 Listen 443 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLPassPhraseDialog builtin SSLSessionCache "shmcb:C:/Program Files/Apache Software Foundation/Apache2.4/logs/ssl_scache(512000)" SSLSessionCacheTimeout 300 <VirtualHost _default_:443> DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.4/htdocs" ServerName 127.0.0.1:443 ServerAdmin admin@mshome.net ErrorLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/error.log" TransferLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/access.log" SSLEngine on SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/serverssl.crt" SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/server.key" SSLCACertificateFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/bundle.crt" <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin"> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost> 

TIA ....!

+62
tomcat7 apache2 mod-jk
Nov 21 '13 at 16:54
source share
5 answers

In Apache2.2, by default, the apache/conf/httpd.conf uncommented by default.

LoadModule socache_shmcb_module modules / mod_socache_shmcb.so

From Apache 2.4 above the line is commented out, so before that remove the # sign.

That should work.

+107
Nov 22 '13 at 12:16
source share

On apache 2.4.25-3 + deb9u4 (obviously Debian), the line mentioned by @Mr Roshan Pawar does not exist. You must create a symbolic link pointing to the module and including it in /etc/apache2/mods-enabled as follows:

ln -s../mods-available/socache_shmcb.load socache_shmcb.load

As @ericP said, you need to restart your Apache, depending on your distribution / configuration it might be:

 service apache2 restart /etc/init.d/apache2 restart systemctl restart apache2 apache2 -k restart 
+5
Jul 31 '18 at 13:59
source share

For el capitan, the path to the so file is /usr/libexec/apache2/mod_socache_shmcb.so ,

My httpd.conf entry looked like this:

 LoadModule socache_shmcb_module /usr/libexec/apache2/mod_socache_shmcb.so 
+4
Jan 11 '16 at 19:24
source share

cp / etc / apache2 / mods-available / socache_shmcb.load / etc / apache2 / mods-enabled /

This will fix: SSLSessionCache: 'shmcb' session cache is not supported (known names :). Perhaps you need to download the appropriate socache module (mod_socache_shmcb?).

+3
Jun 25 '16 at 20:29
source share

For Apache 2.4. in Ubuntu:

 sudo a2enmod socache_shmcb 
0
Mar 04 '19 at 11:43
source share