Fedora 33/34 mod_php deprecated issue

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
kenworth
Posts: 52
Joined: Tue Feb 11, 2014 1:04 pm

Fedora 33/34 mod_php deprecated issue

Post by kenworth »

Hi all, I just upgraded to Fedora 34 from 32 today and ran into issues with the fact that mod_php is no longer present with PHP-FPM being the replacement. The issue is the php_value settings that seem to be required by Zoneminder now prevent httpd from starting since mod_php is no longer there. I was able to restore a backup copy of libphp7.so to the httpd modules directory and that enabled me to get everything up and running, however, that's not a good long term solution. Is anyone aware of the correct way to resolve this? It looks like it has been done for nginx, but ZM seems to assume that Apache is always using mod_php.

Thanks!
GregW_ZA
Posts: 1
Joined: Wed Jul 21, 2021 12:01 pm

Re: Fedora 33/34 mod_php deprecated issue

Post by GregW_ZA »

Can you be more specific with regards to your issues?

I am running ZM on Fedora 34 (from RPMFusion) with no PHP issues. I am simply including the apache conf file

Code: Select all

/etc/zm/www/zoneminder.conf
in my VirtialHost configuration for ZM. I am using the default www pool for php-fpm without any changes.
kenworth
Posts: 52
Joined: Tue Feb 11, 2014 1:04 pm

Re: Fedora 33/34 mod_php deprecated issue

Post by kenworth »

I figured this out. I was using an old version of /etc/httpd/conf.d/php.conf. Converting to the current version of that file and commenting out everything in /etc/httpd/conf.modules.d/10-php.conf prevented mod_php from loading.
Post Reply