Topic: installing php-fpm with ansible

hi

I tried to install php-fpm on two different servers by using this github.com/Vinelab/ansible-php-fpm

as you may see its gathering remis repo and orchestrating the play-book

differently from this code, I added php56 and php71



on the first box both php56 and 71 have been installed successfully bot for the second one it didn't work. there is no error message after running play-book, it says its okay.

Also I want to use php71 as default

Do you have any suggestions?

Re: installing php-fpm with ansible

Use instruction from the Wizard (top right link)

But I'm don't know about ansible, but I quite sure you will find some examples on github...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: installing php-fpm with ansible

Seems same question than
https://stackoverflow.com/questions/446 … 7/44606777

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: installing php-fpm with ansible

thank you for your reply.

the problem is: in one server php56 and php71 have been installed successfully, but I want to enable php71 as default. that link didn't work fo

Re: installing php-fpm with ansible

Sorry, not enough information to understand your question.

What is the package list installed ?
What do you want ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: installing php-fpm with ansible

Notice: if you have installed both mod_php (5.6 and 7.1), this cannot work, apache is only able to load 1 php module.

For multi versions, you have to use FPM instead.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi