Hi,
Starting with Fedora 27, the Apache Webserver is now configured by default to use event MPM (threaded)
Which means ZTS mod_php will be used.
Some packaged extensions only provide the NTS build, so won't be available in web context (using httpd + mod_php), but only when
- php-fpm is used - httpd is configured to used prefork MPM (not threaded)
So, probably worth investigating if the ZTS module can be enabled during the build.
Example, for ssh2 extension: http://pkgs.fedoraproject.org/cgit/rpms/php-pecl-ssh2.git/diff/php-pecl-ssh2...
Notice, mod_php in ZTS mode is not recommended per upstream documentation: http://php.net/manual/en/install.unix.apache2.php http://php.net/manual/en/faq.installation.php#faq.installation.apache2
So php-fpm should be preferred.
So web applications should not require "php" (or mod_php) but php(httpd) instead (provided by both php and php-fpm packages).
Remi.
Additional information:
php-fpm is now the default configured way to enable PHP with apache in F27+
I.e. mod_php for ZTS is still provided but not loaded by default, as unsupported by upstream.
Remi.
P.S. https://src.fedoraproject.org/cgit/rpms/php.git/commit/?id=de56edf226f421ff4...
On 25 Sep 2017 11:23 am, "Remi Collet" Fedora@famillecollet.com wrote:
Additional information:
php-fpm is now the default configured way to enable PHP with apache in F27+
I.e. mod_php for ZTS is still provided but not loaded by default, as unsupported by upstream.
Remi.
P.S. https://src.fedoraproject.org/cgit/rpms/php.git/commit/?id= de56edf226f421ff4bb89bbdfb971f25cccaf675
Remi was there an F27 change filed for this... I don't see one?
It's quite a significant alteration in behaviour and the vast majority of php users in Fedora who use httpd use mod_php and will be broken by this.
It really needs to be clearly marked in the release notes, coordinated with php applications shipped in Fedora and be marked with instructions on how to switch between the two methods... plus the discussion of how to handle the upgrade scenario needs to be had.
Le 25/09/2017 à 13:42, James Hogarth a écrit :
Remi was there an F27 change filed for this... I don't see one?
AFAIK, There is none
It's quite a significant alteration in behaviour and the vast majority of php users in Fedora who use httpd use mod_php and will be broken by this.
I don't think ;)
It really needs to be clearly marked in the release notes, coordinated with
=> https://pagure.io/fedora-docs/release-notes/issue/40
php applications shipped in Fedora and be marked with instructions on how to switch between the two methods... plus the discussion of how to handle the upgrade scenario needs to be had.
dnf install <yourPreferredApp> systemctl start <yourPreferredWebServer>
Still work out of the bow, like previously
Remi
Le 25/09/2017 à 14:27, Remi Collet a écrit :
Still work out of the box, like previously
Changes are now on the road to F27 testing https://bodhi.fedoraproject.org/updates/FEDORA-2017-a8f468fae9
Of course, feedback welcome
Remi
php-devel@lists.fedoraproject.org