Per-Directory PHP Versions Print

  • phpversionsconfiguration, php, cpanel, subdomain, addondomain, troubleshooting, guide, howto
  • 0

Different versions for different sites.

WHAT IT ALLOWS

Running one version on your main site and a different one elsewhere in the same account.

WHEN THIS HELPS

An old application you cannot yet upgrade, alongside a current site Testing a new version on one site before moving everything

HOW TO SET IT

The cPanel PHP selector allows setting a version per directory.

WHAT TO BE CAREFUL WITH

Forgetting a directory is on an old version.

Set it deliberately and document it.

WHY IT IS A TEMPORARY MEASURE

An application requiring an old PHP version is unmaintained.

Use the flexibility to buy time, not to avoid the problem indefinitely.

WHAT TO CHECK

After changing versions globally, verify no directory was left behind.

FOR SUBDOMAINS AND ADDON DOMAINS

Each has its own directory, so each can have its own version.

Check all of them.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot