How can i install Apache web server and Apache tomcat to avoid get errors like this:
java.io.FileNotFoundException: /usr/local/apache-tomcat-7.0.5/work/Catalina/localhost/_/SESSIONS.ser (Permission denied)
in /usr/local/apache-tomcat-7.0.5/logs/catalina.out
I think I should do something for Apache user, because when I chmod 777 -R ./
on tomcat folder all errors disappear.
Can't vouch for the security of doing so, but
$ cd /usr/local/tomcat/ #or /usr/shared/tomcat6, whatever your $TOMCAT_BASE dir
$ chown -R tomcat6 webapps temp logs work conf
$ chmod -R 777 webapps temp logs work conf
works a treat for these situations.
My tomcat install was borked with permission errors, but throwing open the gates thusly fixed everything.