user2461513
user2461513

Reputation: 23

Apache config file not being installed

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

Answers (2)

Prashanth K
Prashanth K

Reputation: 1

sudo apt-get --reinstall install apache2

Upvotes: 0

BeeJayF
BeeJayF

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

Related Questions