LoginSignup
0
0

More than 5 years have passed since last update.

php7.1(php-fpm)のslab_cache対策

Posted at

AWSでphpを使うとslab_cacheが溜まっていく現象が起こります。
原因としてはlibcurl関連らしいです、他記事で言及されているので、対策だけ。

php-fpmについてですが、
単純に /etc/php-fpm.conf に環境変数としての設定を以下のように追加するだけです。

env[NSS_SDB_USE_CACHE] = "YES"

なのですが、remiリポジトリからインストールしたphp7.1の場合だと
YESをダブルクォーテーションで囲むのが必要で
amazonlinuxのphp7.0の場合はYESをダブルクォーテーションで囲まなくてよかったりします。

0
0
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
0
0