Where is the apache2 directory on Ubuntu 20.04?
In order to activate the Basic Auth I installed apache2-utils:
sudo apt-get update -y
sudo apt-get install -y apache2-utils
but I can't find the /etc/apache2 directory. I uninstalled and reinstalled the package and I still can't find the location of the directory. However the command
htpasswd
is working. Do you have any ideas where the directory is located? Thank you!
Based on the package list, you will not have an /etc/apache2
directory after installing the utilities. Oddly enough, you will need to install the web server itself, and probably reinstall the utilities to ensure things are properly aware of each other.
sudo apt install apache2
sudo apt install --reinstall apache2-utils