AdminsForum

CloudPanel PHP Settings Guides

Guide How to Change PHP Version and PHP Settings in CloudPanel

Started by JAY 0 replies 231 views
1JAY
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1
How to change the PHP version and PHP settings in CloudPanel

Every PHP and WordPress site in CloudPanel has its own PHP version and its own PHP limits. You can change them from the site's settings without touching any config files, and the change only affects that one site. This guide shows where the settings are, what each one does and which values to use for common jobs like bigger uploads or heavy WordPress plugins.

Where to find the PHP settings
  1. Log in to CloudPanel and click Sites.
  2. Click Manage next to your site.
  3. Stay on the Settings tab and scroll down to PHP Settings.
  4. Change the values you need and click Save at the bottom of the page.
CloudPanel applies the new values to that site's PHP-FPM pool straight away. You don't need to restart anything yourself.

[Image: attachment.php?aid=384]

Change the PHP version
Pick the version from the PHP Version dropdown and save. CloudPanel ships several PHP versions side by side, so other sites on the same server keep their own version.

Before you switch a live site:
  • Check that your CMS, theme and plugins support the new version.
  • Take a backup or a database dump first.
  • After switching, open the site and a few key pages, then check the site's error log under Logs.
If something breaks, switch back to the previous version and save again.

What each setting does
  • memory_limit: the most memory one PHP script may use. Raise it if you see "Allowed memory size exhausted" errors.
  • max_execution_time: how long a script may run before PHP stops it. Raise it for long imports, exports or backups.
  • max_input_time: how long PHP may spend reading incoming data (form posts and uploads).
  • max_input_vars: how many form fields PHP accepts in one request. Large WordPress menus and WooCommerce settings pages often need more than the PHP default.
  • post_max_size: the biggest total POST request PHP accepts.
  • upload_max_filesize: the biggest single file you can upload.

Recommended values for common jobs
Allow bigger uploads (for example a 256 MB theme, plugin or backup)
  • upload_max_filesize: 256 MB
  • post_max_size: 256 MB or more. It must be at least as large as upload_max_filesize, or big uploads still fail.
  • max_execution_time and max_input_time: a few minutes, so slow uploads don't time out.
WordPress or WooCommerce with many plugins
  • memory_limit: 256 MB to 512 MB
  • max_input_vars: 5000 to 10000
Keep limits only as high as you need. A very high memory_limit lets one broken script use a lot of RAM on a small VPS.

Check that the new values are active
Create a temporary file in the site's root folder (for example
Code:
htdocs/www.example.com/info.php
) with this content:
Code:
<?php phpinfo();
Open
Code:
https://www.example.com/info.php
and check PHP Version, memory_limit and upload_max_filesize. Delete the file straight after, because it shows details about your server to anyone.

For WordPress, you can also check under Tools > Site Health > Info > Server.

Troubleshooting
  • Uploads still fail at a smaller size: check post_max_size as well as upload_max_filesize. If you use Cloudflare's free plan, it limits uploads to 100 MB per request no matter what PHP allows.
  • WordPress still shows the old memory limit: look for a
    Code:
    WP_MEMORY_LIMIT
    line in wp-config.php that sets a lower value.
  • White page after changing the PHP version: check the error log under Logs, usually a plugin or theme that isn't compatible. Switch back while you fix it.

Tested on CloudPanel v2.5.4. Sources: CloudPanel documentation.

More CloudPanel guides: Create a PHP site · What can you host on CloudPanel?

Attached Files

Image(s)
   
Reply

Messages In This Thread
How to Change PHP Version and PHP Settings in CloudPanel - by JAY - 10-19-2026, 02:28 PM
Possibly Related Threads…matched by title
Replies:0Views:114

Users browsing this thread: 1 Guest(s)
Forum Jump: