SSLSessionCache error on Apache for Windows

While setting up Apache for Windows to use SSPI so that I could implement Alain O’Dea’s method of combining Active Directory authentication with SVN I ran into an interesting path problem.

After following Alain’s instructions I kept receiving the following error:

SSLSessionCache: Invalid argument: size has to be >= 8192 bytes

After some investigation it runs out that this is due to the way the path in the configuration file was being parsed.  This is partially due to my environment.  On Windows Server 2008 when installing a 32-bit application, the installer drops the files into C:\Program Files (x86)\… unless otherwise directed.

It turns out that the extra set of parenthesis was causing Apache to bomb out.  I tried wrapping the path in quotes, as well as falling back to the Windows 98 naming scheme of using C:\Progra~2\Apache Software Foundation\Apache2.2\… but that didn’t work out either.  What I ended up doing was making a shortcut on the root of the C: drive called apache that pointed to the contents of C:\Program Files (x86)\Apache Software Foundation\ making the final path in the configuration file:

C:/apache/Apache2.2/logs/ssl_scache(512000)

References

  1. http://www.mail-archive.com/modssl-users@modssl.org/msg17862.html
  2. http://wiki.apache.org/httpd/SSLSessionCache
  3. http://concise-software.blogspot.com/2009/02/instant-windows-svn-server-with-ssl-and.html

10 thoughts on “SSLSessionCache error on Apache for Windows

  1. Pingback: Java Development Infrastructure – Technical notes

  2. I ran into this SSLSessionCache problem while trying to setup Apache HTTP with SSL on Windows 7. I found this page via Google search. This was a big help.

  3. Your fix is not really correct. The fix works but shortcuts do not work like you suggest . The only reason your fix works is because it is possible to use any path for the SSLSessionCache setting. I think that only the file name is meaningful and not even as a file name. The path is ignored in this setting on Windows. You could have used any old path and had the same result, as long as the (x86) was not there to cause a parsing problem.

    Note that shortcuts only work in Windows in the explorer and are not like Unix symbolic or hard links. If Apache had tried to open the file you specified, it would have failed because the OS would not try to use the shortcut as a directory.

    You did lead me to fixing the same problem on my system and I appreciate your posting the information. I just used an arbitrary path.

    Thanks.

    Dave

  4. I tried the following it is accepting this path not sure it is using the path correctly

    SSLSessionCache ‘shmcb:C:/PROGRA\~2/APACHE\~1/Apache2.2/logs/ssl_scache(512000)’

  5. Thanks a lot. I found that SSLsessioncache was having problems but I cannot figured out what it’s wrong. That solution works ok.

  6. Yeah it’s the brackets (x86) that confuse the module. This is how you can escape the path properly…

    SSLSessionCache “shmcb:C:/Progra\~2/Zend/Apache2/logs/ssl_scache(512000)”

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">