CentOS 5 http not working and port 80 also not working
Posted: 2018/04/25 04:49:22
Hello,
Iam getting error in starting httpd in centos5.4
service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using smalservicedesk.co.in for ServerName
[FAILED]
my nameserver is ok.
I have checked many post and corrected hosts ,resolve.conf file.
There is prtoblem in port 80.
i have did follwing diagnos -
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
but iam not getting output of
[root@smalservicedesk ~]# lsof -i tcp:80
[root@smalservicedesk httpd]# lsof -Pi tcp:80 | head -3
[root@smalservicedesk httpd]#
[root@smalservicedesk httpd]# iptables -vnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2500 242K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
24 1062 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
1 52 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
81 4092 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
166K 17M REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
[root@smalservicedesk httpd]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:ndmp *:* LISTEN
tcp 0 0 localhost:5939 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:40600 *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
udp 0 0 *:kerberos-iv *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:880 *:*
udp 0 0 *:60017 *:*
udp 0 0 *:ipp *:*
udp 0 0 *:783 *:*
udp 0 0 *:ndmp *:*
udp 0 0 *:puparp *:*
i guess , port 80 is missing in http, it not working ..
how to resolve it pls guide me..
Iam getting error in starting httpd in centos5.4
service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using smalservicedesk.co.in for ServerName
[FAILED]
my nameserver is ok.
I have checked many post and corrected hosts ,resolve.conf file.
There is prtoblem in port 80.
i have did follwing diagnos -
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
but iam not getting output of
[root@smalservicedesk ~]# lsof -i tcp:80
[root@smalservicedesk httpd]# lsof -Pi tcp:80 | head -3
[root@smalservicedesk httpd]#
[root@smalservicedesk httpd]# iptables -vnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2500 242K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
24 1062 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
1 52 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
81 4092 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
166K 17M REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
[root@smalservicedesk httpd]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:ndmp *:* LISTEN
tcp 0 0 localhost:5939 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:40600 *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
udp 0 0 *:kerberos-iv *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:880 *:*
udp 0 0 *:60017 *:*
udp 0 0 *:ipp *:*
udp 0 0 *:783 *:*
udp 0 0 *:ndmp *:*
udp 0 0 *:puparp *:*
i guess , port 80 is missing in http, it not working ..
how to resolve it pls guide me..