Category: Apache

Apache 2.2 on Windows Session Cache Error

Apache IconThere appears to be a bug with Apache 2.2.13 which I ran into on Windows Server. See the following bug entry: Bug 23403. Opening the error.log for Apache showed the following warning:

warn Init: Session Cache is not configured (hint: SSLSessionCache)

Adding the following lines to the httpd.conf fixed the problem:

SSLSessionCache        "shmcb:c:/Apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

Note: your Apache installation directory is probably different, so you will want to modify the above file path.

Filed under: Apache, Windows

PHP Extension php_exif

If you are running Apache 2.2.4 on Windows Server and try to load php_exif.dll in your php.ini file, this can cause Apache to not restart. The fix is pretty simple. You have to load php_mbstring.dll before php_exif.dll. For some reason, the default php.ini has exif listed before mbstring, which results in killing Apache on Windows.

My working set of extensions that I uncomment are:

  • extension=php_mbstring.dll
  • extension=php_exif.dll
  • extension=php_gd2.dll
  • extension=php_gettext.dll
  • extension=php_mcrypt.dll
  • extension=php_mysql.dll
  • extension=php_tidy.dll

This works for me on Windows Apache 2.2.4 and PHP 5.2.3.

Filed under: ApacheTagged with: , , ,