How to change the PHP version of your website
Each website can run its own PHP version. You set a default for the whole account and, where needed, a different version for one domain — for example an old site on PHP 7.4 next to a new one on PHP 8.3.
Steps
- Log in to the control panel (
https://<server>:2083). - Open PHP in the menu (section Advanced).
- Under PHP version, choose the Account default:
- Server default (PHP x.y) follows whatever the hosting provider sets as default;
- or a fixed version such as PHP 8.3.
- In the table, each Website has its own list. Leave Same as account (PHP x.y) or choose another version for that website only.
- Click Save versions.
The change applies within a few seconds. Open the website and check that it works.
Good to know
- Only installed versions are listed. The hosting provider decides which versions are installed; versions can be among 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5. Ask your provider if you need another one.
- PHP 7.4 and 8.0 no longer get security fixes (since November 2022 and November 2023). Use them only until the site is updated.
- Subdomains and addon domains each have their own row, so a staging copy can test a new version before the live site.
- Aliases (parked domains) always use the version of the website they show.
- The PHP version of each website is also shown in Site Check.
After switching: what to check
- Open the main pages and the admin area of the site.
- Look at Errors (section Advanced) for new warnings. See how to see PHP errors.
- If the site breaks, choose the previous version again and click Save versions.
Common questions
My site shows a blank page or "500" after the switch. Why?
The site, a plugin or a theme uses code the new version no longer supports. Switch back, update the software, and try again. The exact error is on the Errors page.
Does the version also apply to cron jobs and the terminal?
No. This setting is for the websites. Commands you run in cron jobs or the terminal use the command you call, for example /usr/bin/php.
Why can't I see PHP 8.4 in the list?
It is not installed on this server. Ask your hosting provider to install it.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to change PHP settings like memory_limit and upload size
Raise memory_limit, upload_max_filesize, post_max_size, max_execution_time or max_input_vars in the PHP page, with allowed ranges and ready-made presets.
- How to see the PHP error log of your website
Find the PHP errors behind a blank page or 500 error on the Errors page, read the full log in ~/logs/php-errors.log, and show errors while debugging.
- Website not working? Find the cause with Site Check
Website not loading or showing an error? Site Check tests DNS, the server's answer, the SSL certificate, disk and bandwidth limits and PHP errors in one click.