Submitted by Jason at eROI on Tue, 05/16/2017 - 16:25 Pro Licensee
Hello,
I am moving about 35 domains from a ubuntu 12.04LTS server to ubuntu16.04 lts server. I have multiple versions of php installed in accordance with https://www.virtualmin.com/documentation/web/multiplephp. I have php versions 5.6.30, 7.0.19, and 7.1.5 installed correctly, and am able to switch back and forth with the gui.
Is there a way to set each virtualserver's php version from the virtualmin's commandline? I really would like to script this...
--jason
Status:
Closed (fixed)
Comments
Submitted by volk on Tue, 05/16/2017 - 17:27 Pro Licensee Comment #1
Yes, here: https://www.virtualmin.com/documentation/developer/cli/set_php_directory
Submitted by JamieCameron on Tue, 05/16/2017 - 19:10 Comment #2
Even simpler, you can run
virtualmin modify-web --all-domains --php-version 7.1.5
Or you can limit it to specific domains with
virtualmin modify-web --domain example.com --php-version 7.1.5
Submitted by JamieCameron on Tue, 05/16/2017 - 19:10 Comment #3
Submitted by Jason at eROI on Wed, 05/17/2017 - 00:23 Pro Licensee Comment #4
Hey Thanks you guys! All answers were relevent!
I appreciate it very much!
--jason
Submitted by Jason at eROI on Wed, 05/17/2017 - 00:23 Pro Licensee Comment #5