I uninstalled apache2 using ubuntu 18.04, in order to reinstall it. I used sudo apt-get purge apache2. then i searched for the remaining apache files using Whereis apache2 and manually deleted the paths that had apache folders using sudo rm -rf and then the file's path.
I reinstalled apache, but the folders are no longer installed in etc and the other paths where i removed them from. how can I reinstall apache properly.
This guide should walk you through it: https://help.ubuntu.com/lts/serverguide/httpd.html
It should have placed new files in /etc/apache2. Did you get errors during the install?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.