Cannot switch php execution modes

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Virtualmin version 7.20.1 Pro

no option to switch to fcgi

You probably don’t have the php-cgi package installed.

Unless you want to run fastcgi apps, why bother installing it, just use fpm, it is better.

not sure that’s the case, re: cgi

Why do you want to switch to FCGI?

Fcgi allows you to have a different version of php running on different directories
Example ~/public_html executes with php8.1 and ~/public_html/oldstuff executes with php7.4 this is configurable via virtualmin

for the jimr answer below – we have legacy transferred sites that still need older php versions. and it’s working on some and not other virtual servers. it seems like the option disappeared suddenly.

Did you migrate from another system to the new one?

Either way, on Ubuntu 22.04 you can fix it by going to Web Configuration ⇾ Website Options and setting CGI script execution mode to suEXEC.

yes – we have migrated sites from cPanel

thanks, ilia. that did the trick

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.