質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.51%
nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

1回答

2993閲覧

nginx display_errorsをOnにしたい

K_T_T_K

総合スコア231

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

0クリップ

投稿2014/10/17 08:36

nginx,CentOS7のサーバを使っています。
PHPでエラーがでません。

php.iniの一部。

lang

1error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 2 3; This directive controls whether or not and where PHP will output errors, 4; notices and warnings too. Error output is very useful during development, but 5; it could be very dangerous in production environments. Depending on the code 6; which is triggering the error, sensitive information could potentially leak 7; out of your application such as database usernames and passwords or worse. 8; It's recommended that errors be logged on production servers rather than 9; having the errors sent to STDOUT. 10; Possible Values: 11; Off = Do not display any errors 12; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 13; On or stdout = Display errors to STDOUT 14; Default Value: On 15; Development Value: On 16; Production Value: Off 17; http://php.net/display-errors 18display_errors = On 19 20; The display of errors which occur during PHP's startup sequence are handled 21; separately from display_errors. PHP's default behavior is to suppress those 22; errors from clients. Turning the display of startup errors on can be useful in 23; debugging configuration problems. But, it's strongly recommended that you 24; leave this setting off on production servers. 25; Default Value: Off 26; Development Value: On 27; Production Value: Off 28; http://php.net/display-startup-errors 29display_startup_errors = On 30 31; Besides displaying errors, PHP can also log errors to locations such as a 32; server-specific log, STDERR, or a location specified by the error_log 33; directive found below. While errors should not be displayed on productions 34; servers they should still be monitored and logging is a great way to do that. 35; Default Value: Off 36; Development Value: On 37; Production Value: On 38; http://php.net/log-errors 39log_errors = On

Onになっているので、

service nginx restart
をしたのですが、エラーは出ず。
またphpinfoもOffのまま。

どなたか原因解決お願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

php-fpmなどは再起動されたでしょうか?

投稿2014/10/17 09:06

TaMaMhyu

総合スコア1356

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

K_T_T_K

2014/10/17 10:42

# sudo /etc/init.d/php-fm restart sudo: /etc/init.d/php-fm: コマンドが見つかりません となってしまいました。
TaMaMhyu

2014/10/17 13:53

php-fpmを使っているかどうかもわからなかったので曖昧な回答をしていたのですが、使っているのでしょうか? とりあえず実行したコマンド名が違っているだけだと思います。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.51%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問