[GeoNetwork-users] Installation under Apache2

Hello,

Thanks very much for your answer. I’m using Linux but I’ll try to do the same, if someone has made it possible in Debian or Linux I would appreciate to know how.
I saw that one line of the conf was worker.worker1.port=8009, is that possible to run everything on port 80 or the servlet requires an exclusive port?
Thanks,
Felipe Costa

Stefano Giaccio sgiaccio@anonymised.com escreveu:

Here is a list of steps that should make GeoNetwork work on Apache2 and mod_jk, at least with Windows:

  • Download latest version of mod_jk 1.2 from http://tomcat.apache.org/download-connectors.cgi (mod_jk-apache-2.0.55.so or something like this)

  • Rename it mod_jk.so

  • Move it into Apache2/modules directory

  • Open Apache2/conf/httpd.conf in a text editor

  • Uncomment the following line:

#LoadModule rewrite_module modules/mod_rewrite.so

removing the leading #

  • And add the following line at the end:

include conf/geonetwork.conf

  • Create the file conf/geonetwork.conf

  • Write the following text into it:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /geonetwork/* worker1
JkRequestLogFormat “%w %V %T”
RewriteEngine on
RewriteRule ^/geonetwork$ /geonetwork/ [R]

  • Create the file conf/workers.properties
  • Write the following text into it:

Define 1 real worker using ajp13

worker.list=worker1

Set properties for worker1 (ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.recycle_timeout=300

  • Restart Apache 2

Let me know how it goes!

Bye
Stefano

On Aug 2, 2006, at 4:23 PM, Felipe Costa wrote:

Hello List,

Has someone ever installed Geonetwork under Apache2? Let me explain…
I have already installed geonetwork with Tomcat and Jetty, but now I want to run with Apache2 and Geonetwork as a servlet with mod_jk connector.
Any ideas of how to do that?
Thanks in advance,
Felipe Costa

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas!

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


Yahoo! Search
Música para ver e ouvir: You’re Beautiful, do James Blunt

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


O Yahoo! está de cara nova. Venha conferir!

Hi Felipe,
I’m running Geonetwork on Fedora Core 3 / Apache 2 / Tomcat 5.5.12.

/etc/httpd/conf/httpd.conf contains the following:
In the LoadModules section:
LoadModule jk_module modules/mod_jk.so

At the end of section 2:

mod_jk settings

JkWorkersFile “/usr/local/tomcat/conf/jk/workers.properties”
JkLogFile “/usr/local/tomcat/logs/mod_jk.log”

JkLogLevel error

JkMount /jsp-examples ajp13w

JkMount /jsp-examples/* ajp13w

JkMount /geonetwork ajp13w
JkMount /geonetwork/* ajp13w

end of mod_jk settings

My tomcat is installed in /usr/local/apache-tomcat-5.5.12 but I have a symbolic link to it i.e. /usr/local/tomcat, hence the paths above.
I didn’t use the mod_rewrite, but it’s a good idea.

/usr/local/tomcat/conf/jk/workers.properties looks as follows:

This file provides minimal jk configuration properties needed to

connect to Tomcat.

The workers that jk should create and work with

workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/java/java

ps=/

worker.list=ajp13w

Defining a worker named ajp13w and of type ajp13

Note that the name and the type do not have to match.

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

This is based on the minimal config. My java is in /usr/java/j2sdk1.4.2_10 but there is a symlink for it /usr/java/java.

Hope this helps somewhat.

I’m in the process of installing Geonetwork 2.0.2 with Apache 2.2.2 / Tomcat 5.5.17 / Java 1.5.0_07-b03 on Fedora Core 5 in VMware Server 1.0.0. This gets a bit tricky, but I think I got it to work, without jk_mod yet.

Cheers,
Paul

Paul Grzeszczak
GIS Analyst / Programmer
pgrzeszc@anonymised.com
tel. +1-519-253-3000 ext. 2531
Memorial Hall 211B
Dept. of Earth Sciences
University of Windsor

Felipe Costa <fsc7@anonymised.com>
Sent by: geonetwork-users-bounces@anonymised.comsts.sourceforge.net

2006-08-02 11:20 AM

To

GeoNetwork-users@anonymised.comet

cc

Subject

Re: [GeoNetwork-users] Installation under Apache2

Hello,

Thanks very much for your answer. I’m using Linux but I’ll try to do the same, if someone has made it possible in Debian or Linux I would appreciate to know how.
I saw that one line of the conf was worker.worker1.port=8009, is that possible to run everything on port 80 or the servlet requires an exclusive port?
Thanks,
Felipe Costa

Stefano Giaccio sgiaccio@anonymised.com escreveu:
Here is a list of steps that should make GeoNetwork work on Apache2 and mod_jk, at least with Windows:

  • Download latest version of mod_jk 1.2 from http://tomcat.apache.org/download-connectors.cgi (mod_jk-apache-2.0.55.so or something like this)

  • Rename it mod_jk.so

  • Move it into Apache2/modules directory

  • Open Apache2/conf/httpd.conf in a text editor

  • Uncomment the following line:

#LoadModule rewrite_module modules/mod_rewrite.so

removing the leading #

  • And add the following line at the end:

include conf/geonetwork.conf

  • Create the file conf/geonetwork.conf

  • Write the following text into it:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /geonetwork/* worker1
JkRequestLogFormat “%w %V %T”
RewriteEngine on
RewriteRule ^/geonetwork$ /geonetwork/ [R]

  • Create the file conf/workers.properties
  • Write the following text into it:

Define 1 real worker using ajp13

worker.list=worker1

Set properties for worker1 (ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.recycle_timeout=300

  • Restart Apache 2

Let me know how it goes!

Bye
Stefano

On Aug 2, 2006, at 4:23 PM, Felipe Costa wrote:

Hello List,

Has someone ever installed Geonetwork under Apache2? Let me explain…
I have already installed geonetwork with Tomcat and Jetty, but now I want to run with Apache2 and Geonetwork as a servlet with mod_jk connector.
Any ideas of how to do that?
Thanks in advance,
Felipe Costa

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas!

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


Yahoo! Search
Música para ver e ouvir: You’re Beautiful, do James Blunt

"Se o Senhor não constrói a casa, em vão trabalham os construtores” (Sl 127,1)


O Yahoo! está de cara nova. Venha conferir!-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork