cPanel allows you to assign different PHP versions per domain or subdomain using the MultiPHP Manager.
Changing PHP Version
- Log in to cPanel
- Go to Software → MultiPHP Manager
- Select the domain(s)
- Choose the desired PHP version (e.g., 7.4, 8.1) from the dropdown
- Click Apply
Troubleshooting
- Ensure required PHP modules are installed (WHM → EasyApache 4)
- Check
.htaccess
overrides or custom handlers - Restart Apache if needed after changes