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
Step 2, click on the running environment above.
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.
Step 4 find the configuration modification menu
commonly used PHP parameters and their setting methods
- memory limit
in the pagoda panel, you can find thememory_limit
parameter 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.
- maximum execution time
in the pagoda panel, you can find themax_execution_time
parameter 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.
- file upload size limit
in the pagoda panel, you can find theupload_max_filesize
andpost_max_size
parameters in the PHP settings. Theupload_max_filesize
parameter sets the maximum size of the uploaded file, while thepost_max_size
parameter 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.
- error reporting level
in the pagoda panel, you can find theerror_reporting
parameter 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.
- 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.