4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Wordpressを運用しているとAllowed memory size の表示 がでてメモリが足りなくなる解決方法。

Last updated at Posted at 2014-09-03

Wordpressのページがしょっちゅう落ちて困ります。

PHP Fatal error:  Allowed memory size of 44040192 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/wp-includes/pomo/streams.php on line 86

PHPのメモリが足りないためエラーがでてWordpressが落ちてしまいました。対策としてphp.iniのmemory_limitを64Mなどに増やします。

WordpressをおいているサーバーはCentOSです。

php.iniを編集
vi /etc/php.ini

元々42MBほどに制限していたメモリ制限値を64MBまで増加させました。

memory_limitを変更
memory_limit = 64M;

php.iniを編集してからウェブサーバーを再起動すると、同じphpファイルが呼ばれても、一旦はWordpressが落ちなくなります。しかしメモリ消費量はどんどん増えてきているので、メモリ消費が多いプラグインを削除したほうがいいですね。

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?