how to see error logs in apache code example Example: view log apache 2 sudo tail /var/log/apache2/error.log