Description
This function sets a virtual host's PHP version.
Note:
This document only applies to systems that run EasyApache 4.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
vhost |
string |
Required The name of the virtual host. Note: To change the PHP version of multiple virtual hosts, duplicate or increment the parameter name. For example, to change three virtual hosts, use the vhostparameter multiple times or use the vhost-1, vhost-2, and vhost-3 parameters. |
A virtual host on the system. |
blee.com |
version |
string |
Required The PHP version of a virtual host. |
A PHP version on the system.
|
ea-php54 |
Returns
Return |
Type |
Description |
Possible values |
Example |
vhosts |
array |
The names of the changed virtual hosts. |
A virtual host on the system. |
blee.com |