RSS

JSP

Wed 2011 at 11:58 am by Yustian M


Installation tomcat server on Linux Ubuntu ..

1. Install Java6 JVM

#apt-get install libapache2-mod-jk sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts

2. Testing Java6 in system

#java -version 

3. Install tomcat6

#install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

4. Configure webbase password tomcat manager

#vi /etc/tomcat6/tomcat-users.xml or #vi /var/lib/tomcat6/conf/tomcat-users.xml

contain:

<role rolename="manager"/>
<role rolename="admin"/>
<user name="admin" password="secret_password" roles="manager"/>

5. Start tomcat6

#/etc/init.d/tomcat6 start

6. Open tomcat manager on browser http://ipserver:8080/manager/html

7. For testing, try download example servlet page.

#wget http://simple.souther.us/SimpleServlet.war

Open page on web browser:

#http://ipserver:8080/SimpleServlet/

Change tomcat server to run on port 80..

1. Create workers.

#vi /etc/apache2/workers.properties

worker.list=yustian

worker.yustian.type=ajp13

worker.yustian.host=localhost

worker.yustian.port=8009 

2. Configure mod_jk.

#vi /etc/apache2/mods-available/jk.load 

Contain:

JkWorkersFile /etc/apache2/workers.properties

JkShmFile /var/log/apache2/mod_jk.shm

JkLogFile /var/log/apache2/mod_jk.log

JkLogLevel info

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

3. Make webserver load web extension.

#vi /etc/apache2/sites.enabled/000-default

Contain:

...
<IfModule mod_jk.c>
JkMount / yustian
JkMount /* yustian
JkUnMount /*.html yustian
JkUnMount /*.php yustian 
</IfModule>
</VirtualHost>

4. Uncomment AJP13 Protocol.

#vi /etc/tomcat6/server.xml 

Uncomment :

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

5. Restart service.

#/etc/init.d/tomcat6 restart
#/etc/init.d/apache2 restart

, , , , ,

This post was written by:

- who has written 61 posts on Yustian Blog.

Artikel ini dapat disebar,dimodifikasi,dicopy dan digunakan sebagaimana semestinya. Dengan menyantumkan nama dan referensi asli. Dan bila ingin berlangganan berita dan artikel diblog ini silahkan Subscribe ke RSS Feed Yustian Blog dan Email Subscription Request

Contact the author

Leave a Reply

:p 8) :lol: =( :8 ;) :(( :o: :[ :) :D :-| :bloody: :cool: :choler: :love: :oups: :aie: :beurk: :canny: :go: :miam: :ueue: :nose: :oh: :oups2: :prud: :yo: :sadd: :bloody2: :cache: :rose: :sure: :dream: :neo: :yes: :sweat: :kiss: :creve: :what: :pff: :hm: :bobo: :ciao: :dribble: :gene: