<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>apache fk on LEl_FENG Blog</title><link>https://blog.xpdbk.com/en/tags/apache-fk/</link><description>Recent content in apache fk on LEl_FENG Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>LEl_FENG Copyright</copyright><lastBuildDate>Fri, 11 Nov 2022 00:00:00 +0700</lastBuildDate><atom:link href="https://blog.xpdbk.com/en/tags/apache-fk/index.xml" rel="self" type="application/rss+xml"/><item><title>Uninstall Apache Advanced Edition</title><link>https://blog.xpdbk.com/en/posts/web-hax/</link><pubDate>Fri, 11 Nov 2022 00:00:00 +0700</pubDate><guid>https://blog.xpdbk.com/en/posts/web-hax/</guid><description>&lt;img src="https://blog.xpdbk.com/en/posts/web-hax/hax.webp" alt="Featured image of post Uninstall Apache Advanced Edition" />&lt;h1 id="uninstall-apache-advanced-edition">
&lt;a href="#uninstall-apache-advanced-edition" class="heading-anchor" aria-label="Anchor for Uninstall Apache Advanced Edition">#&lt;/a>
Uninstall Apache Advanced Edition
&lt;/h1>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR / [Geek Summary]:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Clean Slate: Completely purge redundant Apache2 services to reclaim occupied port 80/443 resources.&lt;/li>
&lt;li>Deep Scrub: Use &lt;code>apt-get --purge&lt;/code> to wipe binaries/configs and &lt;code>find | xargs rm&lt;/code> to hunt down and eliminate lingering fragments.&lt;/li>
&lt;li>Geek Goal: Clear the deck for Nginx or custom web stacks, keeping your server environment lightweight and manageable.&lt;/li>
&lt;/ul>
&lt;/blockquote>
&lt;h2 id="delete-apache">
&lt;a href="#delete-apache" class="heading-anchor" aria-label="Anchor for Delete apache">#&lt;/a>
Delete apache
&lt;/h2>
&lt;p>Apache2 is installed by default. Now uninstall this service.&lt;/p>
&lt;h2 id="1-find-web-services">
&lt;a href="#1-find-web-services" class="heading-anchor" aria-label="Anchor for 1. Find web services">#&lt;/a>
1. Find web services
&lt;/h2>
&lt;p>Use the following command:&lt;/p>
&lt;blockquote>
&lt;p>&lt;code>dpkg -l | grep apache2&lt;/code>&lt;/p>
&lt;/blockquote>
&lt;h2 id="2-delete-apache2">
&lt;a href="#2-delete-apache2" class="heading-anchor" aria-label="Anchor for 2. Delete apache2">#&lt;/a>
2. Delete apache2
&lt;/h2>
&lt;p>The deletion command is as follows:&lt;/p>
&lt;p>&lt;code>apt-get --purge remove apache2&lt;/code>&lt;/p>
&lt;p>&lt;code>apt-get --purge remove apache2-doc&lt;/code>&lt;/p>
&lt;p>&lt;code>apt-get --purge remove apache2-utils&lt;/code>&lt;/p>
&lt;p>&lt;code>apt-get --purge remove apache2-bin&lt;/code>&lt;/p>
&lt;p>&lt;code>apt-get --purge remove apache2-data&lt;/code>&lt;/p>
&lt;h2 id="3-delete-redundant-files">
&lt;a href="#3-delete-redundant-files" class="heading-anchor" aria-label="Anchor for 3. Delete redundant files">#&lt;/a>
3. &lt;strong>Delete redundant files&lt;/strong>
&lt;/h2>
&lt;p>After the above execution, execute the following command:&lt;/p>
&lt;p>&lt;code>find /etc -name &amp;quot;apache&amp;quot; |xargs rm -rf&lt;/code>&lt;/p>
&lt;p>&lt;code>rm -rf /var/www&lt;/code>&lt;/p>
&lt;p>&lt;code>rm -rf /etc/libapache2-mod-jk&lt;/code>&lt;/p>
&lt;h2 id="4-finally">
&lt;a href="#4-finally" class="heading-anchor" aria-label="Anchor for 4. Finally">#&lt;/a>
4. Finally
&lt;/h2>
&lt;p>Port 80 is released, no problem.&lt;/p></description></item></channel></rss>