Virtualmin: How to change website PHP version for NGINX the Simple Way

Posted Nov. 19, 2019 by reliq

Here's a quick guide on how change the version of PHP running on your existing Virtualmin Virtual server.

After several hours of googling and consistently ending up at this article, I found a solution. 

  1. Find your applications startup action in Webmin -> Bootup and Shutdown . This usually has a description similar to: Start Nginx PHP fcgi server for
  2. Open action config (edit it) and look for all instances of /etc\/phpx\.y where x.y is the current PHP version. Replace these instances with your desired version.
  3. Restart the server. Your new config will be read and NGINX should start runing your application in your newly set PHP version.

This will hopefully save you a bunch of hours. 


Share this post: