There are two common ways depending on your hosting setup:

  • Method 1: MultiPHP Manager (cPanel default)
  • Method 2: PHP Selector (CloudLinux servers)

Method 1: Using MultiPHP Manager (cPanel)

https://images.openai.com/static-rsc-4/JP2ZHC43LLWe8d3by5kZnQHhM7IDNFbHcfaHOKom6o2bKS-EblDzU_8X6P5DZYZ_1WPdPB2snAmm8sJCqRcKDZYoCMWcTTU100uUdDTCp1Ljqt3ziSPKbMz2H7tvMYtkIWlYLXsVRVBKW2Mb3yYX4qy25lFfwSQVh2JRTUe8Xx4rAbseh8Jk8DxKvOcS1vZF?purpose=fullsize
https://images.openai.com/static-rsc-4/8Z-VoBMt01ZstbKS4CBDxo2FsDILbknIr-uAN7wWzN_BTMfijzX7qMnixiu78EMbfKuZH1ubPlnxPKdGBE1cK_b9VbYPdasfxiLfIXFExOrz8cYqSZf4w5QaPQkeawXDBBVGrAf3zFh-h__VJGNBtJKrqGMa9cZVzFds_EIOSCVSie5bxr1OeysYDM59HXWJ?purpose=fullsize
https://images.openai.com/static-rsc-4/SvrYuVd5jfJGPlST8-ZX8CwlKcbA2EX_iMn2psv0pi2gLgErFTVFSKM1XikA7vOn56UVYunrx_ifrtH3OkD1QUiGMBtXfdrz3g8e1JRBmDK3le_kLepBmNbw2mujw5iGRONth_aR-0fjAeeIHYccbKaSEUe4V72gD7xmyhgncYzQlO1bq4yAw43BPaooCSEE?purpose=fullsize
7

Steps:

  1. Login to cPanel
    • Example: https://yourdomain.com/cpanel
  2. Go to “MultiPHP Manager”
    • Found under the Software section
  3. Select your domain
    • Tick the checkbox next to the domain you want to change
  4. Choose PHP Version
    • On the right side, select the desired version (e.g., PHP 8.1, 8.2)
  5. Click Apply

✅ Done! Your domain is now using the selected PHP version.


Important Notes:

  • Changes apply per domain
  • Subdomains can have different PHP versions
  • Recommended versions: PHP 8.1 or 8.2  or more (better performance & security)

Method 2: Using PHP Selector (CloudLinux)

https://images.openai.com/static-rsc-4/8Z-VoBMt01ZstbKS4CBDxo2FsDILbknIr-uAN7wWzN_BTMfijzX7qMnixiu78EMbfKuZH1ubPlnxPKdGBE1cK_b9VbYPdasfxiLfIXFExOrz8cYqSZf4w5QaPQkeawXDBBVGrAf3zFh-h__VJGNBtJKrqGMa9cZVzFds_EIOSCVSie5bxr1OeysYDM59HXWJ?purpose=fullsize
https://images.openai.com/static-rsc-4/9PU46OHXORad1tf8GoyHgwJu7ieCGdDPAb1roMOoxLPrRYBojB6vCj5gtoItaToFOO-jcqyEUN2gJ-vchlBJLKdAuR_OgairhsNKCu0ZfNtwBOwqWJvtoKfiDbHlMJfsAhmkANXMnMnvgzmIX_7_G7wSdn-jN69a2DSZD0s7XifVkR9HTzmtMez6IEizvtyX?purpose=fullsize
https://images.openai.com/static-rsc-4/-QoFPVbW5I4ZKlr7IkNSRotFyMPTpYYKh2PZOcXOfKcOXepzA5UfVJ2IgcoGTgzSaGuLZ27HYznhiBQpjnmBlPdziZs4p93ZjcAyHZmWqlI_B1a0N8eTDuqO9gvSSZkyF75X6UXkgQ9Y_n7beXT_mvsjk3udAkUYwhpKo7fGFbvMv6MLwZIAC90oAeUXD6vJ?purpose=fullsize
7

Steps:

  1. Login to cPanel
  2. Click on “Select PHP Version”
  3. You’ll see current version at the top
  4. Choose a PHP version
    • Select from dropdown (e.g., 7.4, 8.1, 8.2)
  5. Click Set as current
  6. (Optional) Enable/disable PHP extensions below

Extra Features:

  • Enable extensions like:
    • mysqli
    • pdo
    • imagick
  • Customize PHP settings (memory_limit, upload size, etc.)

⚠️ Common Issues & Fixes

❌ Website breaks after switching PHP

Solution:

  • Switch back to previous version
  • Update your website (especially WordPress plugins/themes)

❌ PHP version not changing

Possible causes:

  • .htaccess override
  • Manual PHP handler set
  • Domain not assigned properly

❌ Missing PHP extensions

 Use PHP Selector to enable required modules


Summary

Tool Best For Control Level
MultiPHP Manager Simple switching Basic
PHP Selector Advanced control High

 

Помог ли вам данный ответ? 0 Пользователи нашли это полезным (0 голосов)