Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Ports clash: access to localhost refused

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
gcyoung
Apprentice
Apprentice
Posts: 179
Joined: Wed Jul 04, 2007 11:05 am
Location: England

Ports clash: access to localhost refused

  • Quote

Post by gcyoung » Thu Dec 21, 2023 9:38 am

Various updates have led to an installation of both apache2 and nginx on my computer. The result is a clash between webservers apache2 and nginx. Both want to listen on localhost and the end result is that cups can no longer access localhost, and systemd cannot load apache2.

I do not have much understanding of the management of ports, but do understand they can be managed, if one knows what one is doing. I don't!.
Can any wiser and more informed person advise me on:

1: whether it is really necessary to have both of these web servers installed,
and:-
2:If both are needed, how to change the port settings to enable both programs to function and cups to run.
and:
3: If only one is required, which is preferred.
Top
sMueggli
l33t
l33t
Posts: 627
Joined: Sat Sep 03, 2022 9:22 am

  • Quote

Post by sMueggli » Thu Dec 21, 2023 9:51 am

Normally it is not needed to have a webserver installed. If you do not know how to configure a webserver, then you should remove it from the system.

If you need a webserver it is enough to have one webserver. It is also possible to have several webservers installed and running at the same time, if they are configured accordingly.

Please explain what you want to do (and not how you wanted it to do)[/code].

For now I recommend you to disable nginx or apache2 (disable the webserver you installed last).
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Dec 21, 2023 4:29 pm

Start with trying to avoid the problem: post the output of emerge --pretend --verbose --depclean www-servers/apache www-servers-nginx. This will tell us whether you even need both. You may find that there is a way to avoid keeping both installed. If you need to keep both installed, then as sMueggli says, please explain how you ended up here.
Top
gcyoung
Apprentice
Apprentice
Posts: 179
Joined: Wed Jul 04, 2007 11:05 am
Location: England

Ports clash: access to localhost refused

  • Quote

Post by gcyoung » Mon Dec 25, 2023 10:24 am

I have read up quite a bit now on the subject of web-servers, and realised it can be quite complex. This resulted in my removal and masking of nginx. I found it appeared to make no difference to the use of my installed system. I had not conciously installed it; it just came as part of a routine update.

SMueggli's responses to my query have confirmed my actions. Many thanks for your advice. From my point of view I think the subject can now be closed.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy