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

Posted by ReliQ, Nov 19, 2019

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. 

Steps:
  1. Find your applications startup action in Webmin -> Bootup and Shutdown . This usually has a description similar to: Start Nginx PHP fcgi server for myapp.com
  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. 

Cheers!

Share this post:

Have a project or a great idea? Get in touch!