APC (alternate PHP cache) throwing lots of PHP notifications

I have installed APC 3.1.9 on my Linux box running PHP 5.3.6.

Caching works fine, but I noticed in our error logs that APC throws a lot of PHP notifications, for example:

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Note: require_once () [function.require-once]: apc_cache_find [16085954] \ n in / path / to / file on line 75, referent : / Path / to / referrer / file

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Note: require_once () [function.require-once]: 1. h-> open_path = [/ path / to / file] h-> filename = [/ path / to / file] \ n in / path / to / file on line 84, referent: / path / to / referrer / file

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Note: Unknown: apc_cache_find [16215361] \ n in Unknown on line 0, referent: / path / to / referrer / file

-> / path / to / file and / path / to / referer / file were inserted by me, replacing the original file names

Any idea why APC is throwing all these messages?

+5
source share
4 answers

The exact installation line when installing / reinstalling APC is as follows:

Enable internal debugging in APC [no] :no 
+14
source

A bit late for Mike, but I found a solution (APC 3.1.9 / 3.1.13):

You can also do the following:

https://bugs.php.net/bug.php?id=59445

Where it says:

"If compilation is not an option, roll back to stable: pecl install -f APC-3.1.6"

This is really a regression, but it did a great job with me :)

+2
source

Uninstall and reinstall apc by typing "no" to disable debugging:

 pecl uninstall apc pecl install apc Enable internal debugging in APC [no] : no 

Restart apache: #service httpd restart or #/etc/init.d/apache restart

+2
source

And also this problem can be in the PHP version. (So ​​the version of PHP is changing / inconsistent, in particular if the website is moved. You should check.)

Good luck

0
source

All Articles