Random errors with activated APC.so
PHP 5.4.16 / FastCGI
APC Version 3.1.9
TYPO3 throws random error messages when APC is activated in PHP on a domainfactory managed server.
Fatal error: Interface 'Psr\Log\LoggerInterface' not found in /kunden/168630_85521/rp-hosting/xx/xxx/xxxx.xx/typo3/sysext/core/Classes/Log/Logger.php on line 36
#1314979197: Class does not exist
Error 500: 2014-02-11 15:22:13 126.96.36.199 (104)Connection reset by peer: FastCGI: comm with server "/etc/httpd/fastcgi/php-fcgi-starter" aborted: read failed, referer: http://xxx.xxx.cc/typo3/index.php 2014-02-11 15:22:13 188.8.131.52 FastCGI: incomplete headers (0 bytes) received from server "/etc/httpd/fastcgi/php-fcgi-starter", referer: http://xxx.xxx.cc/typo3/index.php
In a blog post the hoster mentioned that there might miss a check for PHP_SAPI == 'fpm-fcgi'. The original post is here: https://www.df.eu/blog/2012/10/29/fastcgi-und-apc-nutzen/ (Section "Zusätzliche Hinweise")
#2 Updated by Peter Kraume over 6 years ago
I've tested it today with current Git master.
Still a lot of problems, e.g. Error 500
(104)Connection reset by peer: FastCGI: comm with server "/etc/httpd/fastcgi/php-fcgi-starter" aborted: read failed, referer: http://xxx/typo3/index.php FastCGI: incomplete headers (0 bytes) received from server "/etc/httpd/fastcgi/php-fcgi-starter", referer: http://xxx/typo3/index.php
or fatal errors:
Fatal error: in /.../TYPO3.CMS/typo3/sysext/core/Classes/Package/PackageManager.php on line 283
#6 Updated by Peter Kraume about 6 years ago
I've contacted my hoster now and they said, that they use the latest stable version of APC which is not fully compatible with PHP 5.4.
They suggest to switch to PHP 5.5 with built in Zend OPcache which I did now. So far, everything runs smooth.
So maybe there is no solution for TYPo3 and PHP 5.4 together with APC.
#7 Updated by Alexander Opitz about 6 years ago
For myself I used APC 3.1.13 with PHP 5.4 as it included bugfixes for symlinked paths.
As a side note: APC 3.1.10 was first release with support for PHP 5.4 see http://pecl.php.net/package-changelog.php?package=APC&release=3.1.10
But also PHP 5.5 with activated OPcache is a good idea (as 5.5 performs better with TYPO3 backend in my local tests).
As you switched, can we close this issue?