Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
から display_errors を無効にしようとしていますが、.htaccessこれをファイルに貼り付けるだけ.htaccessで、サイト全体がクラッシュします。
.htaccess
php_flag display_errors off php_flag log_errors on
これは、php が apache モジュールとしてコンパイルされていて、それらを変更する権限がある場合にのみ機能します。
php >= 5.3 を使用している場合は、より良い解決策があり.user.iniます。ドキュメント ルートにファイルを作成し、通常の ini 構文を使用して構成をカスタマイズします。
.user.ini