sudo /etc/init.d/ehcp start

Good Morning.

I had installed ehcp on my machine before, but i had reinstalled the OS and i installed ehcp again.
But now i'm having a problem. Everytime i login on ehcp i get one warning:
ehcp daemon not running !
Please run it from command/line by:
sudo /etc/init.d/ehcp start
root@r17344:~# sudo /etc/init.d/ehcp start

I typed sudo /etc/init.d/ehcp start and i get an error.
The error started with "cant connect to mysq" (it wasnt mysql). I don't know very well. And after that have the other code that i will post bellow (starting ehcp.. starting

So i typed "hostname my-hostname" and rebooted the machine.
I tried again sudo /etc/init.d/ehcp start and i get this:

starting ehcp..
root 3804 0.0 0.2 2720 1184 ? S 14:24 0:00 /bin/bash /var/www/vhosts/ehcp/
root 3864 0.0 0.2 2512 1060 pts/0 S 14:25 0:00 /bin/bash /var/www/vhosts/ehcp/
root 3958 0.0 0.2 2512 1060 pts/0 S 14:25 0:00 /bin/bash /var/www/vhosts/ehcp/
root 3983 0.0 0.2 2512 1060 pts/0 S 14:25 0:00 /bin/bash /var/www/vhosts/ehcp/
root 4008 0.0 0.2 2512 1060 pts/0 S+ 14:25 0:00 /bin/bash /var/www/vhosts/ehcp/
root 3817 0.1 2.1 23152 10420 ? S 14:24 0:00 php index.php daemon
root 3865 1.5 2.1 23156 10420 pts/0 S 14:25 0:00 php index.php daemon
root 3959 3.0 2.1 23156 10420 pts/0 S 14:25 0:00 php index.php daemon
root 3984 6.0 2.1 23156 10420 pts/0 S 14:25 0:00 php index.php daemon
root 4009 0.0 1.3 19772 6212 pts/0 R+ 14:25 0:00 php index.php daemon
root 3802 1.0 1.7 110932 8452 ? Sl 14:24 0:00 python /etc/init.d/
root 3956 6.0 1.6 20336 8044 pts/0 S 14:25 0:00 python /etc/init.d/
root 3981 11.5 1.6 20336 8044 pts/0 S 14:25 0:00 python /etc/init.d/
root 4006 0.0 0.9 6908 4388 pts/0 R+ 14:25 0:00 python /etc/init.d/

But when i login i have the same warning.
Can you help me?

I forgot, i had typed: hostname
my etc/hostname looks like this:
my etc/hosts look like this:

# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost
# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts localhost

Where i have this: localhost
Before i had other ip localhost, so i changed the IP because my machine just has got one ip adress.
And my OS is ubunto 8.0.4

Best Regards, Guilherme Cardoso

which version of ehcp do you use ?
before ver 0.29, the error "ehcp daemon not running" may be raised accidentally, i mean faultly, because of some kind of process protection or security issue, that prevents php to see root processes..

if you use 0.29 or later, and you see that error, running ehcp with /etc/init.d/ehcp restart should fix that,
if it doesn't, then there is something more strange..

let me know your situation...

I get this:
root@r17344:~# /etc/init.d/ehcp restart
stopping ehcp..
stopping index.php daemon
stopping, python background server process
starting ehcp..
root 9114 0.0 0.2 2512 1060 pts/0 S+ 16:01 0:00 /bin/bash /var/www/vhosts/ehcp/
root 9115 0.0 0.4 13228 2324 pts/0 D+ 16:01 0:00 php index.php daemon
root 9112 0.0 0.6 4552 3132 pts/0 D+ 16:01 0:00 python /etc/init.d/

But keep not working. I think that i've 0.28, because before i use the theme of XP, the other theme had a div saying that there's a new release, 0.29, etc.
I'll try to upgrade to 0.29 to see if this error get fixed.

edit: How can i check my ehcp version? Mabe i have 0.29, because i installed it today!

yes, if you update to ehcp ver 0.29, i think that message will be replaced with another warning..
i guess that you server has some kind of security.. which prevents apache daemon from seeing ehcp daemon process...

to upgrade, just copy new ehcp files (except config.php) onto your ehcp files, then restart ehcp daemon.
you may also backup your files and ehcp db before upgrade, in case you need to turn back..

i had upgraded, but the warning keeps appearing:
it seems that this process is not able to see all processes, so, i cannot check if ehcp daemon is running...This does not mean an error, you only need to check your ehcp daemon manually

this is my listening of operations (from ehcp admin)
id op status tarih try info info2 action
1 daemonftp ok 2009-01-31 14:07:41 0 /var/www/vhosts/sw0001 add
2 daemonftp ok 2009-01-31 14:09:23 0 /var/www/vhosts/sw0001 active
3 loadconfig ok 2009-01-31 16:40:53 0
4 loadconfig ok 2009-01-31 16:41:23 0
5 loadconfig ok 2009-01-31 16:42:46 0
Record Count:5

edit: it's fixed now. the warning keep appearing but the ehcp is running with no problems.
thanks for the help :)

nice, nice to hear that you managed it to run,
as I said before, warning changed to another one, which says like only " i cannot check daemon, you should check it manually..." ... this is some different then previous warning.. this is normal...

if you need further/other help, write here again,

see you