In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to quickly solve the problem of insufficient php memory", the explanation content in the article is simple and clear, easy to learn and understand, please follow the ideas of Xiaobian slowly, together to study and learn "how to quickly solve the problem of insufficient php memory"!
Sometimes when we run php again, it will appear
Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
The reason for this error: to ensure that it is not the cause of the program (such as endless loop), it is due to the default maximum memory consumption of php pages is 8M (you can see it in PHP ini) ,
If the file is too large or the image is too large, the above error will occur when reading.
Solution:
1. Modify php.ini to change memory_limit from 8M to 16M (or greater), restart apache service
2. Add ini_set ('memory_limit','** M') to PHP file; Note: For normal use of other system resources, please do not set memory_limit too large, where-1 is unlimited
3. Modify the.htaccess documentation (if the directory supports.htaccess) by adding the following sentence to the documentation: php_value memory_limit 16M(or greater)
Thank you for reading, the above is "how to quickly solve the problem of insufficient php memory" content, after the study of this article, I believe we have a deeper understanding of how to quickly solve the problem of insufficient php memory, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.