Centos 7 completely remove apache (httpd)
Posted: 2021 Aug 12, 12:35
Code: Select all
rpm -qa "httpd"
yum list installed "httpd*"
yum remove "httpd*" -y
rm -rf /var/www
rm -rf /etc/httpd
rm -rf /usr/lib64/httpd
userdel -r apache
Check if it's really removed:
Code: Select all
grep "apache" /etc/passwd
systemctl status httpd