dede后台Fatal error: Allowed memory size of 8388608 bytes exhausted问题的解决方

dede后台Fatal error: Allowed memory size of 8388608 bytes exhausted问题的解决方,第1张

dede后台Fatalerror:Allowedmemorysizeof8388608bytesexhausted问题的解决方

浏览dede后台管理时,提醒致命错误:允许内存大小8388608字节解决问题。

解决方式一:(我用这方式就可以安裝了)

开启在.htaccess文档裡最上边开始再加上

php_valuemax_execution_time1200
php_valuememory_limit200M
php_valuepost_max_size200M
php_valueupload_max_filesize200M


解决方式二:(这我也不怎么会请高手表述)

或是在httpd.conf电脑主机配置里改

解决方式三:(这一我试过没什麽功效..请高手帮助表述)

如出現这类难题则说明,程序执行占有的记忆力室内空间超出了8M,解决方式改动PHP.ini文件将

memory_limit=8M;
的值改成12M就可以了

ThiserrormessagecanspringupinapreviouslyfunctionalPHPscriptwhenthememoryrequirementsexceedthedefault8MBlimit.Don’tfret,though,becausethisisaneasyproblemtoovercome.Tochangethememorylimitforonespecificscriptbyincludingalinesuchasthisatthetopofthescript:
ini_set("memory_limit","12M");

The12Msetsthelimitto12megabytes(12582912bytes).Ifthisdoesn’twork,keepincreasingthememorylimituntilyourscriptfitsoryourserversquealsformercy.
YoucanalsomakethischangepermanentlyforallPHPscriptsrunningontheserverbyaddingalinelikethistotheserver’sphp.inifile:
memory_limit=12M
Keepinmindthatahugememorylimitisapoorsubstituteforgoodcoding.Apoorlywrittenscriptmayinefficientlysquandermemorywhichcancausesevereproblemsforfrequentlyexecutedscripts.However,someapplicationsareruninfrequentlyandrequirelotsofmemorylikeimportingandprocessingabigdatafile.
如果是vps云服务器网络服务器客户强烈推荐大伙儿选用第三种方式。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/773448.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存