php

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?
タグ: ,

JpGraphのphp設定

Jpgraphを使う際に、ライブラリのパスを設定する必要があるので、php.iniを編集。

jpgraphのインストール先は、/var/www/jpgraphとした場合、include_pathを設定します。

# vi /etc/php.ini
...
include_path = ".:/var/www/jpgraph"
...
...

保存後に、Apache再起動

By admin on 2011年9月29日 | Programing | A comment?
タグ: , ,