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