26/09/2012

PHP - Mostrar erros no Linux

Depois de instalar o LAMP.
Abra o arquivo /etc/php5/apache2/php.ini e altere os valores referentes para:

; display_errors
100 Default Value: On
101 Development Value: On
102 ; Production Value: Off
103 
104 ; display_startup_errors
105 Default Value: On
106 Development Value: On
107 ; Production Value: Off
108 
109 ; error_reporting
110 Default Value: E_ALL & ~E_NOTICE
111 Development Value: E_ALL | E_STRICT 
112 ; Production Value: E_ALL & ~E_DEPRECATED
113 
114 ; html_errors 
115 Default Value: On 
116 Development Value: On 
117 ; Production value: Off
118 
119 ; log_errors
120 Default Value: On 
121 Development Value: On 
122 ; Production Value: On


Fonte: http://stackoverflow.com/questions/5050426/php-errors-not-being-displayed-in-the-browser-ubuntu-10-10

Nenhum comentário:

Postar um comentário