Re: [PHP] re: More Error Reporting Problems

2012-01-02 Thread Marco Behnke



Am 30.12.2011 17:11, schrieb Floyd Resler:

On Dec 30, 2011, at 11:05 AM, Matt Graham wrote:

I'm still not sure why they aren't displaying.  But as long as I have a place 
to find them I'm cool with that.



Maybe anything in your web application overrides display_errors?

--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz



smime.p7s
Description: S/MIME Kryptografische Unterschrift


Re: [PHP] re: More Error Reporting Problems

2011-12-30 Thread Floyd Resler
On Dec 30, 2011, at 11:05 AM, Matt Graham wrote:

> From: Floyd Resler 
>> I'm still  having problems with error reporting and I'm not sure why.
>> php.ini section:
>> error_reporting = E_ALL & ~E_DEPRECATED
>> display_errors = On
>> log_errors = On
>> error_log = /var/log/php_errors.log
> 
>> Errors are neither getting displayed nor recorded in my error log. 
> 
> Check that /var/log/php_errors.log exists and that the user that your
> webserver is running as has permission to write to that file.  "touch
> /var/log/php_errors.log && chown apache:apache /var/log/php_errors.log" as
> root may work; modify user/group if necessary.  /var/log is always owned by
> root and is 755, meaning that the webserver user doesn't have permission to
> create that file if it doesn't exist.
> 
Goodness, I can't believe I missed something as simple as file permissions!  
That's why they weren't getting written to the log!  I'm still not sure why 
they aren't displaying.  But as long as I have a place to find them I'm cool 
with that.

Thanks!
Floyd


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] re: More Error Reporting Problems

2011-12-30 Thread Matt Graham
From: Floyd Resler 
> I'm still  having problems with error reporting and I'm not sure why.
> php.ini section:
> error_reporting = E_ALL & ~E_DEPRECATED
> display_errors = On
> log_errors = On
> error_log = /var/log/php_errors.log

> Errors are neither getting displayed nor recorded in my error log. 

Check that /var/log/php_errors.log exists and that the user that your
webserver is running as has permission to write to that file.  "touch
/var/log/php_errors.log && chown apache:apache /var/log/php_errors.log" as
root may work; modify user/group if necessary.  /var/log is always owned by
root and is 755, meaning that the webserver user doesn't have permission to
create that file if it doesn't exist.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php