Other languages / Другие языки / Забонҳои дигар: Русский Тоҷикӣ

Different sites need different PHP versions. Old scripts run on 7.4, new ones on 8.1+. In cPanel you can change version per domain.

Steps:

  1. cPanel → "Software" section → Select PHP Version (may be called MultiPHP Manager).
  2. Pick the domain in the list.
  3. From the dropdown pick the version (7.4, 8.0, 8.1, 8.2, 8.3 — depends on plan).
  4. Click Apply. Done.

Enable/disable extensions:

In Select PHP Version → Extensions tab.Check the modules you need: imagick, intl, gd, mbstring, opcache etc.Changes apply instantly.

PHP options (php.ini):

  1. Options tab.
  2. Change memory_limit, upload_max_filesize, post_max_size, max_execution_time etc.
  3. Save.

Tip:

Before switching version check if your CMS supports it. A sudden jump from 7.4 to 8.2 can break old WordPress plugins. Test on a staging copy first.

Дали Ви помогна овој одговор? 0 Корисниците го најдоа ова како корисно (2 Гласови)