Bug #55883

Random errors with activated APC.so

Added by Peter Kraume over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2014-02-11
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

PHP 5.4.16 / FastCGI
APC Version 3.1.9
TYPO3 6.2.0beta5

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    85.183.91.73    (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    85.183.91.73    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")

History

#1 Updated by Alexander Opitz over 6 years ago

  • Status changed from New to Needs Feedback

Does the patch from #54906 helps?

#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

#3 Updated by Alexander Opitz about 6 years ago

  • Target version deleted (6.2.0)

Hallo Peter,

does the issues with APC still exists with TYPO3 CMS 6.2.4?

#4 Updated by Peter Kraume about 6 years ago

The problem still exists with TYPO3 6.2.4. This time only the Error 500 mentioned earlier.

#5 Updated by Alexander Opitz about 6 years ago

Any logile which has more informations, why "php-fcgi-starter" aborts?

#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?

#8 Updated by Peter Kraume about 6 years ago

Yes you can close this issue. Many thanks for your support!

#9 Updated by Alexander Opitz about 6 years ago

  • Status changed from Needs Feedback to Closed

Also available in: Atom PDF