How do you change the PHP version on your cPanel hosting?

Procédure

What are the different PHP versions available on cPanel?

cPanel allows you to choose between different PHP versions on your web hosting space.

The versions currently available are as follows:

  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3
  • PHP 8.4
  • PHP 8.5

For each PHP version, you can enable and/or disable PHP extensions.

To change the PHP version for an additional domain or a specific subdomain, use a .htaccess file: How do I enable different PHP versions for added companion domains?

How do you change the PHP version on your cPanel hosting?

1. Log in to your cPanel hosting space, go to the "Software" section and click on "Select PHP Version".

How do you change the PHP version on your cPanel hosting?

2. In the drop-down menu, choose the PHP version you want for your sites from the drop-down list and then click the "Apply" button. You can also enable or disable PHP extensions for the selected version by checking/unchecking them in the displayed list.

How do you change the PHP version on your cPanel hosting?

Conclusion

You are now able to change the PHP version on your cPanel web hosting with LWS. Be careful: if you change the PHP version while you already have a live website, it may no longer display correctly.

Feel free to share your comments or questions!

help.lws.net/a/1003
Was this article helpful?

Yes

No

Read 38 312 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

Questions about the article 1

Ask a question
Franck
1 Aug 2023
Comment changer la version de php pour chaque sous domaine crée ??
Aurelien-LWS Official answer
2 Aug 2023

Bonjour,

Je vous remercie pour votre message.

Vous pouvez retrouver la procédure pour configurer une version PHP différente sur chaque sous-domaine ou domaine compagnons configurés sur votre formule cPanel en suivant cette documentation : https://aide.lws.fr/a/1281

Cordialement, L'équipe LWS

Was this answer helpful?

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.