special sponsors

# Accessing the PHP Error Logs

Written by: Team Lando Team Lando
Guide Tested: Yes

Seeing errors coming off a PHP app is usually very easy in Lando:

lando logs -s appserver -f

Because lando logs is actually a light wrapper around docker logs, you'll notice that you also get general server error messages and other warnings aside from PHP errors. Sometimes it can help to grep the output to isolate PHP-relevant messages:

lando logs -s appserver -f | grep 'WARNING\|PHP'

If PHP isn't running in "appserver"...

appserver is the default service name in most PHP applications on Lando. If you have PHP running in a service with a different name than appserver, simply substitute the relevant service name instead of appserver.

Have a Lando question you'd like to see as a guide? Suggest one!
Want to write a Lando guide? Learn how!