1. Changing your PHP version:
Any new installation of a WordPress site will always have the latest version of PHP.
As a reminder, since January 1st 2022:
- PHP 7.0 is no longer supported,
- PHP 7.1 is no longer supported,
- PHP 7.2 is only for security patches,
- PHP 7.3 is no longer supported,
- PHP 7.4 is released and already available at WPScale ;)
- PHP 8 may present some compatibility problems with some sites.
- PHP 8.1 This is the latest version, and it may present some compatibility problems with some sites.
Although the latest version will always be recommended, if for one reason or another (compatibility problem, for example), you wish to change your PHP version, simply manage the site in question, then select the desired version and wait for the services to restart (about 20 seconds).
In case of problems, go back to the previous version.
2. Changing your PHP settings:
Some themes or plugins require a specific PHP configuration. If you want to change certain parameters, just log on to your WPScale console and manage the site in question and click on the button "PHP settings".
Below are the most commonly used functions. Just choose the desired value and click on the "Edit" button.
Here’s what these different parameters are used for:
allow_url_fopen:
This setting lets you allow or block remote files. For security reasons, we strongly advise you leave it "Off" (see note 1).
upload_max_filesize:
Sets the maximum size for sending files on WordPress.
post_max_size:
Defines the maximum size allowed for article data. This setting also affects uploading files to WordPress. To avoid problems, upload_max_filesize and post_max_size must be the same value.
max_input_vars:
Defines the maximum number of variables the server can use for a single function. Some themes/plugins require a higher value.
max_execution_time:
Sets the maximum time a PHP script is allowed to run. Beyond this time, the script stops and an error can occur.
max_input_time:
Sets the maximum amount of time a script is allowed to analyse the input data from POST and GET requests.
Note 1: If the allow_url_fopen function is set to "On", then you can no longer claim the WPScale guarantee in case of hacking of your site (see article 20 of our GTC)
Note 2: The functions max_input_vars, max_execution_time and max_input_time may slow down your site under certain circumstances. That’s why we have deliberately limited the values to those in the selection menus.