PDA

View Full Version : [ubuntu] problem facing to configure tomcat6 hepl me out please



faizan_comsian
July 22nd, 2009, 12:18 PM
NOW I have a problem to configure apache PLZ HELP ME OUT:
After downloading apache i did this "tar xvzf apache-tomcat-6.0.14.tar.gz" to this file "apache-tomcat-6.0.14.tar.gz" but i got error :
tar: apache-tomcat-6.0.14.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

BUT I AVOID THIS AT THAT POINT OF TIME AND DID SUCCESSFULLY:
sudo mv apache-tomcat-6.0.14 /usr/local/tomcat

THEN I NEED TO DO THIS STEP BUT:
gedit ~/.bashrc
Add the following line:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
(I DON'T KNOW AT WHICH PLACE OF THAT FILE I ADD IT)

More Info:
He is not giving me the permission to execute startup.sh of tomcat and i haven't found /etc/init.d/tomcat as well to make it auto start at login point of time by adding this line sudo gedit /etc/init.d/tomcat

dk06
July 22nd, 2009, 12:26 PM
NOW I have a problem to configure apache PLZ HELP ME OUT:
After downloading apache i did this "tar xvzf apache-tomcat-6.0.14.tar.gz" to this file "apache-tomcat-6.0.14.tar.gz" but i got error :
tar: apache-tomcat-6.0.14.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

BUT I AVOID THIS AT THAT POINT OF TIME AND DID SUCCESSFULLY:
sudo mv apache-tomcat-6.0.14 /usr/local/tomcat

THEN I NEED TO DO THIS STEP BUT:
gedit ~/.bashrc
Add the following line:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
(I DON'T KNOW AT WHICH PLACE OF THAT FILE I ADD IT)

More Info:
He is not giving me the permission to execute startup.sh of tomcat and i haven't found /etc/init.d/tomcat as well to make it auto start at login point of time by adding this line sudo gedit /etc/init.d/tomcat

Are you following the instructions that came with it?
&
Ubuntu Server might be easier for you, remember to disable extra services if you are gonna run a webserver

http://ubuntuforums.org/showthread.php?t=285374

http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/

https://help.ubuntu.com/community/ApacheTomcat5