I have to access/write directories through php that are created by tomcat by upload process.
php apache:apache cant able to access tomcat:tomcat directories.
Please tell me what i should change to work it out.
-
One option is to put the apache user in the tomcat group. Another option is to create a new group, say webusers, in which you put both the apache and the tomcat users, and to which you assign the group ownership of the affected tomcat directories.
The affected tomcat directories will then have to be writable by group. It's probably also a good idea to add the setgid bit, making sure new files and directories are created with the right group ownership.
Also remember to set an umask inside the involved scripts, to get the desired permissions on new files and directories. I guess you want 002 or 007, depending if the files should be accessible by any user or not.
Ela : Please can you show me some links to do it, am not too advance in this, am just installing and running in linux machines. i got your idea well and i tried with umask and new user groups,nothing seems to be working or i dont know whether am doing it in right way. please help meFrom andol
No comments:
Post a Comment