Bug 1505644 - php-fpm is required by main php package
Summary: php-fpm is required by main php package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-24 04:09 UTC by Tomasz Kłoczko
Modified: 2017-11-15 17:40 UTC (History)
7 users (show)

Fixed In Version: php-7.1.11-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-15 17:40:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomasz Kłoczko 2017-10-24 04:09:29 UTC
Looks like now it is static dependency between php amn php-fpm and by this as well php-fpm is tarted by default if php is instaled.

# rpm -e php-fpm php
error: Failed dependencies:
	mod_php is needed by (installed) zabbix-frontend-php-3.4.3-1.fc28.x86_64

As it is CGI service it is not essential and "Requires: php-fpm" in main php package should be removed.

Comment 1 Tomasz Kłoczko 2017-10-24 04:10:30 UTC
Sorry added wrong command output:

# rpm -e php-fpm
error: Failed dependencies:
	php-fpm(x86-64) = 7.2.0~RC4-2.fc28 is needed by (installed) php-7.2.0~RC4-2.fc28.x86_64

Comment 2 Remi Collet 2017-10-24 04:16:41 UTC
> Looks like now it is static dependency between php amn php-fpm and by this as well php-fpm is tarted by default if php is instaled.

Yes, this is expected, since Apache HTTP server now run in event mode by default, mod_php is no more used.

> As it is CGI service 

A CGI service should not require mod_php, right ?

> "Requires: php-fpm" in main php package should be removed.

I we remove it, PHP won't work anymore "out-of-the-box"

Comment 3 Remi Collet 2017-10-24 09:04:56 UTC
Reaffecting to zabbix as

- if zabbix is CGI only, it should requires php-cgi, not mod_php
- else, it should requires php(http) as mod_php doesn't make sense anymore

Comment 4 Tomasz Kłoczko 2017-10-24 09:59:38 UTC
1) My ticket has nothing to do with zabbix so I'm moveing it back to php queue.

2) Zabbix is not CGI only

3) What I've by mistake reported is not related to zabbix provided by Fedora

4) Zabbix from Fedora as same as mine is perfectly working without installed or started php-fpm

5) mod_php with apache with any MPM can be used without started php-mpf service and this is why I've pointed that php package should not have dependency on php-fpm because it is not essential package to use php command or mod_php

Comment 5 Remi Collet 2017-10-24 10:02:19 UTC
> 5) mod_php with apache with any MPM can be used

No: mod_php is disabled for threaded MPM as not supported upstream

so FPM is now the default way to use PHP, per upstream documentation
http://php.net/manual/en/faq.installation.php#faq.installation.apache2

Comment 6 Remi Collet 2017-10-25 07:19:48 UTC
php-fpm is now a weak dependency, so can be removed (but still installed by default)


Fixed in https://src.fedoraproject.org/cgit/rpms/php.git/commit/?h=f27&id=c9f7170713cd6b8761a9188cfeb140d8e14ffbff

Comment 7 Fedora Update System 2017-10-25 08:41:08 UTC
php-7.1.11-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-46e8bdccef

Comment 8 Tomasz Kłoczko 2017-10-25 08:58:43 UTC
Weak dependency is IMO OK.

Thank you.

Comment 9 Fedora Update System 2017-10-27 18:44:07 UTC
php-7.1.11-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-46e8bdccef

Comment 10 Fedora Update System 2017-11-15 17:40:21 UTC
php-7.1.11-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.