Apache

Apache2 Learnings | Debugging Issues with Apache2

By May 20, 2019 July 6th, 2020 No Comments

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

Mac OSX apache not starting


1
2
3
# source: https://apple.stackexchange.com/questions/79299/apache-on-osx-10-8-not-starting

sudo apachectl -T