Apache 2.4 php 5.6 mod_fastcgi opcache enabled internal server error

Recently I had an internal server error, running two virtual hosts of OJS on Apache 2.4 and PHP 5.6 with opcache enabled. On some pages I had internal server error with lines in logs:

mod_fcgid: get overlap result error
[core:error] [pid 11288:tid 2604] [client] End of script output before headers: index.php, referer

I tried to disable opcache extension and error was gone. Is there any way to make it work with opcache?

Hi @mamaeves,

OJS works with Opcache, but I suspect there’s some obscure interaction between PHP, Apache, mod_fcgid, and Opcache that’s surfacing a bug in one or several of those. References online suggest that upgrading your server toolset (probably PHP and mod_fcgid) might resolve it. From the OJS perspective there’s not much we can do, I’m afraid.

Alec Smecher
Public Knowledge Project Team