andrewt2m
a month ago
I am having difficulty with a new CentOS 9 install 

I cannot get apache to listen on all IPs

When I check the ports, I get:

Quote:

[root@tracs-test Simon]# netstat -atn |grep :80

tcp6       0      0 :::80                   :::*                    LISTEN     

[root@tracs-test Simon]# ps -ef | grep httpd |grep -v grep

root       11564       1  0 06:32 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

apache     11565   11564  0 06:32 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

apache     11566   11564  0 06:32 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

apache     11567   11564  0 06:32 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

apache     11568   11564  0 06:32 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

[root@tracs-test Simon]# netstat -an | grep LISTEN

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     

tcp        0      0 127.0.0.1:5910          0.0.0.0:*               LISTEN     

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     

tcp6       0      0 :::80                   :::*                    LISTEN     

tcp6       0      0 :::22                   :::*                    LISTEN     

tcp6       0      0 ::1:5910                :::*                    LISTEN     

tcp6       0      0 ::1:3350                :::*                    LISTEN     

tcp6       0      0 :::3306                 :::*                    LISTEN     

tcp6       0      0 :::3389                 :::*                    LISTEN     

tcp6       0      0 ::1:631                 :::*                    LISTEN     

unix  2      [ ACC ]     STREAM     LISTENING     23692    @/tmp/.ICE-unix/1555

unix  2      [ ACC ]     STREAM     LISTENING     20599    /var/run/lsm/ipc/sim

unix  2      [ ACC ]     STREAM     LISTENING     20600    /var/run/lsm/ipc/simc

unix  2      [ ACC ]     STREAM     LISTENING     26476    @/tmp/.ICE-unix/3027

unix  2      [ ACC ]     STREAM     LISTENING     28898    /run/user/1001/systemd/private

unix  2      [ ACC ]     STREAM     LISTENING     23637    /run/user/1000/systemd/private

unix  2      [ ACC ]     STREAM     LISTENING     28908    /run/user/1001/bus

unix  2      [ ACC ]     STREAM     LISTENING     22766    /run/user/1000/bus

unix  2      [ ACC ]     STREAM     LISTENING     22893    @/tmp/.X11-unix/X0

unix  2      [ ACC ]     STREAM     LISTENING     22895    @/tmp/.X11-unix/X1

unix  2      [ ACC ]     STREAM     LISTENING     28910    /run/user/1001/pulse/native

unix  2      [ ACC ]     STREAM     LISTENING     22768    /run/user/1000/pulse/native

unix  2      [ ACC ]     STREAM     LISTENING     28912    /run/user/1001/pipewire-0

unix  2      [ ACC ]     STREAM     LISTENING     22770    /run/user/1000/pipewire-0

unix  2      [ ACC ]     STREAM     LISTENING     21972    /run/user/1000/keyring/control

unix  2      [ ACC ]     STREAM     LISTENING     23693    /tmp/.ICE-unix/1555

unix  2      [ ACC ]     STREAM     LISTENING     11245    /run/systemd/journal/stdout

unix  2      [ ACC ]     STREAM     LISTENING     30648    /run/user/0/gnupg/d.rw35a3wcth45h7ype6ibtf71/S.gpg-agent

unix  2      [ ACC ]     STREAM     LISTENING     30649    /run/user/0/gnupg/d.rw35a3wcth45h7ype6ibtf71/S.gpg-agent.extra

unix  2      [ ACC ]     STREAM     LISTENING     30650    /run/user/0/gnupg/d.rw35a3wcth45h7ype6ibtf71/S.gpg-agent.browser

unix  2      [ ACC ]     STREAM     LISTENING     30651    /run/user/0/gnupg/d.rw35a3wcth45h7ype6ibtf71/S.gpg-agent.ssh

unix  2      [ ACC ]     STREAM     LISTENING     32387    /run/user/0/gnupg/d.rw35a3wcth45h7ype6ibtf71/S.scdaemon

unix  2      [ ACC ]     STREAM     LISTENING     23757    /run/user/1000/keyring/ssh

unix  2      [ ACC ]     STREAM     LISTENING     26491    /run/user/1001/keyring/control

unix  2      [ ACC ]     STREAM     LISTENING     20970    /var/lib/mysql/mysql.sock

unix  2      [ ACC ]     STREAM     LISTENING     26492    /run/user/1001/keyring/ssh

unix  2      [ ACC ]     STREAM     LISTENING     23767    /run/user/1000/keyring/pkcs11

unix  2      [ ACC ]     STREAM     LISTENING     29711    /run/user/1001/keyring/pkcs11

unix  2      [ ACC ]     STREAM     LISTENING     15803    @ISCSID_UIP_ABSTRACT_NAMESPACE

unix  2      [ ACC ]     STREAM     LISTENING     22897    /run/user/1000/wayland-0

unix  2      [ ACC ]     STREAM     LISTENING     22541    /run/php-fpm/www.sock

unix  2      [ ACC ]     STREAM     LISTENING     22543    /run/php-fpm/zabbix.sock

unix  2      [ ACC ]     STREAM     LISTENING     27571    @/tmp/.X11-unix/X10

unix  2      [ ACC ]     STREAM     LISTENING     68139    /etc/httpd/run/cgisock.11564

unix  2      [ ACC ]     STREAM     LISTENING     35543    /run/user/0/gnupg/d.uqfzbezzqjx1wnm1wkudpc5q/S.gpg-agent

unix  2      [ ACC ]     STREAM     LISTENING     35544    /run/user/0/gnupg/d.uqfzbezzqjx1wnm1wkudpc5q/S.gpg-agent.extra

unix  2      [ ACC ]     STREAM     LISTENING     28412    /tmp/ssh-XXXXXXH4RXdL/agent.2892

unix  2      [ ACC ]     STREAM     LISTENING     35545    /run/user/0/gnupg/d.uqfzbezzqjx1wnm1wkudpc5q/S.gpg-agent.browser

unix  2      [ ACC ]     STREAM     LISTENING     35546    /run/user/0/gnupg/d.uqfzbezzqjx1wnm1wkudpc5q/S.gpg-agent.ssh

unix  2      [ ACC ]     STREAM     LISTENING     37204    /run/user/0/gnupg/d.uqfzbezzqjx1wnm1wkudpc5q/S.scdaemon

unix  2      [ ACC ]     STREAM     LISTENING     37262    /run/user/0/gnupg/d.sdbd8usrp4p1zstu9ob55hot/S.gpg-agent

unix  2      [ ACC ]     STREAM     LISTENING     37263    /run/user/0/gnupg/d.sdbd8usrp4p1zstu9ob55hot/S.gpg-agent.extra

unix  2      [ ACC ]     STREAM     LISTENING     37264    /run/user/0/gnupg/d.sdbd8usrp4p1zstu9ob55hot/S.gpg-agent.browser

unix  2      [ ACC ]     STREAM     LISTENING     37265    /run/user/0/gnupg/d.sdbd8usrp4p1zstu9ob55hot/S.gpg-agent.ssh

unix  2      [ ACC ]     STREAM     LISTENING     37287    /run/user/0/gnupg/d.sdbd8usrp4p1zstu9ob55hot/S.scdaemon

unix  2      [ ACC ]     STREAM     LISTENING     22894    /tmp/.X11-unix/X0

unix  2      [ ACC ]     STREAM     LISTENING     26477    /tmp/.ICE-unix/3027

unix  2      [ ACC ]     STREAM     LISTENING     21900    @/tmp/dbus-7Ovw3RoO

unix  2      [ ACC ]     STREAM     LISTENING     22896    /tmp/.X11-unix/X1

unix  2      [ ACC ]     STREAM     LISTENING     27572    /tmp/.X11-unix/X10

unix  2      [ ACC ]     STREAM     LISTENING     21901    @/tmp/dbus-qBrf1X0d

unix  2      [ ACC ]     STREAM     LISTENING     15796    /run/avahi-daemon/socket

unix  2      [ ACC ]     STREAM     LISTENING     15802    @ISCSIADM_ABSTRACT_NAMESPACE

unix  2      [ ACC ]     STREAM     LISTENING     15798    /run/cups/cups.sock

unix  2      [ ACC ]     STREAM     LISTENING     15800    /run/dbus/system_bus_socket

unix  2      [ ACC ]     STREAM     LISTENING     15804    /run/.heim_org.h5l.kcm-socket

unix  2      [ ACC ]     STREAM     LISTENING     28353    /run/xrdp/xrdpapi_10

unix  2      [ ACC ]     STREAM     LISTENING     19769    /run/systemd/private

unix  2      [ ACC ]     STREAM     LISTENING     26427    /run/xrdp/xrdp_chansrv_audio_out_socket_10

unix  2      [ ACC ]     STREAM     LISTENING     19770    /run/systemd/userdb/io.systemd.DynamicUser

unix  2      [ ACC ]     STREAM     LISTENING     26428    /run/xrdp/xrdp_chansrv_audio_in_socket_10

unix  2      [ ACC ]     STREAM     LISTENING     19771    /run/systemd/io.system.ManagedOOM

unix  2      [ ACC ]     STREAM     LISTENING     19784    /run/lvm/lvmpolld.socket

unix  2      [ ACC ]     SEQPACKET  LISTENING     19786    /run/systemd/coredump

unix  2      [ ACC ]     SEQPACKET  LISTENING     19787    /run/udev/control

unix  2      [ ACC ]     STREAM     LISTENING     23820    @/home/staff/.cache/ibus/dbus-XUFmMDR6

unix  2      [ ACC ]     STREAM     LISTENING     14265    /run/irqbalance/irqbalance755.sock

unix  2      [ ACC ]     STREAM     LISTENING     15648    /run/systemd/journal/io.systemd.journal

unix  2      [ ACC ]     STREAM     LISTENING     28384    /home/Simon/.pcsc10/pcscd.comm

unix  2      [ ACC ]     STREAM     LISTENING     26551    @/home/Simon/.cache/ibus/dbus-4q28aSvy

unix  2      [ ACC ]     STREAM     LISTENING     20096    /var/run/mcelog-client

unix  2      [ ACC ]     STREAM     LISTENING     22907    @00007

unix  2      [ ACC ]     STREAM     LISTENING     28432    @00009

So it appears to be listening on local IPv6 only.

How can Iget it to listen on all IPv4 and 6 IPs to allow remote browsers to connect?

Sponsor

Want to thank us? Use: Patreon or PayPal or Bitcoins: 12G4A52Znm5s35buKDEmKU2p2vQY69Nsyo

Protect your visitors with SSL, from $3.44

All opinions expressed within these pages are sent in by members of the public or by our staff in their spare time, and as such do not represent any opinion held by sircles.net Ltd or their partners.