Apacheだと.htaccessやhttpd.confで設定していたホストごとのphpの設定。nginx と FastCGIではnginx.confの中で設定を行う。
※ もちろんnginx.conf本体でなくとも、そこからインクルードするファイルで行ってもOK。
server ブロックの中のphpの設定をしているブロックで下記のようにPHP_VALUEを指定する。
server { ... location ~ \.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /path/to/web/$fastcgi_script_name; fastcgi_param PHP_VALUE "include_path=/path/to/include_path display_errors=on"; } ... }
上の例のように複数(include_pathとdisplay_errors)設定したい場合は ; で区切っても改行で区切っても動いた。