An optimisation/tweaks addition: apache2 service

11 views
Skip to first unread message

Dan Hawson

unread,
Jul 16, 2026, 6:35:27 AM (5 days ago) Jul 16
to Errors in Easylinuxtipsproject
(Apologies if this duplicates my earlier post but I'm trying to submit this again since I can't see my previous message)

Thanks for the great set of guidance and tips.

I've belatedly discovered that, at least in linux mint 22.1, by default, it runs an apache webserver, serving a placeholder web page for connections to 127.0.0.1:80.  Since this results in a few processes that use up a small amount of memory (around 15MiB) and adds to the set of startup services, and since serving local web pages is something I suspect plenty of users have no need for, it seems like a good candidate for a mention somewhere in this guide's optimisation tips (and is something I don't remember reading when last following them... apologies if this is already covered).

The service could be stopped from auto-starting -
  sudo systemctl disable apache2
and even the apache2 webserver packages could be removed entirely -
  sudo apt remove apache2*

Beheerder Computertip

unread,
Jul 16, 2026, 6:39:26 AM (5 days ago) Jul 16
to Errors in Easylinuxtipsproject
Well, there's no apache2 installed in my system (Mint 22.3)....

Op donderdag 16 juli 2026 om 12:35:27 UTC+2 schreef Dan Hawson:

Dan Hawson

unread,
Jul 18, 2026, 4:59:48 AM (3 days ago) Jul 18
to Errors in Easylinuxtipsproject
That's interesting.  I certainly didn't explicitly install the apache2 package (I've no wish for a local web server) so I now wonder if it came along indirectly as a result of something else.

Now that I've removed it, I'm not sure how reliable this is but -
  aptitude why apache2
suggests it's an indirect result of installing 'git-all', which is something I have explicitly done, so this looks like a small issue of my own doing.

I suspect installing git tools is fairly common.  It's seems unfortunate that this would automatically have the indirect side-effect (via a dependency on apache2) of creating a few startup processes for this dummy web page server.  Still, I don't think any of this is applicable to what's currently in the guide ... but maybe if it does ever broaden into tweaks/optimisations for other common tools/packages like git (kind of like how there's plenty of firefox notes and optimisations), then, it might one day be worth adding a little one liner note to disable the pointless local webserver that might automatically start as an unintended result of installing git.
Reply all
Reply to author
Forward
0 new messages