We had Apache web server on Ubuntu 18.04 server. After our developers decided to use NGINX, we remove Apache and install NGINX. I had remove Apache with: - apt remove ... - systemctl stop apache2 - systemctl disable apache2 - check if something exists in /etc/systemd/apache* (nothing was there).
It works as it should, but I noticed the next lines in the log:
-- Reboot --
Jun 11 09:33:28 ela1 systemd[1]: Starting LSB: Apache2 web server...
Jun 11 09:33:28 ela1 apache2[892]: /etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
Jun 11 09:33:29 ela1 apache2[892]: /etc/init.d/apache2: 57: .: Can't open /etc/apache2/envvars
Jun 11 09:33:29 ela1 systemd[1]: Started LSB: Apache2 web server.
Any idea how to get rid of Apache?
Try to purge it with:
or
Usually if you want to remove package and config files your should use purge. The best way to remove package and its configuration files and dependencies system wide is to use
sudo apt-get --purge autoremove