error

WordPressでデバッグオンにした時、Unable to allowcate memry ..が出る場合の対処

WordPressの設定ファイルで、デバッグをONにしたところ、下記のような警告が出る場合がある。

Warning: include_once() [function.include-once]: Unable to allocate memory for pool. in /var/www/…

どうやら、APCが原因のようで、WordPressのデバッグに限らず、PHPのフラグONでも警告が出る模様。

APCを外すか、.htaccessでオフにすれば警告が出なくなる。

php_flag apc.cache_by_default Off

By admin on 2012年5月5日 | WordPress | A comment?
タグ: ,

413 Request Entity Too Large

WordPressのweaverテーマで、ヘッダ画像をアップロードしようとしたら、下記のエラーが出た。

413 Request Entity Too Large 

サーバプログラムは、nginxで、client_max_body_siteは100Mを指定しているのになぜ??

実は、client_max_body_siteの記述をvirtualhost定義内に記載していたのが間違いのよう。

/etc/nginx.conf内のhttp{}内に記載したら、行けましたとさ。

あと、nginxはreloadやrestartでなく、stopしてstartした方が良さげ。

By admin on 2011年8月4日 | Linux | A comment?
タグ: ,