How to Change a Website’s PHP Version in Plesk
Change PHP for the website through its own Plesk PHP Settings page when your subscription permits it. The selected version affects web requests for that site. Command-line PHP or scheduled tasks can use a different binary, and should be tested separately when relevant.
Choose a version supported by all components
Record the current version, handler and relevant extensions. Check the application, plugins and theme against their vendor’s support information and review PHP’s support schedule. Take a current backup and test the new version on staging. Include sessions, uploads, database use and any integration the site depends on. A passing front page is useful but insufficient for an interactive site.
Apply and verify the correct subscription
Open Websites & Domains, confirm the domain and choose PHP Settings. Select the tested version and handler offered by the provider. If the necessary option or extension is missing, ask your provider rather than attempting a server-wide change. Apply the setting during the planned window. Open several public URLs, sign in through a permitted account and inspect logs for new warnings or fatal errors.
Restore the previous runtime if necessary
If critical functionality fails, restore the previous version and handler using your checkpoint. If application updates also changed files or database structure, a PHP setting alone might not restore the site. Keep production error display disabled and share redacted log lines with the maintainer.
Related guides
- How to Create a Safe WordPress Staging Copy
- How to Update WordPress Safely
- How to Diagnose PHP Errors from Private Logs
- Plesk category
Official references
Ferkesh Hosting. Last reviewed .
Ευχαριστίες για τα σχόλιά σας!