Page 1 of 1

Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 11:10 am
by tjdavis
Hi,

I have been trying for days to install CmapServer on my Linux Server.
(LinuxCmapServer_v5.04.02_11-03-10)

It is set up primarily as virtual host for several static IP addresses and several domains.

I am my own DNS server with nameservers. I have 5 static IP addresses -- and am trying to configure 1 of these to be outside Apache host system.

I know that somewhere I need to configure this one IP address for this one static IP/nameserver.

I used CmapServer.properties command line installation. These are the values I used for the said config id settings.

USER_INSTALL_DIR= /usr/local/IHMC_CmapServer
server.hostname=tjdavis
server.ip.address=66.76.106.146

tjdavis is the name of the server host name
blacktigermedia.com is the domain name
the nameserver is ns0.blacktigermedia.com
and the ip for this nameserver is 66.76.106.146

I am only familiar in setting up a server with its Apache settings. I have had applications installed outside Apache in the past, but they came with their auto-installation configurations. So I know it can be done -- just don't know how to do it.

The type of installation I am wanting is for password protected multiple users.

I have searched for simple recipe for installation, and haven't found it.
Can you please help me with this?

Thanks.
tjdavis

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 11:17 am
by acanas
If you have multiple IP addresses you need to bind the CmapServer to one of them. In the serverconfig.txt file, under ./bin in the directory where you installed the CmapServer, make sure you configure the following:

# Networking Configuration
#
# The bind address is the Internet address that the server and the webserver
# will be listening on for incoming requests. When not specified, the server and
# the webserver will listen on any/all local addresses (including 127.0.0.1).
#
# Unless the server and the webserver need to be configured to run in a
# multi-homed environment, it is recommended to leave this parameter empty.
#
# Example: server.bind.address = 123.123.123.1
#
server.bind.address=123.123.123.1

You may want to go through the other entries in the serverconfig.txt file, which have comments explaining each.

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 12:30 pm
by tjdavis
Thanks acanas,

I went through serverconfig.txt as you suggested and made changes.

When I go to http://www.blacktigermedia.com:8001/ -- no response
Same with http://66.76.106.146:8001/

I still cannot ping the domain (blacktigermedia.com) -- but I can the IP 66.76.106.146

Any suggestions.

tjdavis

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 12:41 pm
by acanas
You are running the nameserver on the same machine as the CmapServer, right?

From IHMC I couldn't reach your CmapServer through either www.blacktigermedia.com or through the IP address.

ns0.blacktigermedia.com and ns1.blacktigermedia.com are not answering. Seems like your problems are with your DNS setup.

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 1:48 pm
by tjdavis
thanks acanas,

I set up my DNS configuration the only way I know how - and now I can ping both blacktigermedia.com and 66.76.106.146

But still, when I go to http://www.blacktigermedia.com:8001/ -- no response
Same with http://66.76.106.146:8001/

If i go to http://www.blacktigermedia.com -- I get the Error 403 Access forbidden page as copied below:
=============================================
Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

66.76.106.146
Thu May 5 13:38:59 2011
Apache/2.2.17 (Linux/SUSE)
=============================================

I saw one post where you could not run cmapserver alongside/behind Apache2 -- but this is what I got after adjusting DNS settings.

Am I doomed to not be able to use cmaps?

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 2:02 pm
by acanas
You can run the CmapServer on the same machine as Apache, but CmapServer has its own Tomcat server integrated and it uses it for web access. Are you able to access the CmapServer using CmapTools?

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 2:24 pm
by tjdavis
Are you able to access the CmapServer using CmapTools?
no
You can run the CmapServer on the same machine as Apache, but CmapServer has its own Tomcat server integrated and it uses it for web access.
Am going to review Tomcat settings now ... I don't even know if Tomcat is running -- I have never used it.

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Thu May 05, 2011 2:37 pm
by tjdavis
I can't make heads or tails of the files in tomcat folder:

only files there are:
build.xml
LICENSE
NOTICE
RELEASE-NOTES

Am I missing any files?

tjdavis

Re: Install CmapServer on Linux Server with multiple IP & domain

Posted: Mon May 09, 2011 9:59 am
by acanas
Tomcat is installed automatically and you shouldn't have to mess with it -- you don't need to install it. Just make sure Apache and Tomcat are responding to different port #s (e.g. Apache at 80 and Tomcat, that is CmapServer, at 8001).