03. How to Change Your PHP Version and Extensions Print

  • 0

How to Change Your PHP Version and Extensions

Step 1: Access the PHP Selector

  1. Log in to cPanel: Navigate to the Software section.
  2. Click Select PHP Version: This tool allows you to set the PHP version on a per-account basis.

Step 2: Changing the PHP Version

  1. View Current Version: Your current PHP version (e.g., PHP 7.4) appears at the top of the page.
  2. Select New Version: Click the dropdown next to Current PHP version and choose a version (e.g., PHP 8.1 or 8.2).
  3. Recommendation: Use the highest version supported by your software (like WordPress) for security and performance.
  4. Set as Current: Click Set as current to apply the change.

Step 3: Enabling/Disabling Extensions

  1. Below the version selection, checkboxes list available PHP extensions.
  2. To Enable: Tick the box next to the extension (e.g., zip, opcache, pdo).
  3. To Disable: Untick the box.
  4. Auto-Save: Changes are saved instantly as you click them.

Step 4: Modifying PHP Options (Memory Limit, Upload Size)

  1. Click the Options tab at the top of the PHP Selector page.
  2. Locate settings like:
    • memory_limit: Increase to 256M or 512M for heavy plugins.
    • post_max_size & upload_max_filesize: Increase for large theme or media uploads.
    • max_execution_time: Increase if scripts are timing out.
  3. Click the value to change it; changes save automatically.

Common Troubleshooting

  • Site Goes Blank: If a white screen appears after changing the PHP version, your code may not be compatible. Switch back to the previous version.
  • Missing Extensions: If a plugin reports a missing module, check it in the Extensions list. If not listed, contact Jiinubi support.

Was this answer helpful?

« Back