Overview
This article describes how to use Plesk to change the active PHP version and settings on an account.
PHP Selector allows users to see the currently selected PHP version. They can change PHP version, enable/disable PHP Extensions, and select modules they want to be available for their website, making the modules immediately available for the web application.
End-users can adjust the most important values, and control PHP Extensions such as (upload_max_filesize) and (post_max_size) without the need to modify any files like “php.ini” or “htaccess” manually – everything is done from the web interface.
How to change PHP Version & Settings
- Log in to your account on the Plesk control panel.
- On the left sidebar, select Websites & Domains.
- Select the domain you want to change the PHP Settings for.
- On the Dashboard section, under Dev Tools click PHP Settings.
- On the PHP Selector page, select the desired version of PHP from the PHP Version listbox. Also, you can select how to run PHP from the run PHP as listbox.
- Under Performance and security settings, you can:
- Set the maximum amount of memory in bytes a script is allowed to allocate, in memory_limit box.
- Set the maximum time in seconds a script is allowed to run before it's terminated, in the max_execution_time box.
- Set the maximum time in seconds a script is allowed to parse input data, in the max_input_time box.
- Select the maximum size in bytes of data that can be posted with the POST method, in the post_max_size box.
- Select the maximum size in bytes for an uploaded file, in the upload_max_filesize box.
- Enable or disable the OPcache caching engine, in the opcache.enable box.