LoginSignup
4

More than 5 years have passed since last update.

ApacheとPHP-FPMのphp_value設定

Last updated at Posted at 2018-01-30

概要

.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"

参考サイト

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
What you can do with signing up
4