2

I've just upgraded to 13.10 from 13.04 and my Apache config won't load. I get this error:

AH00526 Syntax error on line 43 of /etc/apache2/mods-enabled/ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ) Maybe you
need to load the appropriate socache module (mod_socache_shmcb?).
Action 'configtest' failed.

I can't seem to find a package for it, and it seems it used to be provided by the apache2-bin package. I can't seem to find mod_socache_shmcb on my system anywhere either. I'm running apache2-2.4.6-2ubuntu on amd64. How can I get SSL to work again for multiple virtual hosts?

The shmcb socache module seems to be there still in 2.4 according to the docs.

1
  • I was mistaken, the module is actually there. See my answer below to fix it.
    – sventech
    Commented Oct 24, 2013 at 19:40

2 Answers 2

4

Enable the module by copying the file:

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

That will handle the first error.

Then there is an error about SSLMutex, so replace that line of mods-enabled/ssl.load with this instruction:

Mutex sysvsem default
1
  • I've since learned of a2enmod to enable modules, but it is not always available.
    – sventech
    Commented Mar 21, 2014 at 0:13
3

The best way to enable and disable Apache modules on Ubuntu is via the a2enmod and a2dismod commands. In this case:

sudo a2enmod socache_shmcb
sudo service apache2 restart

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .