Reputation: 23
I had apache2 installed on my raspberry pi 4 and was getting some strange behavior so I removed it via apt remove apache2, removed the /etc/apache2 directory and reinstalled by sudo apt-get apache2 -y.
After reinstallation the server would not start, I determine that there was no apache2.conf file in /etc/apache2.
I've tried installing and reinstalling several time to no avail. What am I doing wrong?
Upvotes: 1
Views: 1380
Reputation: 185
try
sudo apt-get purge apache2
If you just want a light-weight http server you might want to try Nginx as a replacement.
Upvotes: 2