Topic: Centos 7: php 8.1 dependencies, httpd why ?

Hello,

When I try to install Remi php 8.1 on centos 7.x yum is also installing httpd, why ?  I already have nginx rpm as a web server, I dont understand why php require the apache web server rpm.

Can someone explain why ?

TIA.

Guillaume

Re: Centos 7: php 8.1 dependencies, httpd why ?

The "php" package provides mod_php for httpd, so of course requires httpd

If you don't want httpd, don't install "php" (but php-fpm)

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Centos 7: php 8.1 dependencies, httpd why ?

thanks Remi,

I tough that php was only the cli and the dependencies... for the php base.

Bye

Re: Centos 7: php 8.1 dependencies, httpd why ?

Notice:

in C8, "php" still provides mod_php, but this one is no more used, php-fpm is used by default, and work out of the box with httpd or nginx

in C9, "php" is only a metapackage(empty) pulling most common SAPI and extensions

So, especially for modern PHP (8.1 here), I recommend to use a more modern version that the old C7

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi