Add php_apc_enabled_in_ini option.

This commit is contained in:
Jeff Geerling 2014-07-28 08:54:51 -05:00
parent c5f332d387
commit 4121ffe265
3 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ Available variables are listed below, along with default values (see `vars/main.
Some commonly-adjusted PHP ini directives. Adjust to suit your system. Some commonly-adjusted PHP ini directives. Adjust to suit your system.
php_apc_enabled_in_ini: false
When installing APC, depending on the system and whether running PHP as a webserver module or standalone via `php-fpm`, you might need the line `extension=apc.so` in `apc.ini`. If you need that line added, set this variable to true.
php_apc_cache_by_default: "1" php_apc_cache_by_default: "1"
php_apc_shm_size: "96M" php_apc_shm_size: "96M"

View File

@ -4,6 +4,7 @@ php_enablerepo: ""
php_memory_limit: "256M" php_memory_limit: "256M"
php_max_execution_time: "60" php_max_execution_time: "60"
php_upload_max_filesize: "64M" php_upload_max_filesize: "64M"
php_apc_enabled_in_ini: false
php_apc_cache_by_default: "1" php_apc_cache_by_default: "1"
php_apc_shm_size: "96M" php_apc_shm_size: "96M"
php_date_timezone: "America/Chicago" php_date_timezone: "America/Chicago"

View File

@ -1,3 +1,6 @@
{% if php_apc_enabled_in_ini %}
extension=apc.so
{% endif %}
apc.shm_size={{ php_apc_shm_size }} apc.shm_size={{ php_apc_shm_size }}
apc.enable_cli=0 apc.enable_cli=0
apc.rfc1867=1 apc.rfc1867=1