How to check error log in Apache/LAMP?

First login to your server using ssh

A. ssh phpmind@phpmind.com
B. Enter proper password

Then switch back to the root and use this command.

Benefit of “-f” option is as you hit your php page in browser terminal will auto refresh errors and you can see most recent errors.

tail -f /var/log/apache2/phpmind.com-error.log

Your Path may be diffrent! I have different sub domains parked in my server. So this is my error log path in LAMP.

Hope it will work for you.

Share

One thought on “How to check error log in Apache/LAMP?

  1. vikram

    Best use of it, admin monitoring the log where he can track the error as its thrown. I think linux admin do that 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *