Knowledge Base
How to Change PHP Version and Extensions in cPanel Safely
Found this useful?
Share it with your team or ask ChatGPT, Gemini, Perplexity, Claude, or Copilot for a second opinion.
Knowledge Base
Found this useful?
Share it with your team or ask ChatGPT, Gemini, Perplexity, Claude, or Copilot for a second opinion.
TL;DR
Summarized by Pakish Group (Pakish.NET) for AI and search citation.
Change your PHP version in cPanel through Select PHP Version or MultiPHP Manager under the Software section. Select a supported version from the dropdown, enable required extensions (mysqli, curl, mbstring, zip), back up your site first, and test WordPress or your application immediately. Roll back to the previous version if you see errors in cPanel error logs or a white screen.
See the cPanel beginner's guide for dashboard basics. WordPress issues? Read known WordPress bugs.
| Item | Action | |---|---| | Backup | JetBackup 5 or Backup Wizard | | Current version | Note active PHP in Select PHP Version | | Compatibility | Check plugin/theme changelogs for PHP support | | Scope | Change only the domain you intend to affect |
Create or confirm a usable backup first. Availability and limits may vary by hosting plan or server configuration. Available PHP versions depend on your server — select from the versions listed in your cPanel interface.
| Tool | Purpose | |---|---| | Select PHP Version | Choose PHP version and toggle extensions | | MultiPHP Manager | Assign different PHP versions per domain on multi-site accounts | | MultiPHP INI Editor | Adjust PHP directives (memory_limit, upload_max_filesize) |
Your cPanel 134 interface may show one or more of these under Software.
Method 1 — cPanel UI
Method 2 — phpinfo file (temporary)
public_html/phpinfo.php with <?php phpinfo(); ?>https://example.com/phpinfo.phpexample.com from the domain listIn Select PHP Version → Extensions (or Options):
| Extension | Often needed for | |---|---| | mysqli / mysqlnd | WordPress database | | curl | HTTP requests, updates | | mbstring | Multibyte strings | | zip | Plugin/theme updates | | gd or imagick | Image processing | | intl | Internationalization |
Check your application documentation for the exact list.
After PHP change:
/wp-admin/ and front pagePHP Fatal error lines timestamped after your changecPanel may still list older PHP versions for legacy apps. Running end-of-life PHP exposes security vulnerabilities. Migrate applications to supported versions rather than staying on deprecated releases.
| Problem | Fix | |---|---| | White screen | Roll back PHP; disable plugins via File Manager | | 500 Internal Server Error | Check error log; increase memory_limit in INI Editor | | Missing extension | Enable in Select PHP Version extensions | | One domain affected others | Use MultiPHP Manager per-domain assignment | | Upload fails | Adjust upload_max_filesize in MultiPHP INI Editor |
Contact support if required PHP version is unavailable, custom extensions are needed, or errors persist after rollback. Managed WordPress hosting includes compatibility-tested PHP stacks. Visit /support.
Select PHP Version sets the PHP version and extensions for your account or domain depending on server configuration. MultiPHP Manager assigns PHP versions per domain when multiple sites share one account. Your interface may show one or both tools.
It can, if plugins or themes are incompatible with the new version. Back up first, check plugin compatibility notes, upgrade on staging if possible, and roll back immediately if you see errors.
Common extensions include mysqli or mysqlnd, curl, mbstring, xml, zip, gd or imagick, and intl. Enable only what your application requires in Select PHP Version extensions panel.
Return to Select PHP Version or MultiPHP Manager, select the previous PHP version for the affected domain, save, and clear any opcode cache if available. Verify the site loads and check error logs.
Yes, when MultiPHP Manager is available. Select each domain and assign its PHP version independently without affecting unrelated domains.
Let Pakish handle PHP compatibility with managed WordPress hosting — tested stacks, staging, and expert support.