After I enable APC throwing Lots of PHP Notices
Posted: 21. November 2013 19:57
I have installed APC on our Windows server but throwing Lots of PHP Notices
APC Runtime Settings (php.ini)
PHP Notices
download the APC precompiled binary version (php_apc-3.1.13-5.4-ts-vc9-x86.zip) from
http://windows.php.net/downloads/pecl/releases/apc/3.1.13/
- Code: Select all
System Windows NT 6.1 build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586
Architecture x86
Server API Apache 2.4 Handler Apache Lounge
Thread Safety enabled
PHP Extension Build API20100525,TS,VC9
Apache Version Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
Virtual Server Yes
APC Runtime Settings (php.ini)
- Code: Select all
extension=php_apc.dll
[APC]
; Enable/disable APC
apc.enabled = 1
; PHP file cache 1 hour
apc.ttl=3600
; User cache 2 hour
apc.user_ttl=7200
; Garbage collection 1 hour
apc.gc_ttl=3600
; Setting this to 0 will give you the best performance, as APC will
; not have to check the IO for changes.
apc.stat=1
PHP Notices
- Code: Select all
Notice: Unknown: 1. h->opened_path=[null] h->filename=[xxxx] in Unknown on line 0
Notice: Unknown: apc_cache_find [-1302308902] in Unknown on line 0
Notice: Unknown: 2. h->opened_path=[xxx] h->filename=[xxx] in Unknown on line 0
Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [xxxx] in Unknown on line 0
Notice: Unknown: Inserting [xxxx] in Unknown on line 0
Notice: require_once(): 1. h->opened_path=[xxx] h->filename=[xxx] in xxxx on line 2
Notice: require_once(): apc_cache_find [-1302314147] in xxx line 2
Notice: require_once(): 2. h->opened_path=[xxxx] in xxx on line 2
Notice: require_once(): apc_cache_make_file_entry: entry->data.file.filename is [xxxx] in xxx on line 2
Notice: require_once(): Inserting [xxx] in xxx on line 2
download the APC precompiled binary version (php_apc-3.1.13-5.4-ts-vc9-x86.zip) from
http://windows.php.net/downloads/pecl/releases/apc/3.1.13/