URGENT: Problem after installatioN!

iscommunity

Verified User
Joined
Apr 10, 2008
Messages
11
Hi all.. I just installed DA on a centos 5.0 server, license is centos 5.0 too.

I've done the standard install, but now the DA doesnt work. No errors, but it just doesn't work!

[root@Astrid ~]# /etc/init.d/directadmin restart
Stopping DirectAdmin: [ OK ]
Starting DirectAdmin: [ OK ]
[root@Astrid ~]# file /var/lock/subsys/directadmin
/var/lock/subsys/directadmin: empty
[root@Astrid ~]#

It doesnt give problems, but accessing the :2222 and the IP main adress does not work.

Could anyone please save me!!
 
after you type:

/etc/init.d/directadmin restart

ps aux


do you see directadmin running as a process?
 
nobody 11781 0.0 0.1 8236 1272 ? Ss 05:39 0:00 /usr/local/directadmin/directadmin d
nobody 11783 0.0 0.0 8236 544 ? S 05:39 0:00 /usr/local/directadmin/directadmin d
nobody 11784 0.0 0.0 8236 544 ? S 05:39 0:00 /usr/local/directadmin/directadmin d
nobody 11785 0.0 0.0 8236 544 ? S 05:39 0:00 /usr/local/directadmin/directadmin d
nobody 11786 0.0 0.0 8236 544 ? S 05:39 0:00 /usr/local/directadmin/directadmin d
nobody 11787 0.0 0.0 8236 544 ? S 05:39 0:00 /usr/local/directadmin/directadmin d


Yes
 
then try to run:

lsof -i :2222

to see if directadmin is listening on port 2222 or not
 
i also did this

[root@Astrid ~]# /etc/init.d/directadmin restart
Stopping DirectAdmin: [ OK ]
Starting DirectAdmin: [ OK ]
[root@Astrid ~]# /sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]


but it seems not to make any difference
 
[root@Astrid ~]# lsof -i :2222
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
directadm 13485 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)
directadm 13487 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)
directadm 13488 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)
directadm 13489 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)
directadm 13490 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)
directadm 13491 nobody 0u IPv4 41256 TCP *:rockwell-csp2 (LISTEN)

What could it be?
 
Last edited:
[root@Astrid ~]# wget http://localhost:2222
--07:29:50-- http://localhost:2222/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:2222... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

[ <=> ] 1,019 --.-K/s in 0s

07:29:50 (36.1 MB/s) - `index.html' saved [1019]
 
<html>
<head>
<title>DirectAdmin Login</title>
<style>
*{ FONT-SIZE: 8pt; FONT-FAMILY: verdana; } b { FONT-WEIGHT: bold; } .listtitle { BACKGROUND: #425984; COLOR: #EEEEEE; white-space: nowrap; } td.list { BACKGROUND: #EEEEEE; white-space: nowrap; } </style>
</head>
<body onload="document.form.username.focus();if(document.form.referer.value.indexOf('#')==-1)document.form.referer.value+=location.hash;">
<center><br><br><br><br>
<h1>DirectAdmin Login Page</h1>
<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=2>Please enter your Username and Password</td></tr>
<form action="/CMD_LOGIN" method="POST" name="form">
<input type=hidden name=referer value="/">
<tr><td class=list align=right>Username:</td><td class=list><input type=text name=username></td></tr>
<tr><td class=list align=right>Password:</td><td class=list><input type=password name=password></td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit value='Login'></td></tr>
</form>
</table>
</center></body></html>
 
As you can see from the output, you connect to directadmin locally, you can connect to the directadmin page normailly.

So directadmin is working normally.

ie. it is more likely a networking problem

1. check to see if your firewall on the server allow tcp port 2222 incoming connection.

2. If you connect from your office to your server, make sure your office do not block outgoing tcp port 2222.

Since you had not give me your server ip / domain name, so i am unable to test the connection from my office.

But I am quite sure it is a networking problem...:)
 
It seems i can't even ping your server:)


1. from the server, can you ping to outside world like yahoo.com etc...

2. are you working on your server using ssh remotely or in front of the server?

try to

cat /etc/sysconfig/iptables

to see if port 80 and port 2222 is allowed incoming
 
forgot your OS is different than mine, and file location may be different

you may run

iptables -L

to see your iptable rules
 
[root@Astrid ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
 
it seems you need to open more ports,
Following is some of the ports opened on my iptables on incoming side:
tcp 80
tcp 443
tcp 21
tcp 25
tcp and udp 53
tcp 110
tcp 143
tcp 587
tcp 22
tcp 2222


the above ports are needed for http, https,ftp,smtp,dns,pop3,imap,smtp auth, ssh, directadmin


make sure you add the new rules before your last reject rules
 
Back
Top