FCGI Apache Configuration Lines Not Adding

The first Virtualmin Virtual Server installed fine adding the lines line: AddHandler fcgid-script .php AddHandler fcgid-script .php7.2 FCGIWrapper /home/user1/fcgi-bin/php7.2.fcgi .php FCGIWrapper /home/user1/fcgi-bin/php7.2.fcgi .php7.2

However, every additional one is missing those lines causing PHP to not run. Is there any option that may be blocking the addition of these lines into the configuration?

Status: 
Closed (fixed)

Comments

Howdy -- can you share the output you're receiving when looking in System Settings -> Re-Check Config?

Also, if you look in Server Configuration -> Website Options for one of the domains where you're seeing this problem, what is the PHP Execution Mode set to?

Output of System Settings -> Re-Check Config:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. Your system has 1.76 GiB of memory, which is at or above the Virtualmin recommended minimum of 256 MiB. BIND DNS server is installed, and the system is configured to use it.

TLSA DNS records will be added to new domains.

Mail server Postfix is installed and configured.

Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.

Apache is installed.

The following PHP versions are available : 7.2.24 (/usr/bin/php-cgi7.2), 7.2 (mod_php)

The following PHP-FPM versions are available on this system : 7.2.3 (php7.2-fpm)

Apache is configured to host SSL websites.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

Plugin DNS Domain Registration is installed OK.

Plugin Protected web directories is installed OK.

Using network interface eth0 for virtual IPs.

IPv6 addresses are available, using interface eth0.

Default IPv4 address for virtual servers is .

Default IPv6 address for virtual servers is .

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

Chroot jails are available on this system

.. your system is ready for use by Virtualmin.

Server Configuration -> Website Options

PHP script execution mode: FCGId (run as virtual server owner)

Well, now even stranger I added a different subdomain as a new Virtual Server and it worked fine. I am going to remove and readd one of the ones not working (again) and see if it fixes itself.

Ok, note to anyone out there who needs to know... When migrating websites... ALWAYS check the .htaccess files!

There were some conditions that caused the issue.

It sounds like you were able to figure things out! Is it working as expected now?

Yes. Thanks for being a sounding board.

Assigned: Unassigned »
Status: Active » Closed (fixed)