Topic: Config in /etc/httpd/conf.d/php.conf is wrong for MPM-ITK
I installed php-7.1.26-1.el6.remi.x86_64 and received an updated /etc/httpd/conf.d/php.conf config file. But the config contains logic that is wrong for the ITK MPM, which is a variant of prefork.
# Cannot load both php5 and php7 modules
<IfModule !mod_php5.c>
<IfModule prefork.c>
LoadModule php7_module modules/libphp7.so
</IfModule>
</IfModule>
<IfModule !mod_php5.c>
<IfModule !prefork.c>
LoadModule php7_module modules/libphp7-zts.so
</IfModule>
</IfModule>
It says "prefork do this, otherwise not prefork do the opposite" and the result is MPM ITK (variant of prefork) + the ZTS version of PHP. I next loaded PHP7 myself in an earlier config, but since the block itself assumes PHP7 will not be loaded already it still tries and produces a warning on the console.
I suggest wrapping the entire block in <IfModule !mod_php7.c> and also adding explicit support for itk.c, worker.c, and event.c.