Hi, I am trying to change an existing virtual server to PHP FPM from CGID via “Server Configuration -> Website Options” and it seems to have changed successfully. However I wasn’t able to change the server to PHP version 7.4, like I was using on CGID. Is there a way to change it? I only have one virtual server on my install. I read somewhere that I have to change the Default PHP version on the server, but I am unsure how to do that.
Also, I have a Wordpress installation the server and when trying to access the website, I got an error stating: “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”
Hi, I tried those steps, however I still get the same PHP MySQL error from Wordpress.
I got this error when trying to select PHP 7.4 in website options: " Failed to save PHP versions : The PHP version cannot be changed when in FPM mode"
Also, @Alecbarnes I am on Ubuntu 18.04, sorry I forgot to mention that.
Applied patch to /usr/share/webmin/virtual-server/virtual-server-lib.pl
Re-ran configuration checker
Changed PHP mode to FPM in Server Configuration > Website Options
Attempted to change PHP version to 7.4 in Server Configuration > PHP Versions and version 7.4 Does show up in the drop down box, however when I click Save Versions I get the error Failed to save PHP versions : The PHP version cannot be changed when in FPM mode
I ended up removing the older php versions using apt-get purge and I was then able to switch to the proper php fpm version.
However, after I restarted the server, I started getting a 502 error (I am going through Cloudflare).
I did some research and saw that I might have to change the fastcgi_pass in my domains nginx.conf file to something. Not sure if this is the issue, but I’d appreciate any help in getting this up and running. I didn’t notice anything in the nginx logs.