PHP-FPM port not changed during cloning

When cloning a server that uses PHP-FPM, the port number is not amended for the new server.

For example, if I have the following PHP-FPM configuration in my Apache config, the port number will not change although the new server should use another port.

<FilesMatch \.php$>
SetHandler proxy:fcgi://localhost:8029
</FilesMatch>

OR

ProxyPassMatch ^/(.*.php(/.*)?)$ fcgi://localhost:8012/home/xxx/public_html/public/$1

For the time being, I wrote a script for my customer which he has to call after cloning a server that extracts the correct port number from /etc/webmin/virtual-server/domains/... and writes it into the Apache config file.

Status: 
Closed (fixed)

Comments

Thanks, this looks like a bug - I'll update this ticket when it's fixed.

This will be fixed in the next Virtualmin release.

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.