Thursday, 12 January 2012

APACHE TOMCAT INSTALLATION STEPS

Tomcat configuration
Install with RHEL5 packagesInstall apache, tomcat and deps,yum install \
httpd \
tomcat5 \
tomcat5-webapps \
tomcat5-admin-webapps
Configure the environment,grep _HOME /etc/sysconfig/tomcat5
grep _HOME /etc/ant.conf

 cd ~/
vi .bashrc
add those lines,JAVA_HOME="/usr/lib/jvm/java"
CATALINA_HOME="/usr/share/tomcat5"
TOMCAT_HOME="$CATALINA_HOME"
JASPER_HOME="/usr/share/tomcat5"
ANT_HOME=/usr/share/ant
export JAVA_HOME CATALINA_HOME TOMCAT_HOME JASPER_HOME ANT_HOME
apply,source .bashrc
Start and enable the daemon,service tomcat5 start
chkconfig tomcat5 on

              Create/edit roles and users,cd /usr/local/tomcat/conf
vi tomcat-users.xml
add those lines,<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="PASSWORD" roles="manager,admin"/>
note. change PASSWORD accordinglyapply,/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh
#service tomcat5 restart
Point your browser to server's URL and check it's responding,http://10.1.1.2/
then point it to the administration interface and login,http://10.1.1.2/admin/
admin/PASSWORD
then point it to the manager interface and login,http://10.1.1.2/manager/html
admin/PASSWORD
 

No comments:

Post a Comment