問題描述
當我登錄到我的 Web 應用程序時,它顯示如下錯誤:
When I login to my web application it shows an error like:
致命錯誤:/gt/2.ps.fo/home/hft/domains/console.fo.spalgo.com/public_html/cake/libs/中允許的內存大小為 134217728 字節(試圖分配 87 字節)模型/數據源/dbo/dbo_mysql.php 在線 775
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes) in /gt/2.ps.fo/home/hft/domains/console.fo.spalgo.com/public_html/cake/libs/model/datasources/dbo/dbo_mysql.php on line 775
有沒有辦法解決這個問題?為什么會出現此錯誤?
Is there any solution to solve this problem? Why do I get this error?
推薦答案
聽起來你已經分配了 比 PHP 允許的內存多.如鏈接頁面所述,編輯站點 php.ini
配置中的 memory_limit
設置.
That sounds like you've allocated more memory than PHP will allow. Edit the memory_limit
setting in your site php.ini
configuration as described on the linked page.
另一種可能性(不太可能)是您已達到用戶或組的 setrlimit(2)
資源限制.檢查 /etc/security/limits.conf
以了解可能為您的 Web 服務器設置的限制,以及啟動您的服務器環境和 PHP 解釋器環境的任何初始化腳本.
Another possibility (less likely) is that you've hit the setrlimit(2)
resource limits for your user or group. Check /etc/security/limits.conf
for limits that might be set for your web server, along with whatever initialization scripts start your server environment and PHP interpreter environment.
這篇關于致命錯誤:允許的內存大小為 134217728 字節已用盡(嘗試分配 87 字節)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!