Otóż tak. Mój serwer na windowsie: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1.
Ściągnąłem bibliotekę APC, dokładna nazwa: php_apc-3.1.5-5.3-vc6-x86 (pod vc9 nie działa, pod vc6 niby działa).
W php.ini dodałem:
Kod
extension=php_apc.dll
Kod
[APC]
apc.cache_by_default = On
apc.enable_cli = Off
apc.enabled = On
apc.file_update_protection = 2
apc.filters =
apc.gc_ttl = 3600
apc.include_once_override = Off
apc.max_file_size = 1M
apc.num_files_hint = 1000
apc.optimization = Off
apc.rfc1867 = On
apc.report_autofilter = Off
apc.shm_segments = 1
apc.shm_size = 30
apc.slam_defense = 0
apc.stat = On
apc.ttl = 0
apc.user_entries_hint = 100
apc.user_ttl = 0
apc.write_lock = On1
apc.cache_by_default = On
apc.enable_cli = Off
apc.enabled = On
apc.file_update_protection = 2
apc.filters =
apc.gc_ttl = 3600
apc.include_once_override = Off
apc.max_file_size = 1M
apc.num_files_hint = 1000
apc.optimization = Off
apc.rfc1867 = On
apc.report_autofilter = Off
apc.shm_segments = 1
apc.shm_size = 30
apc.slam_defense = 0
apc.stat = On
apc.ttl = 0
apc.user_entries_hint = 100
apc.user_ttl = 0
apc.write_lock = On1
Apache się włącza normalnie, bez żadnych błędów. Ale próba wywołania jakiejkolwiek strony powoduje jego wyłączenie, również nie wyświetla żadnych błędów.
Logi pokazują tyle:
Kod
[Fri Jun 03 20:02:12 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jun 03 20:02:12 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 03 20:02:12 2011] [notice] Digest: done
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
[Fri Jun 03 20:02:13 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Jun 03 20:02:13 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Jun 03 20:02:13 2011] [notice] Parent: Created child process 8904
[Fri Jun 03 20:02:14 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 03 20:02:14 2011] [notice] Digest: done
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in <b>Unknown</b> on line <b>0</b><br />
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Child process is running
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Acquired the start mutex.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting 150 worker threads.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting thread to listen on port 443.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting thread to listen on port 80.
[Fri Jun 03 20:02:20 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Fri Jun 03 20:02:12 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 03 20:02:12 2011] [notice] Digest: done
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
[Fri Jun 03 20:02:13 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Jun 03 20:02:13 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Jun 03 20:02:13 2011] [notice] Parent: Created child process 8904
[Fri Jun 03 20:02:14 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 03 20:02:14 2011] [notice] Digest: done
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in <b>Unknown</b> on line <b>0</b><br />
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Child process is running
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Acquired the start mutex.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting 150 worker threads.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting thread to listen on port 443.
[Fri Jun 03 20:02:15 2011] [notice] Child 8904: Starting thread to listen on port 80.
[Fri Jun 03 20:02:20 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting.
Co jest źle i jak to naprawić? Byłbym bardzo wdzięczny za pomoc.
---------------------------------------------
Ok naprawiłem, zmieniłem
Kod
apc.shm_size=512
na
Kod
apc.shm_size=512M