Adjusting PHP settings¶
There are many circumstances where you might need to run a different version of PHP. Versions can be set on a per domain or folder basis.
Changing the PHP version¶
- Login to cPanel
- Navigate to
MultiPHP Manager
- Select the relevant domain on the list using the checkboxes on the left side of cPanel (multiple selections can be made)
- In the PHP Version dropdown on the right-hand side, set the version you require — for ex., php 8.2 is listed as
ea-php82
- Select apply. Confirm everything works, and if not, simply revert your changes via the same interface.
All set! That domain will now use the desired PHP version. If you run into any issues, contact Fused
Video: Changing PHP Version¶
Running Legacy PHP Versions¶
Our current setup allows you to run PHP versions as old as 5.6. You can review those instructions on changing the php version above. In instances where you need to use even earlier versions than 5.6, contact Fused.
Changing PHP settings¶
To adjust your php settings, you have two options available. You can edit your php.ini files directly (in any folder) via shell, SFTP or SSH, or you can manage your PHP settings via cPanel.
Managing your PHP settings via cpanel¶
- Login to cPanel
- Navigate to the MultiPHP INI Editor
- Select the relevant domain in the dropdown list.
- In
Basic Mode
, you're afforded a number of options like memory settings. If you'd prefer to swap over to an advanced mode, selectEditor Mode
. - Populate the settings as needed and select apply (Or, save, for the Editor Mode).
Stick with basic
Unless you're familiar with adjusting a php.ini file by hand, stick with the basic options. Remember to always test your site(s) after making changes to ensure there are no errors.