sultan
sultan

Reputation: 6058

LAMP display php errors

I've installed developer's LAMP server and made changes on php.ini

display_errors On

display_startup_errors On

but it doesn't display any errors or even a little warning, what's the problem, what's wrong?

Upvotes: 3

Views: 4766

Answers (5)

Max Abramovich
Max Abramovich

Reputation: 49

I had the same problem:

  1. I changed from display_errors=Off to display_errors=On in /opt/lampp/etc/php.ini file
  2. and restarted lampp sudo /opt/lampp/lampp/restart

Upvotes: 0

Ganesh
Ganesh

Reputation: 114

change the following variables in your php.ini

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

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

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

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

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

Upvotes: 0

Maerlyn
Maerlyn

Reputation: 34105

Keep in mind that most systems have two php.ini files, one for the webserver and one for the command line. Do a phpinfo() to see which one you need to edit.

Upvotes: 3

Levon Mirzoyan
Levon Mirzoyan

Reputation: 461

Also set error_reporting to E_ALL

Upvotes: 0

tisphie
tisphie

Reputation: 41

Did you restart apache?

Upvotes: 3

Related Questions