Yii2内存排气错误

时间:2015-04-03 14:08:13

标签: php yii yii2

我将基本的Yii2应用程序上传到我的网络服务器.. 它在我的error_log

中显示了这个错误
[Fri Apr 03 09:57:59 2015] [error] [client 5.133.137.53] File does not exist: /home/mkiwi/public_html/500.shtml
[Fri Apr 03 09:57:59 2015] [error] [client 5.133.137.53] ] [notice] EACCELERATOR(19087): PHP crashed on opline 6 of register_shutdown_function() at /home/mkiwi/public_html/basic/vendor/yiisoft/yii2/log/Logger.php:121

当我打开此文件http://myserver/basic/web/index.php时,会显示以下错误:

PHP Fatal Error – yii\base\ErrorException

Allowed memory size of 2147483648 bytes exhausted (tried to allocate 3319912065 bytes)

有人可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

尝试将此添加到web.php文件的顶部(在使用声明下) - 为我工作。

ini_set(' memory_limit',' 512M'); //或者你想申请的任何内存限制。

希望有所帮助。

相关问题