PHP through the CLI and HTTP request use a different php.ini configuration. In your case, I suspect if you are dealing with php.ini used by the PHP CLI. Can you try to do:
$ php -i >> info.txt
This will save your phpinfo () in the local info.txt file. Then open the file and find the parameter " Loaded configuration file "), which should indicate the absolute path to the downloaded php.ini file.
If everything is ok, just run the CLI command to check if the error_log function works as expected. Run through CLI:
$ php -r "error_log('test error', 3, './errors.log')"
and you should find in the same errors.log directory file with the specified test error. If you cannot find it, you will probably need to update your php.ini settings or set the correct write, process or file permissions.
source share