I’m running Varnish on the server and haven’t had any problems until today, however, when I attempted to switch PHP from Disabled to FPM on one site. I ended up with the following error message:
Changing PHP execution mode to FPM ..
.. done
Changing PHP error log ..
.. failed : PHP error log cannot be set in none mode
Restarting PHP-FPM 8.0 server ..
.. done
Applying web server configuration ..
.. done
Due to that error, the switch was never finalized and it reverted back to Disabled.
That lead me to discover this thread. To be clear upfront, I do not have mod_php installed.
Re-checking the configuration shows that everything is normal and that I even have two available versions of PHP, which is exactly what I had both wanted and expected.
The domain runs well and even pulls up quickly with the cache enabled on it. But I’m at a loss as to how to get FPM going. Is it possible there is another bug in the system, or am I just doing something incorrectly?
@stefan1959
One of my sites has it enabled, and I’m not sure when or how that happened, but I can’t do it with any other site. I didn’t even think to check until you mentioned it.
And re-checking the config shows that FPM with the two different versions is available.
No idea, look like you done everything correctly. I would of thought 7.4 would at least me enabled untill you switched. And I use rocky 9, never had a issue.
No I wasn’t able to set logging at all on the system when FPM was disabled. The image in my original post was the entire panel available to me for the PHP options. There was nothing else. I could either set PHP to disabled or to FPM, but no FPM options showed. I figured they would after I had saved the setting.
I’m running with it now that it is working. Not sure what caused it to finally decide to change.
@stefan1959 Overnight the system reverted back to disabled. That was a twist I wasn’t expecting. I’ll try installing 8.1 to see if the server can change to it.
EDIT: It was a no go. I can’t get it to change to FPM again at all.
EDIT (REDUX): The only weird thing I can see is that the PHP Configuration portion of Webmin doesn’t seem to be reading the php-fpm.conf files. For example, if I manually edit the 8.1 conf file it shows:
@stefan1959@Joe
I think I found the issue. There are ghost entries in the /etc/httpd/conf/httpd.conf file that point to PHP versions that are no longer there.
EDIT: I removed all of the entries from the file and rebooted the server. So far, they aren’t reappearing. Removing them has fixed the TLS issue, but not this one.