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