This article shows you how Plesk customers can manage PHP settings for their domains and subdomains from the Customer Panel. The default values of these settings should be optimal for most websites. Keep in mind that changing these settings may impact the performance of your website or even prevent it from displaying correctly
- Log into Plesk
- In the Dashboard section for your website you want to click on PHP Settings.
Changing PHP Versions
- You can change the PHP version by drop down option and selecting which versions you want to update to.
- memory_limit – The maximum amount of memory available to PHP.
- max_execution_time – The maximum time in seconds a script is allowed to run before it is terminated.
- max_input_time – This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET.
- post_max_size – The maximum size in mb a post can be.
- upload_max_filesize – The maximum size in mb a upload can be.
- include_path – Specifies a list of directories where the require, include, fopen(), file(), readfile() and file_get_contents()functions look for files.
- session.save_path – File location where sessions are saved.
- mail.force_extra_parameters – Leave blank.
- open_basedir – lists the allowed files in the specified directories that can be accessed by PHP scripts.
- error_reporting – Set error reporting level.
- display_errors – Determines whether errors should be displayed as a part of the output.
- log_errors – Enable the logging of PHP errors.
- allow_url_fopen – Allows PHP file functions to retrieve data from remote locations over FTP or HTTP.
- file_uploads – Allows uploading files over HTTP.
- short_open_tag – Allows the short form () of the PHP’s open tag.
- pm.max_children – Max number of PHP children processes.
- pm.max_requests – The number of requests each child process should execute before respawning.
- pm – defines how children are spawned static, ondemand, dynamic.
- pm.start_servers – The number of child processes created on startup. Used only when pm is set to dynamic.
- pm.min_spare_servers – The desired minimum number of idle server processes. Used only when pm is set to dynamic.
- pm.max_spare_servers – The desired maximum number of idle server processes. Used only when pm is set to dynamic.