The pagoda panel is a tool for managing Linux servers and includes many useful features, including setting common parameters for PHP. In the pagoda panel, you can easily modify the parameters of PHP to meet your needs.

PHP parameters where to adjust

in Pagoda Panel
The first step is to open your pagoda control panel and find the software store

5e5be4bf6d3f04c5e0c31d8e804c8707

Step 2, click on the running environment above.

ef193d31f4bf2f7a5aa1f1a10bafc1a2

The third step is to find the PHP version of your current site, for example, this site is currently using PHP 7.4, and click on the settings on the right.

4bc4a7a8e255262052454ce9ecbb2618

Step 4 find the configuration modification menu

0c1a97cb7d5b549c2bc18da724e8a659

commonly used PHP parameters and their setting methods

  1. memory limit

in the pagoda panel, you can find thememory_limitparameter in the PHP settings. By default, this parameter is set to 128 MB. If you need to increase the memory limit, you can set this parameter to a higher value, such as 256 MB or 512 MB. Note that increasing the memory limit increases the load on the server, so you should set it carefully.

  1. maximum execution time

in the pagoda panel, you can find themax_execution_timeparameter in the PHP settings. By default, this parameter is set to 30 seconds. If you need to increase the maximum execution time of the script, you can set this parameter to a higher value, such as 60 seconds, 120 seconds, or more. Note that increasing the maximum execution time increases the load on the server, so you should set it carefully.

  1. file upload size limit

in the pagoda panel, you can find theupload_max_filesizeandpost_max_sizeparameters in the PHP settings. Theupload_max_filesizeparameter sets the maximum size of the uploaded file, while thepost_max_sizeparameter sets the maximum size of the POST request. If you need to increase the file upload size limit, you can set these parameters to higher values, such as 16 MB, 32 MB, or greater.

  1. error reporting level

in the pagoda panel, you can find theerror_reportingparameter in the PHP settings. This parameter sets the error reporting level for PHP. By default, this parameter is set to E_ALL, which displays all errors. If you need to hide some errors or show only serious errors, you can change the value of this parameter.

  1. OPCache cache

in the pagoda panel, you can find the OPCache cache option in the PHP settings. OPCache is PHP’s built-in caching system that caches compiled PHP code to speed up script execution. You can enable or disable OPCache caching here, and adjust cache size and other options.

in short, setting the PHP parameters in the pagoda panel is very simple, you only need to find the corresponding parameters in the PHP settings and set them. Note that before changing these parameters, you should understand their meaning and impact to avoid adversely affecting the server.

Disclaimer: All articles on this website, unless otherwise specified or marked, are original and published on this website. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of this site. If the content on this website infringes on the legitimate rights and interests of the original author, you can contact us for assistance.