Host address, and loggin in from a "non localhost"

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
joemapango
Posts: 11
Joined: Fri Dec 31, 2004 7:49 pm

Host address, and loggin in from a "non localhost"

Post by joemapango »

Hello All. I loaded up the live CD and ZM worked flawlessly. I purchased a video input card from one of the ad's on the website, and that worked first time also. All functions are working from the ZM "server" or localhost.

When I try to access ZM from another PC on my network I get an error. I can access the apache page, but when I go to http://my_zm_hostname_or_ip/zm I get an error,

cannot access 127.0.0.1

My question is this: How can I setup my ZM on a PC other than localhost?
I have the following in my host file
127.0.0.1 localhost zm.mydomain.com zm
10.12.0.132 zm zm.mydomain.com


Thanks for any advice you can give!

CC
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

well i dont use a host file and just enter the actual ip of the zm machine followed by /zm/

james
joemapango
Posts: 11
Joined: Fri Dec 31, 2004 7:49 pm

RE: Host address, and loggin in from a "non localhost&q

Post by joemapango »

Thanks for the comment, but that is not a solution to the problem. As I had stated, I can access the machine via IP OR HOSTNAME. I cannot access the ZM system via IP or HOSTNAME. The error I get is

The connection is refused when attempting to contact 127.0.0.1

Thanks for your reply anyway.

CC
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

the fact that your seeing an errir message 127.0.0.1 means that whatever machine your using is trying to request the info from itself which obviously it wont be able to do. What i was saying is why do you need a host file unless your trying to use a name instead of ip. If you remove the host file and try to connect via ip address only what do you get then. Also id add the last / as sometimes it stops me connecting

James
joemapango
Posts: 11
Joined: Fri Dec 31, 2004 7:49 pm

Post by joemapango »

If I connect to the PC usine the IP address (which is 10.12.0.132) I get the Apache page, same as if I was at the console. Example

http://10.12.0.132


If I connect to ZM like this:

http://10.12.0.132/zm

I get the error. Thanks for replying, but trying to access directly is not working for me. I think this has something to do with some strange apache directive statement. I have looked throught the .conf file, but I'm not an apache expert. I would gladly pay for support, but the ZM website does not list any.

Thanks again for trying to help.

Chris Curtis
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You don't have any of your paths in Options set to include the hostname/ip do you? They should all just be relative.

Phil
joemapango
Posts: 11
Joined: Fri Dec 31, 2004 7:49 pm

Post by joemapango »

Hello Phil. Thanks for your reply. I used to live CD, and installed that version onto my PC. I have made no changes to Apache/ZM. BTW, the live CD was a champ. Everything worked great. This issue is the first and only problem I have had.

CC
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Host address, and loggin in from a "non localhost&a

Post by cordel »

joemapango wrote: 127.0.0.1 localhost zm.mydomain.com zm
10.12.0.132 zm zm.mydomain.com
If the host file has been placed on zm server try dropping zm from 127.0.0.1 since it should not be in two places for two ips inthe same host file.

Also I have some more questions but I put those on the second thread you started for this same topic.

Regards,
Cordel
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Try http://10.12.0.132/zm/

Note the trailing slash.
joemapango
Posts: 11
Joined: Fri Dec 31, 2004 7:49 pm

Post by joemapango »

Thanks to rdmelin (and all of you who responded). Sometims it's the most basic things. Adding the / at the end did the trick. I'm feeling pretty foolish right now. I won't make this same fobar again!!!!



[quote="rdmelin"]Try http://10.12.0.132/zm/

Note the trailing slash.[/quote]
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i love being ignored lol

James
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Ahh, Okay if you would like to fix that problem, there is an alias in the apache config somewhere that has that trailing slash for the zm folder. If you remove it in the alias then it will not be required to add the trailing slash in your browser. This could and most likly be in /etc/httpd/conf.d/zm.conf as we had added this shortly after we started packaging zm.
Regards,
Cordel
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Hi James,
Yes I see you did mention the / in an earlier post :)

Hey Corey, remember that the Mandrake RPM is diff from the FC versions. I leave zm under /var/www/html so I don't use any alias, or any zm.conf for apache. I went back to this configuration to make it easy to upgrade an installation from source with an RPM version.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Opp's
Sorry all I forgot, and I should know better :oops:
Disregard the /etc/httpd/conf.d/zm.conf as it will not exist in the Mandrake rpm. :)
Post Reply