Ask Your Question
0

Apache doesn't show me PHP errors

asked 2017-12-08 04:28:19 -0500

enriquerene gravatar image

I already change /etc/php.ini configurations... to be honest, I just erase the ; at beginning of lines as bellow

 display_errors
   Default Value: On
;   Development Value: On
;   Production Value: Off

 display_startup_errors
   Default Value: Off
;   Development Value: On
;   Production Value: Off

 error_reporting
   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
;   Development Value: E_ALL
;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

 html_errors
   Default Value: On
;   Development Value: On
;   Production value: On

 log_errors
   Default Value: On
;   Development Value: On
;   Production Value: On

Even my changes, when I run some php wrong php script the page remains either entirely blank or in some parts of that, but no errors messages are displayed. How can I turn it on?

Thanks in advance :)

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-12-09 01:15:58 -0500

remi gravatar image

updated 2017-12-09 01:18:30 -0500

Please read Fedora 27: changes in httpd and php

Answer in §5.5 error_log

P.S. if you have really altered the "Default value" lines, you have to revert the changes, as these are really comments, and should be kept as comment. php.ini is the worst place for PHP configuration.

edit flag offensive delete link more

Comments

My Fedora version is 26

enriquerene gravatar imageenriquerene ( 2017-12-10 08:30:31 -0500 )edit

BTW, change in the comment is not the correct way. Default value (logerrors = On) record error in /var/log/httpd/errorlog.

remi gravatar imageremi ( 2017-12-10 11:33:19 -0500 )edit
0

answered 2017-12-11 16:31:11 -0500

Are you sure your User/Chmod settings are correct and are allowing to overwrite / save the change? Make sure the file in fact has been changed without the ; semi-colon in Vim or whatever your using. Otherwise, it's being overwritten by another php.ini setting or restart the server. Sorry just the basics.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-12-08 04:28:19 -0500

Seen: 948 times

Last updated: Dec 09 '17