.htaccess 파일에서 모든 PHP 오류를 해제하고 싶습니다. 나는 stackoverflow 질문에 따라 노력했다.htaccess 파일 아파치 허용
Enabling error display in php via htaccess only
htaccess로 파일 :
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_value error_log /home/petstail/public_html/PHP_errors.log
그리고 내 httpd.conf 파일에서, 내가 디렉토리와 같은 넣어 가상 호스트에,
<Directory "/home/website/public_html">
Options All MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
오류 로그 :
Invalid command 'php_flag', perhaps misspelled or defined by a module not
included in the server configuration
하지만 여전히 내부 서버 오류 (500)가 나타납니다. 어떻게해야합니까? 어떤 설정이 누락 되었습니까?
감사합니다.
서버를 다시 시작 했습니까? – hek2mgl
먼저 Apache error.log를 점검하여 500이오고있는 이유를 확인하십시오. – anubhava
내 편집을 확인하십시오 .. –