致命错误:使用Drupal允许内存大小 [英] Fatal error: Allowed memory size with Drupal

查看:165
本文介绍了致命错误:使用Drupal允许内存大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu,并且安装了任务灯环境。



我更改了 memory_limit post_max_size 参数,分别为<512M和128M 。用/ etc / init.d / apache重新启动apache。

 我尝试访问`http:// localhost / drupal / admin / build / block / list.` 

但是我总是得到错误:

 致命错误:允许的内存大小为67108864字节(尝试分配1589081字节)在/ var / www / drupal / includes / common.inc中行3003 


解决方案

您尚未更改内存限制正确的文件。内存限制错误仍然显示64MB作为已超出的限制。



在Ubuntu中,正确的文件应为/etc/php5/apache2/php.ini。



一旦你更改memory_limit值,然后重新启动apache,确认memory_limit已经通过创建一个test.php与

 <? php phpinfo(); 

如果在phpinfo输出检查中没有更新内存限制,phpinini在phpinfo输出中加载并更改该文件并重新运行测试。


I'm using Ubuntu, and I installed tasksel lamp environment.

I changed memory_limit and post_max_size parameters, 512M and 128M respectively. Restart apache with / etc / init.d / apache restart.

I try to access `http://localhost/drupal/admin/build/block/list.`

But I always get the error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1589081 bytes) in / var / www / drupal / includes / common.inc on line 3003

解决方案

You have not changed the memory limit in the correct file. The memory limit error is still showing 64MB as the limit that has been exceeded.

In Ubuntu the right file should be /etc/php5/apache2/php.ini.

Once you change the memory_limit value in there and restart apache confirm that the memory_limit has been changed by creating a test.php with

<?php phpinfo();

If memory limit is not updated in the phpinfo output check where php.ini is loaded in the phpinfo output and change that file and re-run the test.

这篇关于致命错误:使用Drupal允许内存大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆