Find Error Logs

A quickie …

LiquidWeb moodle server allocated from WHM. PHP set to place error logs in
directories where the error occurs.

Problem … PHP/Moodle errors may not tell you whare it errored accurately.
How to find those error_log files.

Bash shell script at the root of the moodle code:

Called: finderrorlog
Contents of above script a one liner: find ./* -name error_log

Run with source finderrorlog

would kick out as an example something like:

./admin/tool/task/cli/error_log

Now one can cat the error log via
cat ./admin/tool/task/cli/error_log

to see what’s up.