Skip to content

Commit

Permalink
Enable APC
Browse files Browse the repository at this point in the history
  • Loading branch information
mchung committed Jan 31, 2013
1 parent cb2a588 commit 6023584
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup/apc.conf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
defaults('USE_AUTHENTICATION', 0);

if (getenv('ENABLE_APC') != 'true') {
header('HTTP/1.0 403 Forbidden');
exit();
}
?>
24 changes: 24 additions & 0 deletions setup/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ default_socket_timeout = 60
;extension=php_pspell.dll
;extension=php_shmop.dll
extension=memcache.so
extension=apc.so

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
Expand Down Expand Up @@ -1861,3 +1862,26 @@ ldap.max_links = -1
; Local Variables:
; tab-width: 4
; End:

[apc]
; apc.stat = "0" # don't file stat
; apc.max_file_size = "1M"
; apc.localcache = "1"
; apc.localcache.size = "256"
apc.shm_size = "64M"
apc.shm_segments = "1"
; apc.ttl = "3600"
; apc.user_ttl = "7200"
; apc.gc_ttl = "3600"
; apc.cache_by_default = "1"
; apc.filters = ""
; apc.write_lock = "1"
; apc.num_files_hint= "512"
; apc.user_entries_hint="4096"
; apc.mmap_file_mask=/tmp/apc.XXXXXX
; apc.include_once_override = "0"
; apc.file_update_protection="2"
; apc.canonicalize = "1"
; apc.report_autofilter="0"
; apc.stat_ctime="0"
; apc.enabled = 1

0 comments on commit 6023584

Please sign in to comment.