Changing PHP Version & settings in Plesk


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

  1. Log in to your account on the Plesk control panel.
  2. On the left sidebar, select Websites & Domains.
  3. Select the domain you want to change the PHP Settings for.
  4. On the Dashboard section, under Dev Tools click PHP Settings.
  5. 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.
  6. 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.

      Typically, should be larger than upload_max_filesize and smaller than memory_limit.

    • 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.

      OPcache is enabled by default. It improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on July 3, 2022
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support