You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luciano Andress Martini <77...@gmail.com> on 2012/01/26 18:20:48 UTC

Problem with apache sharing tomcat files

Tomcat creates files as tomcat user, which is not acessible by
apache2, how can i correct this, and make apache to share this files?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with apache sharing tomcat files

Posted by André Warnier <aw...@ice-sa.com>.
Luciano Andress Martini wrote:
> Tomcat creates files as tomcat user, which is not acessible by
> apache2, how can i correct this, and make apache to share this files?
> 
I cannot think of a file which a standard Tomcat would create, which would need to be 
accessible by a standard Apache httpd.
You must probably be talking about files created by a Tomcat application, which would 
(maybe) need to be accessible by another application running under Apache httpd.

In any case, how do you want anyone to answer this, if you do not provide a minimum of 
details ? A good start would consist of mentioning which Apache httpd and which Tomcat, 
running on which host(s), under which platform, who writes these files where, and for what 
reason something else needs to access (read? write ? delete ?) them.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with apache sharing tomcat files

Posted by Luciano Andress Martini <77...@gmail.com>.
Oh thank you friends now i found a solution, a changed the UID of the
user  www-data to the same as tomcat6 and now it works fine.


2012/1/26, Luciano Andress Martini <77...@gmail.com>:
> Right. First sorry about my bad english, im from Brazil.
>
> We have a server running Xen Hypervisor.
>
> In Domain 0 , we have apache2 and an NFS share.
> ADM, CONV, CRED, ESTAB, SERVIDOR, POS are virtual machines with... tam
> tam tam tam... tomcat6.
>
> ADM, CONV, CRED, ESTAB, SERVIDOR, POS, have shared files in the NFS of
> Domain 0, cause the systens that run in this tomcat servers, upload
> documents that is important for all the systens.
>
> For security reasons this machines is not acessible from internet or
> from the local network, so Apache2 in Domain-0 (the "phisical"
> machine) tunnel as a proxy a connection beetween Internet and a
> internal virtual server, for example: https://expressocard/ADM
> automatically go to virtual tomcat machine ADM. This is really fine,
> cool, and fast. And most of all: secure.
>
> But the upload part of the system is shared by Apache2, as a normal
> directory, but as the user tomcat6 and group tomcat6 (all uploads in a
> system in tomcat goes in that form), wich is not acessible by apache2.
>
> The tunnel-proxy part /ADM /CONV, etc, is managed by tomcat machines,
> and apache2 just tunnel it, because that, it works.
>
> But the sharing temp, of the uploads, is really acessed by apache as a
> real dir, and the error is because the files do not have the www-data
> user.
>
>
>
> 2012/1/26, David kerber <dc...@verizon.net>:
>> On 1/26/2012 12:20 PM, Luciano Andress Martini wrote:
>>> Tomcat creates files as tomcat user, which is not acessible by
>>> apache2, how can i correct this, and make apache to share this files?
>>
>> For want of sufficiently detailed information to really help, I'm
>> shooting in the dark here, but try running tomcat as a user to which
>> apache2 has permissions; perhaps the same user as apache is running
>> under.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with apache sharing tomcat files

Posted by Luciano Andress Martini <77...@gmail.com>.
Right. First sorry about my bad english, im from Brazil.

We have a server running Xen Hypervisor.

In Domain 0 , we have apache2 and an NFS share.
ADM, CONV, CRED, ESTAB, SERVIDOR, POS are virtual machines with... tam
tam tam tam... tomcat6.

ADM, CONV, CRED, ESTAB, SERVIDOR, POS, have shared files in the NFS of
Domain 0, cause the systens that run in this tomcat servers, upload
documents that is important for all the systens.

For security reasons this machines is not acessible from internet or
from the local network, so Apache2 in Domain-0 (the "phisical"
machine) tunnel as a proxy a connection beetween Internet and a
internal virtual server, for example: https://expressocard/ADM
automatically go to virtual tomcat machine ADM. This is really fine,
cool, and fast. And most of all: secure.

But the upload part of the system is shared by Apache2, as a normal
directory, but as the user tomcat6 and group tomcat6 (all uploads in a
system in tomcat goes in that form), wich is not acessible by apache2.

The tunnel-proxy part /ADM /CONV, etc, is managed by tomcat machines,
and apache2 just tunnel it, because that, it works.

But the sharing temp, of the uploads, is really acessed by apache as a
real dir, and the error is because the files do not have the www-data
user.



2012/1/26, David kerber <dc...@verizon.net>:
> On 1/26/2012 12:20 PM, Luciano Andress Martini wrote:
>> Tomcat creates files as tomcat user, which is not acessible by
>> apache2, how can i correct this, and make apache to share this files?
>
> For want of sufficiently detailed information to really help, I'm
> shooting in the dark here, but try running tomcat as a user to which
> apache2 has permissions; perhaps the same user as apache is running under.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with apache sharing tomcat files

Posted by David kerber <dc...@verizon.net>.
On 1/26/2012 12:20 PM, Luciano Andress Martini wrote:
> Tomcat creates files as tomcat user, which is not acessible by
> apache2, how can i correct this, and make apache to share this files?

For want of sufficiently detailed information to really help, I'm 
shooting in the dark here, but try running tomcat as a user to which 
apache2 has permissions; perhaps the same user as apache is running under.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org