DEV Community

Mahbub Rabbani
Mahbub Rabbani

Posted on • Edited on

WordPress Error Log Not Showing with Laravel Herd

"Laravel Herd" writes logs to /Users/{user_name}/Library/Application Support/Herd/Log/php-fpm.log file.

You need to go to /Users/{user_name}/Library/Application Support/Herd/Config/fpm directory. There you will find files for different php versions. Example: [php_version]-fpm.config

Open each file and comment out
php_admin_value[error_log] = /Users/{user_name}/Library/Application
line by adding a semicolon ; in front of the line.

Example:

;php_admin_value[error_log] = /Users/{user_name}/Library/Application
Enter fullscreen mode Exit fullscreen mode

After that go to herd and stop all services and again start all services.

You should see your logs in wp-contents/debug.log file.

Source https://stackoverflow.com/a/77102145.

Top comments (0)