| SYSTEM INFORMATION | |
|---|---|
| OS type and version | AlmaLinux 10.2 |
| Webmin version | 2.641 |
| Virtualmin version | 8.1.0 GPL |
| Webserver version | Apache 2.4.63 |
| Related packages | SUGGESTED |
Hello,
I installed Virtualmin on a new AlmaLinux 10 server, but I cannot select FCGId as a PHP execution mode. Only FPM are available.
I checked the Virtualmin source and it looks like FCGId is only added as a PHP mode when suexec is detected as usable:
push(@cgimodes, “fcgid”) if (&indexof(“suexec”, @hascgi) >= 0);
On this server, Apache and Webmin both seem to detect mod_suexec and mod_fcgid correctly:
httpd -M | grep -i suexec
suexec_module (shared)
/etc/webmin/apache/site includes:
mod_suexec
mod_fcgid
However, /usr/sbin/suexec -V shows:
-D AP_DOC_ROOT=“/var/www”
-D AP_USERDIR_SUFFIX=“public_html”
Virtualmin is configured with:
home_base=/home
My existing Ubuntu 20.04 Virtualmin server uses apache2-suexec-custom, and its suexec config allows /home:
/etc/apache2/suexec/www-data:
/home
public_html
On the existing server, Virtualmin creates virtual hosts like this:
/home/example.jp/domains/sub.example.jp/
fcgi-bin/
cgi-bin/
public_html/
The PHP FCGId wrappers are under fcgi-bin, for example:
/home/example.jp/domains/sub.example.jp/fcgi-bin/php8.4.fcgi
So on AlmaLinux 10, the default suexec AP_DOC_ROOT=/var/www does not allow Virtualmin’s /home based fcgi-bin paths.
My questions are:
- What is the recommended way to make PHP FCGId mode available in Virtualmin on AlmaLinux 10?
- Is there an official or recommended suexec package for AlmaLinux/RHEL that supports Virtualmin’s /home based layout?
- Should I rebuild suexec/httpd-core with AP_DOC_ROOT=/home, or is there a better supported approach?
- Is PHP FCGId with per-directory PHP version switching still supported/recommended on AlmaLinux 10, or should this be migrated to PHP-FPM somehow?
The reason I need FCGId is not specifically FCGId itself, but the existing server uses directory-level PHP version switching within the same virtual host. I would like to migrate the existing system with minimal changes.
Any advice on the supported/recommended approach would be appreciated.
Thank you.