PDA

View Full Version : [ubuntu] tomcat configuration



nael
July 27th, 2009, 09:58 AM
hello,
I have installed tomcat6.0.20 on my ubuntu 9.04 using the tutorial in this website:
http://ubuntuforums.org/showthread.php?p=226828
at the last step after running the command:
sh /usr/local/tomcat-6.0.20/bin/startup.sh
as a result I get this:

Using CATALINA_BASE: /usr/local/tomcat-6.0.20
Using CATALINA_HOME: /usr/local/tomcat-6.0.20
Using CATALINA_TMPDIR: /usr/local/tomcat-6.0.20/temp
Using JRE_HOME: /usr/local/jdk1.6.0_14
touch: ne peut faire un touch sur `/usr/local/tomcat-6.0.20/logs/catalina.out': Permission non accordée
./catalina.sh: 375: cannot create /usr/local/tomcat-6.0.20/logs/catalina.out: Permission denied

instead of this:

Using CATALINA_BASE: /usr/local/tomcat-6.0.20
Using CATALINA_HOME: /usr/local/tomcat-6.0.20
Using CATALINA_TMPDIR: /usr/local/tomcat-6.0.20/temp
Using JRE_HOME: /usr/local/jdk1.6.0_14

which means that a problem occured!!!!!

how can I fix this problem???

thankyou for the help

davetv
July 27th, 2009, 11:37 AM
It's probably a permissions issue on the /usr/local/tomcat-6.0.20/logs/ folder.

Try the command "sudo chmod 777 /usr/local/tomcat-6.0.20/logs"

Blond1n
October 29th, 2010, 10:29 AM
Thanks Davetv for letting me know about the "sudo chmod 777" syntax, 'saved for antoher permission problem ! :)