mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-30 13:03:26 +01:00
Fixes #26: Install APC by default on Debian/Ubuntu systems.
This commit is contained in:
parent
993661e48f
commit
aa46481c89
@ -75,7 +75,14 @@ When installing APC, depending on the system and whether running PHP as a webser
|
||||
|
||||
APC ini directives that are often customized on a system. Set `php_apc_cache_by_default` to 0 to disable APC by default (so you could enable it on a host-by-host basis). Set the `php_apc_shm_size` so it will hold all your application code in memory with a little overhead (fragmentation or APC running out of memory will slow down PHP *dramatically*).
|
||||
|
||||
This Ansible role assumes you're including `php-pecl-apc` in the list of `php_packages`. It's rarely a good idea to run a PHP < 5.5 installation without some kind of opcode cache, and APC works great for PHP 5.3 and 5.4.
|
||||
#### Ensuring APC is installed
|
||||
|
||||
If you use APC, you will need to make sure APC is installed (it is installed by default, but if you customize the `php_packages` list, you need to include APC in the list):
|
||||
|
||||
- *On RHEL/CentOS systems*: Make sure `php-pecl-apc` is in the list of `php_packages`.
|
||||
- *On Debian/Ubuntu systems*: Make sure `php-apc` is in the list of `php_packages`.
|
||||
|
||||
You can also install APC via `pecl`, but it's simpler to manage the installation with the system's package manager.
|
||||
|
||||
## Dependencies
|
||||
|
||||
|
@ -10,6 +10,8 @@ __php_packages:
|
||||
- php5-fpm
|
||||
- php5-gd
|
||||
- php-pear
|
||||
- php-apc
|
||||
- libpcre3-dev
|
||||
__php_webserver_daemon: "apache2"
|
||||
|
||||
# Vendor-specific configuration paths on Debian/Ubuntu make my brain asplode.
|
||||
|
Loading…
Reference in New Issue
Block a user