Steps
- Go to Hosting Mode → PHP.
- Click the domain you want to change.
- Under PHP Version, select the target version from the dropdown.
- Click Save.
The agent immediately:
- Writes a new FPM pool config at
/etc/php/{new-version}/fpm/pool.d/{domain}.conf. - Updates the domain's Nginx vhost to point
fastcgi_passat the new version's Unix socket. - Reloads PHP-FPM (both old and new version) and reloads Nginx gracefully.
The switch is seamless — Nginx performs a graceful reload, so in-flight requests complete under the old version before the new pool takes over.
[!NOTE] If the target PHP version is not in the dropdown, it has not been installed on the server yet. Contact your server admin to install it. See Installing PHP Versions.
What Does Not Carry Over
PHP-FPM pools are version-specific. When you switch versions, the new pool starts with the default php.ini values for that version. The following settings from your old version's pool do not migrate automatically:
memory_limitupload_max_filesizepost_max_sizemax_execution_timedisplay_errors- Any other custom php.ini overrides
After switching, re-apply your settings under Hosting Mode → PHP → [domain] → PHP Settings. See Editing php.ini.
Similarly, PHP extensions enabled for the old version are not automatically enabled on the new version. Re-enable any required extensions under PHP → [domain] → Extensions. See PHP Extensions.
Verifying the Switch
Create a temporary info.php in your public_html/:
<?php phpinfo();
Load it in a browser. Confirm the PHP version at the top. Delete the file when done.
# Or check via SSH
php8.3 -v
[!TIP] Test the switch on a staging domain first if the application has strict PHP version requirements or uses extensions that may not be available in the new version.