Allowed memory size of 268435456 bytes exhausted [duplicate]

こ雲淡風輕ζ 提交于 2019-12-05 00:21:33
Jsventer

If the script you are using is borrowed from someone else make sure there is no ini_set('memory_limit', '256M') which would produce the exactly effect you are seeing in spite of any change you made in php.ini.

Vid Luther

Ubuntu has two php.ini's, one for apache and one for cli.
Are you sure you edited the right one?
The one for command line is usually in /etc/php5/cli/php.ini.

Levon Mirzoyan

Most probably wrong php.ini is used.

In the same phpinfo()-s output you can check what file is used exactly, search for "Configuration File".

You can call the phpinfo() function from your real script used, to be sure to get the settings for exactly your script (different settings can be used for different virtual hsots, paths, etc).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!