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.
Steps:
- 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
- Open action config (edit it) and look for all instances of
/etc\/phpx\.y
wherex.y
is the current PHP version. Replace these instances with your desired version. - 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!