I develop a local script quick & dirty and let it run on the command line. I have no server installed.
My php ini lies at /usr/local/etc/php/7.4/php.ini
I activated the error log by using
error_reporting = E_ALL
display_errors = On
log_errors = On
error_log = /var/log/php_errors.log
I saved the changes but don't find a log written at /var/log/php_errors.log
What do I have to do to get my errors logged in a file?
Output of
$ php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File: /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.4/conf.d/ext-opcache.ini
$ which php
/usr/local/bin/php