- Log in to cPanel.
- Open Select PHP Version (in the Software section).
- Choose the version you need from the list and click Set as current.
- On the Extensions tab, turn on any extra PHP extensions your application needs. Under Options, you can change limits such as
memory_limitandupload_max_filesize.
Older versions are available for legacy sites, but we strongly recommend PHP 8.2 or newer for security and speed.