geerlingguy / ansible-role-php

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

How to pin specific version of PHP? #398

Closed ElijahLynn closed 1 year ago

ElijahLynn commented 1 year ago

We are experiencing segfaults and suspect it may be PHP 8.1.17 and want to roll back to 8.1.16 or earlier. This issue/thread is to document how to do that, which I am going to figure out and post here. Any suggestions are useful too.

neidiom commented 1 year ago
php_packages:
  - php8.1-fpm=8.1.17-1+0~20230316.37+debian11~1.gbp0c3ecb

make sure the package exists on the server

apt-cache showpkg php8.1-fpm
ElijahLynn commented 1 year ago

Thank you!