Knowledgebase / cPanel and Backups
How to Change PHP Version in cPanel Safely
Change the PHP version for one website with a tested rollback plan, then verify the browser runtime and the tasks that run outside it.
Prerequisites and compatibility
Have cPanel access, a current file and database backup, and a staging copy where practical. Record the current web PHP version, enabled extensions and application requirements. A newer PHP branch may remove behavior that an older plugin depends on. An encoded commercial application may also require a compatible loader.
Check requirements for the application, theme, payment integration and scheduled jobs before choosing a target. Use a supported version offered by your provider that all components support. Do not select a version just because its number is largest. This guide covers changing the runtime; the linked inspection guide explains how to identify it.
Step 1: Test the application
Update incompatible application components in a staging environment according to their vendors’ instructions. Run a representative workflow: login, page editing, search, upload and a test checkout where applicable. Capture errors privately. A homepage that loads successfully is insufficient evidence that background processing works.
Record the rollback version and where it is selected. Keep the original backup intact. A PHP change normally does not migrate application data, but an application update performed at the same time can, so separating those operations makes rollback clearer.
Step 2: Select the intended domain
- Open cPanel and find MultiPHP Manager if your provider enables it.
- Identify the exact domain or subdomain and its current setting. Select only the intended entry.
- Choose the approved PHP version and apply the change.
- If the account instead uses a PHP Selector or an inherited server setting, ask the provider which control owns that domain. Avoid changing two competing interfaces.
Some domains share a document root or execution configuration. Confirm the impact before treating a change as isolated. Do not alter PHP-FPM or server-wide defaults as part of a simple version change.
Step 3: Verify web and scheduled execution
Check the runtime through the application’s private system-information screen. If using a temporary PHP information file, protect access and remove it immediately afterward. Compare required extensions such as the database driver and image library with the application checklist.
Test scheduled tasks separately. The command-line executable selected by a cron command can be different from the web PHP version. Have support confirm the approved executable path rather than guessing a path from another host. Inspect the next task result for errors or missed work.
Troubleshooting and expected results
A blank page or HTTP 500 after the change usually needs the first relevant PHP error from the private log. An undefined function may indicate a missing extension; a syntax or type error can indicate incompatible application code. Restore the recorded version while investigating if the site is unavailable.
If the displayed version does not change, check domain selection, inheritance and the PHP handler with support. Do not repeatedly toggle settings. Success means the intended runtime is active, representative workflows pass, scheduled tasks complete and logs remain clear of new fatal errors.
Frequently asked questions
Will this change every domain?
The effect depends on the hosting configuration and shared document roots. Confirm scope before applying it.
Does web PHP control cron PHP?
Not necessarily. A cron command can name a separate executable and configuration.
Should I keep an old version permanently?
No. Treat rollback as temporary while resolving compatibility and planning a supported runtime.
Related guides and hosting options
Compare WordPress hosting against your application requirements. Confirm available tools and management responsibilities for your own account. For account-specific help, open a private support ticket with the domain, time and relevant redacted error.