command line method of changing php version for a virtualhost?

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

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

Status: Active » Fixed

Hey Thanks you guys! All answers were relevent!

I appreciate it very much!

--jason

Status: Fixed » Closed (fixed)