filmov
tv
How To un Install / remove the Apache Web Server on Ubuntu
Показать описание
The Apache HTTP server is the most widely-used web server in the world. It provides many powerful features including dynamically loadable modules.
Before we begin this tutorial, we should have a regular,non-root user with sudo privileges configured on the server. Additionally we will enable a basic firewall to block non-essential ports.
Stop apache2.
sudo service apache2 stop
Uninstall Apache2 and its dependent packages.
sudo apt-get purge apache2 apache2*
Use autoremove option to get rid of other dependencies.
sudo apt-get autoremove
Check whether there are any configuration files that have not been removed.
whereis apache2
If you get a response as follows apache2: /etc/apache2 remove the directory and existing configuration files.
sudo rm -rf /etc/apache2
Before we begin this tutorial, we should have a regular,non-root user with sudo privileges configured on the server. Additionally we will enable a basic firewall to block non-essential ports.
Stop apache2.
sudo service apache2 stop
Uninstall Apache2 and its dependent packages.
sudo apt-get purge apache2 apache2*
Use autoremove option to get rid of other dependencies.
sudo apt-get autoremove
Check whether there are any configuration files that have not been removed.
whereis apache2
If you get a response as follows apache2: /etc/apache2 remove the directory and existing configuration files.
sudo rm -rf /etc/apache2