When having an issue with loading a website but the Apache ports are showing as closed instead of filtered check and see if the following command shows only listening to localhost:
ss -lntp|egrep http
An example of the apache only listening to localhost can be shown like this:
[08:18:16 server root@94103102 ~]cPs# ss -lntp|egrep http
LISTEN 0 128 127.0.0.1:80 *:* users:(("httpd",pid=13237,fd=3),("httpd",pid=12864,fd=3),("httpd",pid=12863,fd=3),("httpd",pid=12862,fd=3),("httpd",pid=12861,fd=3),("httpd",pid=12860,fd=3),("httpd",pid=12854,fd=3))
LISTEN 0 128 127.0.0.1:443 *:* users:(("httpd",pid=13237,fd=5),("httpd",pid=12864,fd=5),("httpd",pid=12863,fd=5),("httpd",pid=12862,fd=5),("httpd",pid=12861,fd=5),("httpd",pid=12860,fd=5),("httpd",pid=12854,fd=5))
LISTEN 0 128 [::]:80 [::]:* users:(("httpd",pid=13237,fd=4),("httpd",pid=12864,fd=4),("httpd",pid=12863,fd=4),("httpd",pid=12862,fd=4),("httpd",pid=12861,fd=4),("httpd",pid=12860,fd=4),("httpd",pid=12854,fd=4))
LISTEN 0 128 [::]:443 [::]:* users:(("httpd",pid=13237,fd=6),("httpd",pid=12864,fd=6),("httpd",pid=12863,fd=6),("httpd",pid=12862,fd=6),("httpd",pid=12861,fd=6),("httpd",pid=12860,fd=6),("httpd",pid=12854,fd=6))
This means that the Apache Reserved IPs is checked, you can uncheck these and save them inside of WHM Home >> Apache Configuration >> Reserve IPs Editor and make sure that all the IPs are unchecked.
Once they are unchecked you should be able to run the above command and get a similar output to this:
LISTEN 0 128 *:80 *:* users:(("httpd",pid=17945,fd=3),("httpd",pid=17944,fd=3),("httpd",pid=17943,fd=3),("httpd",pid=17942,fd=3),("httpd",pid=17941,fd=3),("httpd",pid=17937,fd=3))
LISTEN 0 128 *:443 *:* users:(("httpd",pid=17945,fd=5),("httpd",pid=17944,fd=5),("httpd",pid=17943,fd=5),("httpd",pid=17942,fd=5),("httpd",pid=17941,fd=5),("httpd",pid=17937,fd=5))
LISTEN 0 128 [::]:80 [::]:* users:(("httpd",pid=17945,fd=4),("httpd",pid=17944,fd=4),("httpd",pid=17943,fd=4),("httpd",pid=17942,fd=4),("httpd",pid=17941,fd=4),("httpd",pid=17937,fd=4))
LISTEN 0 128 [::]:443 [::]:* users:(("httpd",pid=17945,fd=6),("httpd",pid=17944,fd=6),("httpd",pid=17943,fd=6),("httpd",pid=17942,fd=6),("httpd",pid=17941,fd=6),("httpd",pid=17937,fd=6))
Comments
0 comments
Article is closed for comments.