致命错误:耗尽了25165824字节的允许的内存大小(尝试分配31436096字节) [英] Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 31436096 bytes)

查看:242
本文介绍了致命错误:耗尽了25165824字节的允许的内存大小(尝试分配31436096字节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Joomla的新手,现在正在使用Joomla 1.6

I'm new to Joomla and I'm now using Joomla 1.6

我遇到的问题是,当我尝试通过管理工具上传扩展程序时,收到以下错误消息:

The problem I encounter is when I try to upload an extension via the admin tool and I get the following error message:

"Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 31436096 bytes)
 in C:\AppServ\www\libraries\joomla\filesystem\file.php on line 295"

我已经阅读了一些相关的消息,但是并没有解决它. phpinfo返回一个我认为可能相关的值:

I've read some relevant messages but didn't get it solved. The phpinfo returns a value which I think may be relevant:

1)upload_max_filesize      local value=200; master value=200

我正确吗?如果是,我该如何更改? (我无法远程访问服务器.)

Am I correct? If yes, how can I change it? (I can't remote to the server.)

推荐答案

对于Joomla,尤其是其更新程序,您的内存限制(24 MB)相当低.我建议至少32 MB,更好的是64 MB.

Your memory limit (24 Megabyte) is rather low for Joomla and especially for its updater. I recommend at least 32 Megabyte, better 64 Megabyte.

如何更改取决于您的服务器环境.如果您有权访问php.ini,则应查找包含memory_limit的行并将其值设置为32M(或64M或任何适合您的值)

The how to change is it is dependent on your server environment. If you have access to your php.ini you should look for a line that contains memory_limit and set its value to 32M (or 64M or whatever value works for you)

如果您无法访问php.ini,请尝试通过.htaccess文件进行设置:

In case you can't access the php.ini try setting it trough the .htaccess file:

php_value memory_limit 1000M

如果该操作仍然失败,则应与您的托管人联系.有些具有可更改此设置的Web界面.不幸的是,其他人根本不允许更改它.您唯一的机会是恳请您的托管人更改其服务器配置.

If that also fails you should contact your hoster. Some have a web interface to allow changing this settings. Unfortunately others doesn't allow changing it at all. Your only chance is begging your hoster to change its server configuration.

这篇关于致命错误:耗尽了25165824字节的允许的内存大小(尝试分配31436096字节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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