Debugging Issues with Apache2

By May 20, 2019Apache

Knowing the exact issue is important.


1
2
3
4
5
apachectl configtest
journalctl -xe
systemctl status apache2.service
sudo nano /var/log/apache2/error.log
netstat -ltp | grep :80 # To know if a program is occupying port 80

FYI: Apache modules reside in following. Sometimes we have mismatch of module especially after switching php version. If the loaded version is different and available version is different, that causes error too.


1
/usr/lib/apache2/modules

priyankmaniar

Author priyankmaniar

More posts by priyankmaniar