centos 8 read apache log code example Example: view log apache 2 sudo tail /var/log/apache2/error.log