Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I am setting up a server for my class and the jsp pages won't parse. the site is net104.zapto.org if anybody can help i would really appreciate it. i am running apache2 and tomcat. i think the problem might be with the tomcat configuration. i don't know how to do it.
I can successfully setup CentOS+Apache+Tomcat+modjk. Check it out.
rpm -ivh pcre-devel-4.5-3.i386.rpm
rpm -ivh apr-devel-0.9.4-24.1.i386.rpm
rpm -ivh apr-util-devel-0.9.4-17.i386.rpm
rpm -ivh httpd-devel-2.0.52-9.ent.i386.rpm
rpm -e java-1.4.2-gcj-compat
rpm -e gcc-java
Install jdk
===========
chmod +x jdk-1_5_0_08-linux-i586-rpm.bin
./jdk-1_5_0_08-linux-i586-rpm.bin
cd /usr/java/jdk1.5.0_08
ln -s /usr/java/jdk1.5.0_08 /usr/java/jdk
Install Tomcat
==============
#create Tomcat Account
groupadd tomcat
useradd -g tomcat tomcat
cd /usr/local
tar xzf apache-tomcat-5.5.17.tar.gz
ln -s apache-tomcat-5.5.17 tomcat5
cd /usr/local
chown -R tomcat.root /usr/local/tomcat5
chown -R tomcat.root /usr/local/apache-tomcat-5.5.17
set env var
===========
vi /etc/profile
export JAVA_HOME=/usr/java/jdk
export CATALINA_HOME=/usr/local/tomcat5
export PATH=$PATH:/usr/java/jdk/bin
logout
start tomcat
============
/usr/local/tomcat5/bin/startup.sh
Installing the Connector
========================
rpm -q libtool automake autoconf
tar xfz tomcat-connectors-1.2.18-src.tar.gz
cd /usr/local/tomcat-connectors-1.2.18-src/native
./configure --with-apxs=/usr/sbin/apxs
make
cd apache-2.0
cp mod_jk.so /etc/httpd/modules/
vi /usr/local/tomcat5/conf/server.xml
#Locate the closing tag for the engine element: <\engine> and add the following just before the close
tag:
#note: run outside from /usr/local/tomcat5/conf/ dir
/usr/local/tomcat5/bin/shutdown.sh
/usr/local/tomcat5/bin/startup.sh
#verify the existance of /usr/local/tomcat5/conf/auto/mod_jk.conf file
vi /etc/httpd/conf/httpd.conf
Include /usr/local/tomcat5/conf/auto/mod_jk.conf
service httpd restart
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.