tomcat7 from aptitude repositories does not deploy or explode applicationsapplications
This bug report was converted into a question: question #214261: System tomcat7 instance has restricted permissions in /var/lib/tomcat7 - why?.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello, I am actually a Java developer, but I have just converted an old stationary into my own web server using Ubuntu 12.10(and proudly so).
To do this, I installed apache2, mod-jk which all worked fine.
I proceeded to install tomcat 7 through sudo apt-get install tomcat7, ran it and got the Ubuntu version of "it works". Apache successfully forwards requests to tomcat.
My next step is to install vsftpd. I configure this as needed so that I am able to deploy remotely with use of Flezilla.
I also install openssh-server so that I am able to connect via ssh.
Now I think the problem is rgarding the ownership of tomcat...
I am the sole user of this machine and Tomcat is installed under user "root" and group "tomcat".
This prohibits me from uploading applications in Filezilla to the /var/lib/tomcat7 webapps location.
Even if I manage, tomcat fails to deploy the webapplications.
To fix and verify the bug, I downloaded Tmcat from apache and installed it myself and succesfully have my website up. This proves that my configurations are correct as I used the same server.xml settings.
I repeated this process twice with Ubuntu aptitude Tomcat and even reinstalled the system and experienced no change.
I was told that it is better for a production server to stick with aptitude packages as they are more secure. I don't think this is possible. I even attempted to add my amin user to the tomcat7 group, but can't as I can't log in as root.
affects: | ubuntu → tomcat7 (Ubuntu) |
Sorry for the typos. I have had multiple brain surgeries and lost some vision.