How to Change Your PHP Version and Extensions
Step 1: Access the PHP Selector
- Log in to cPanel: Navigate to the Software section.
- Click Select PHP Version: This tool allows you to set the PHP version on a per-account basis.
Step 2: Changing the PHP Version
- View Current Version: Your current PHP version (e.g., PHP 7.4) appears at the top of the page.
- Select New Version: Click the dropdown next to Current PHP version and choose a version (e.g., PHP 8.1 or 8.2).
- Recommendation: Use the highest version supported by your software (like WordPress) for security and performance.
- Set as Current: Click Set as current to apply the change.
Step 3: Enabling/Disabling Extensions
- Below the version selection, checkboxes list available PHP extensions.
- To Enable: Tick the box next to the extension (e.g., zip, opcache, pdo).
- To Disable: Untick the box.
- Auto-Save: Changes are saved instantly as you click them.
Step 4: Modifying PHP Options (Memory Limit, Upload Size)
- Click the Options tab at the top of the PHP Selector page.
- 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.
- 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.