How to Change PHP Version in cPanel


Different web applications require different PHP versions. For example, WordPress recommends PHP 8.0 or higher, while some older applications may still require PHP 7.x. SKPHost allows you to change the PHP version for each domain independently through cPanel's MultiPHP Manager.

Checking Your Current PHP Version

To check which PHP version your domain is currently using:

  1. Login to cPanel.
  2. Go to Software → MultiPHP Manager.
  3. You will see all your domains listed with their current PHP version.

Steps to Change PHP Version

  1. Login to cPanel.
  2. Under the Software section, click MultiPHP Manager.
  3. Check the box next to the domain you want to change.
  4. From the PHP Version dropdown at the top, select your desired version (e.g., PHP 8.2).
  5. Click Apply.

The PHP version will be updated immediately. No server restart is required.

Recommended PHP Versions

  • WordPress: PHP 8.1 or 8.2 (recommended)
  • Joomla 4.x: PHP 8.0+
  • Drupal 10: PHP 8.1+
  • Magento 2.4: PHP 8.1+
  • Laravel 10: PHP 8.1+

Warning: Always test your website after changing PHP versions. Some older plugins or scripts may not be compatible with newer PHP versions. Take a backup before making changes.

Setting PHP Options (php.ini)

To customize PHP settings like memory_limit, upload_max_filesize, or max_execution_time:

  1. Go to cPanel → Software → MultiPHP INI Editor.
  2. Select your domain.
  3. Modify the values and click Apply.

If you continue to face issues, please open a create a request.

Esta resposta foi útil? 0 Utilizadores acharam útil (0 Votos)