check error log apache2 code example
Example 1: view log apache 2
sudo tail /var/log/apache2/error.log
Example 2: apache error log
sudo tail -100 /var/log/apache2/error.log
Example 3: see apache error log
sudo tail -100 /var/log/apache2/access.log