Can access SSH but can't access cPanel web server

Posted by Tom on Server Fault See other posts from Server Fault or by Tom
Published on 2011-09-12T16:30:54Z Indexed on 2012/11/11 5:05 UTC
Read the original article Hit count: 407

Filed under:
|

I've built a Cent OS 6.0 vps and then i've installed the latest cPanel/WHM.

This isn't my first installation but i've noticed something weird especially that i've never used the 6.0 version.. when i tried to install cPanel, it didn't recognize wget so installed it, then cPanel said that Perl isn't installed, i've installed that and the installation went well since then.

Now, when i've tried to access the server via the browser with the IP Adress as i've used to, it didn't work, it was just loading forever, i tried the 2087 port, still the same. but SSH works.

I've also tried the commands to start the server manually but none of them worked.

How to fix that?

Edit: iptables -nL Result

root@server [~]# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
acctboth   all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
acctboth   all  --  0.0.0.0/0            0.0.0.0/0

Chain acctboth (2 references)
target     prot opt source               destination
           tcp  --  216.119.149.168      0.0.0.0/0           tcp dpt:80
           tcp  --  0.0.0.0/0            216.119.149.168     tcp spt:80
           tcp  --  216.119.149.168      0.0.0.0/0           tcp dpt:25
           tcp  --  0.0.0.0/0            216.119.149.168     tcp spt:25
           tcp  --  216.119.149.168      0.0.0.0/0           tcp dpt:110
           tcp  --  0.0.0.0/0            216.119.149.168     tcp spt:110
           icmp --  216.119.149.168      0.0.0.0/0
           icmp --  0.0.0.0/0            216.119.149.168
           tcp  --  216.119.149.168      0.0.0.0/0
           tcp  --  0.0.0.0/0            216.119.149.168
           udp  --  216.119.149.168      0.0.0.0/0
           udp  --  0.0.0.0/0            216.119.149.168
           all  --  216.119.149.168      0.0.0.0/0
           all  --  0.0.0.0/0            216.119.149.168
           all  --  0.0.0.0/0            0.0.0.0/0

© Server Fault or respective owner

Related posts about centos

Related posts about cpanel