The mass_change_php_setting Script
Valid for versions 136 through the latest version
Version:
136
Last modified: 2026 March 31
Overview
The /usr/local/cpanel/scripts/mass_change_php_setting script updates every domain that uses a specific PHP version to another PHP version.
Note:
In this document, XX and XY represent the ea-php package versions.
Run the script
To use the /usr/local/cpanel/scripts/mass_change_php_setting script, run the following command:
/usr/local/cpanel/scripts/mass_change_php_setting ea-phpXX ea-phpXY --verboseOptions
| Option | Description | Example |
|---|---|---|
php_from |
Required The PHP version to migrate from. |
/usr/local/cpanel/scripts/mass_change_php_setting ea-phpXX ea-phpXY |
php_to |
Required The PHP version to migrate to. You must install the PHP version before you run this script. |
/usr/local/cpanel/scripts/mass_change_php_setting ea-phpXX ea-phpXY |
--dryrun |
Display the changes that would occur when you run this script. This option automatically enables the --verbose option. |
/usr/local/cpanel/scripts/mass_change_php_setting ea-phpXX ea-phpXY --dryrun |
--verbose |
Run the script in verbose mode. | /usr/local/cpanel/scripts/mass_change_php_setting ea-phpXX ea-phpXY --verbose |
--help |
Display the script’s help documentation. | /usr/local/cpanel/scripts/mass_change_php_setting --help |