Help us understand the problem. What is going on with this article?

ApacheとPHP-FPMのphp_value設定

More than 1 year has passed since last update.

概要

.htaccessなどで、phpの設定を変更したりできますが、
php-fpmを使った場合、通常の書き方だとエラーになったのでメモしておく。

通常の書き方

.htaccess
# PHP5.6 (E_ALL(32767) - E_NOTICE(8))
php_value error_reporting = 32759

PHP-FPMの場合の書き方

.htaccess
  # Docker PHP-FPM5.6 (E_ALL(32767) - E_NOTICE(8))
  SetEnv PHP_VALUE "error_reporting = 32759"

参考サイト

reflet
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away