MacPorts LAMP on OSX 10.6.3 PHP errors no longer logged

I have a LAMP server running on my MBP using MacPorts LAMP Package and Snow Leopard. Apache runs well and so do PHP5 and MySQL. I am working on a Wordpress theme and as I got the PHP white screen of death I wanted to check the php eror log. No logging there since March 15 this year. Here final log line:

[15-Mar-2010 13:06:40] PHP Warning:  file_put_contents(/opt/local/apache2/htdocs/joomla/configuration.php) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in /opt/local/apache2/htdocs/joomla/libraries/joomla/filesystem/file.php on line 298

That should not be the case. There should be log lines today. Here is PHP with error grepped:

My-MacBook-Pro:php5 me$ php -i | grep error
display_errors => STDOUT => STDOUT
display_startup_errors => Off => Off
error_append_string => no value => no value
error_log => /var/log/php-scripts.log => /var/log/php-scripts.log
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
html_errors => Off => Off
ignore_repeated_errors => Off => Off
log_errors => On => On
log_errors_max_len => 1024 => 1024
track_errors => On => On
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off

path to error log is there:
My-MacBook-Pro:log me$ pwd
/var/log
My-MacBook-Pro:log me$ ls -lh | grep php
-rw-rw-rw-    1 root    wheel   708K Mar 15 13:06 php-scripts.log

So why is it no longer logging?

rhandalthorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rhandalthorAuthor Commented:
Hmm. I created another php error and it was displayed and logged. SO why the white screen of death with any logging?
lashamCommented:
Very interesting....
If there is E_NOTICE enabled on your server and you have error of "Parse error: syntax error, unexpected symbol" white screen will appear on your browser... chack php settings and check your script if it has any code errors...

there may be ather case

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rhandalthorAuthor Commented:
I use error_reporting = E_ALL | E_STRICT now. Removed some errors and now I got rid of the white screen. Had a white screen before without any php errors nor other errors reported. Reason why is still unclear. There should have been some kind of logging...
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

lashamCommented:
Can you write your code where you think it should log some error?
rhandalthorAuthor Commented:
Well either in Apache's error log: /opt/local/apache2/logs/error_log or the PHP error log: /var/log/php-scripts.log. In neither places I found anything mentioned to explain the white screen at the time. But I guess I did not have E_STRICT added at that moment in time. Thanks for your input.
lashamCommented:
Yes , you`re right bitwise or (|) is very practical to display any kind of errors....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.