Jump to content

Command line error logging


Recommended Posts

NEVERMIND.  Bonehead mistake with file permissions...

 

Trying to get PHP7 up and going.  Also, going between Centos6 to Centos7.  phpinfo displays the following.

 

diplay_errors off
display_startup_errors off
error_liog /var/www/php.log
error_reporting 22527
log_errors on
 
On the command line, I ran testing.php which includes a call to a function that doesn't exist.
 
the error is echo'd as I expected, but is not sent to /var/www/php.log.
 
Any thoughts why not?
 
Thanks
Edited by NotionCommotion
Link to comment
Share on other sites

How can you expect an error message when you've disable display_errors? This sounds like you're looking at the wrong configuration.

php -i | grep error_log

Also, are you sure the process even has write access to the file? I'd be surprised if you're running a CLI script under the webserver account.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.