• Welcome to KonaKart Community Forum. Please login or sign up.
 

please : how to configure server.xml in tomcat...

Started by cuilim, November 22, 2009, 06:11:56 pm

Previous topic - Next topic

cuilim

Hi..

I have tried to install konakart at windows, and went with no problems ...
Now I want to konakart can run on linux. how configure server.xml in tomcat. (I only use tomcat, not using apache)

I use database postgresql, database name : konakart, user database: postgres, password abcd.

class class java in directory :
     - /home/herianto/happycorn/konakart
     - /home/herianto/happycorn/konakartadmin
     - /home/herianto/happycorn/birtviewer
     - /home/herianto/happycorn/ROOT


please you know how to setting server.xml, example :


<host >

bla bla bla

</host>


Regards,
Cuilim

greg

just use the same server.xml on Linux as you used successfully on Windows...

impiastro

This is my Tomcat linux server.xml I use for konakart webapps.
Even if I run Tomcat behind Apache I think that the server.xml configuration file is the same.
I hope it will help.

You have to change:
- <yourhostname>
- <pathtodocbase>


<Server port="10201" shutdown="SHUTDOWN">

  <GlobalNamingResources>
    <!-- Used by Manager webapp -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

<Service name="Catalina">
<Connector port="10200" protocol="AJP/1.3" emptySessionPath="true" />

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase" />

<Host name="<yourhostname>" unpackWARs="false" autoDeploy="true">

<Context path="/birtviewer" debug="0" docBase="<pathtodocbase>/birtviewer" />
<Context path="/konakart" debug="0" docBase="<pathtodocbase>/konakart" />
<Context path="/konakartadmin" debug="0" docBase="<pathtodocbase>/konakartadmin" />

</Host>
</Engine>
</Service>
</Server>