geerlingguy / ansible-role-php

Ansible Role - PHP
https://galaxy.ansible.com/geerlingguy/php/
MIT License
496 stars 442 forks source link

Can't enable APCU #400

Closed polnetwork closed 1 year ago

polnetwork commented 1 year ago

I'm setting up a server with APCU, following theses instructions https://github.com/geerlingguy/ansible-role-php#apcu-related-variables , but it seems that APCU is installed but not enabled. APCU section on phpinof() does not appear. Any guide I can follow? Thanks for your work :-) Pol

polnetwork commented 1 year ago

Here's the settings I'm using:

php_version: '8.1' php_default_version_debian: "8.1" php_post_max_size: "256M" php_upload_max_filesize: "256M" php_memory_limit: "512M" php_max_execution_time: "600" php_enable_webserver: true php_webserver_daemon: "apache2" php_enable_php_fpm: true php_enable_apc: true php_apc_shm_size: "96M" php_apc_enable_cli: "0" php_source_configure_command: > ./configure --enable-fpm php_packages:

polnetwork commented 1 year ago

Solved by using the proper package php{{ php_version }}-apcu