check error logs for apache 2 code example Example: view log apache 2 sudo tail /var/log/apache2/error.log