Shared and managed hosting usually exposes PHP version selection in a control panel rather than SSH. Switching versions correctly updates the handler for your domain without breaking extensions WordPress needs. This guide covers cPanel, Plesk, and general best practices.
Before You Change Version
- Back up the site and database.
- Note the current PHP version and enabled extensions.
- Test plugin and theme compatibility on staging if available.
WordPress recommends modern PHP; see WordPress requirements and PHP supported versions.
cPanel: MultiPHP
Domain-Level Version
- Log in to cPanel.
- Open MultiPHP Manager (or Select PHP Version on older themes).
- Select the domain or document root.
- Choose PHP 8.1, 8.2, or 8.3 as offered by your host.
- Apply and wait for the change to propagate (usually seconds).
Extensions and Options
In MultiPHP INI Editor or Select PHP Version → Extensions, enable at minimum: curl, mbstring, xml, zip, gd or imagick, intl, mysqli or pdo_mysql.
Plesk: PHP Settings
- Log in to Plesk.
- Go to Websites & Domains → your domain.
- Open PHP Settings (or PHP Version depending on view).
- Select the desired PHP version from the dropdown.
- Adjust memory limit, max execution time, and upload size as needed.
- Click OK or Apply.
Plesk can run PHP as FPM application served by Apache or NGINX; the panel applies handler wiring automatically. Reference: Plesk PHP management.
Verify in WordPress
In wp-admin, open Tools → Site Health → Info → Server and confirm the PHP version matches your selection. Alternatively use a health plugin or a one-line check in a staging environment.
When SSH Is Still Required
Some custom handlers, IonCube-encoded apps, or CLI-only cron jobs may still use system PHP. If cron emails show errors after a panel change, set cron to the panel’s PHP binary path (cPanel often provides /usr/local/bin/php or versioned paths in MultiPHP documentation).
Summary
Use cPanel MultiPHP Manager or Plesk PHP Settings to select a supported version per domain, enable required extensions, verify in Site Health, and test thoroughly after major version jumps. SerVee IT hosting plans document the available PHP versions in your welcome packet—contact support if a required extension is missing from the panel list.