Forum Moderators: coopster

Message Too Old, No Replies

Upload privledges for OS X

What access do I need to move an upload

         

HeadBut

9:01 pm on Sep 25, 2004 (gmt 0)

10+ Year Member



OS X : Apache and PHP: What access privledges should my move_to directory be at?:
/Library/WebServer/Documents/userimages/

Of course I want apache to serve them but I don't want them visible as a file list.

jamesa

10:31 pm on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you don't want them visible as a file list then remove "Indexes" from the httpd.conf.

Example, if yours reads:

Options Indexes FollowSymLinks MultiViews

Change it to:

Options FollowSymLinks MultiViews

HeadBut

10:57 pm on Sep 25, 2004 (gmt 0)

10+ Year Member



ok, I've added the userimages to my Apache server root and I can add the httpd.conf, but what about for the move_to function? It works with access set to other: Read & Write. I just want php to be able to move the file there and for apache to serve the images, I don't want the users to write or list the director. I think this is what I want for the most security.

THANKS!

dcrombie

3:05 pm on Sep 26, 2004 (gmt 0)



chmod 2775 <directory> 
chgrp www <directory>

;)