Sometimes you need to modify the memory_limit value in php.ini. The default value is 128M. If it is not enough, you can change it to 256M or 512M.Previously, the command line panel needs to be manually modified in php. ini. Since the pagoda panel has been modified, it has become very simple.In order to make it easier for people to use different environments, Lao Wei explained the two methods of modification.
Pagoda panel modification php.ini and memory_limit
It is easy to modify the above parameters in the pagoda panel. In the panel background>Software store>Installed, find and enter the currently used php version, and click the Settings button on the right.
Click "Modify Configuration" in the php management dialog box. Change the memory_limit on the right to an appropriate value, such as 512M, and save it.
If you are familiar with the command line, you can also click the "configuration file", that is, the php. ini file, search for memory_limit, and modify the value.
It is not over yet. Click "Service">Restart or reload the configuration.
Modify php.ini and memory_limit in the directory
The path of the php.ini configuration file in the pagoda panel:/www/server/php/74/etc/. 74 represents the current php version. For example, if you use php 7.3, it is 73.
Open php. ini in the directory, search and find memory_limit=128M, change it to the value you need, and restart php.
Article name: How to modify php. ini and memory_limit on the pagoda panel Article link:https://www.vpsss.net/28780.html Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself. The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.