Skip to content
ferkesh.HOSTING

How to Change a Website’s PHP Version in Plesk

Plesk 67 次浏览 Markdown
Diagram linking Current runtime, Compatibility, Staging check and Production verification.

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.

Official references

Ferkesh Hosting. Last reviewed .

这对您有帮助吗?

感谢您的反馈!

仍需帮助?

如果知识库未能解答您的问题,支持团队全天候为您服务。