Skip to content

Tutorials cPanel Beginner1 min read

How to Change the PHP Version and Settings in cPanel

Switch PHP versions per domain with MultiPHP Manager and change limits like memory_limit and upload_max_filesize with the MultiPHP INI Editor.

By ZSOLNET Editorial Team Updated

Key takeaways

  • Set PHP versions per domain in MultiPHP Manager.
  • Update apps and take a backup before upgrading PHP.
  • Raise upload and memory limits in the MultiPHP INI Editor within plan limits.

Running a supported PHP version keeps your site faster and safer. cPanel lets you set it per domain.

Check compatibility first

Before upgrading, check that your apps support the new version — for WordPress, update core, themes and plugins first. Take a backup.

Change the version

  1. Open Software → MultiPHP Manager.
  2. Tick the domain(s).
  3. Choose the version from the PHP Version menu and click Apply.

Test the site right away. If something breaks, switch back and update the incompatible code.

Change PHP settings

Open Software → MultiPHP INI Editor, choose the domain and adjust values such as:

SettingTypical use
memory_limitMemory each script can use, e.g. 256M
upload_max_filesizeLargest single upload, e.g. 64M
post_max_sizeMust be at least as large as upload_max_filesize
max_execution_timeSeconds a script may run, e.g. 120

Your hosting plan’s limits still apply — values above them have no effect.

Confirm the change

Create a file called info.php containing <?php phpinfo(); in the document root, open it in the browser, check the values, then delete it — it exposes server details.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?