Background:
I wrote a simple web page in PHP that runs some bash commands to process some files when they are uploaded.
I configured my apache httpd.conf to point to a different directory than WebServer, and I am NOT using the ~userhome/Sites dir either.
I am using another folder inside of Documents.
I created the files and scripts using the same id that is used when I login to my machine.
Problem:
When I view my web page from another machine using the path I set in Apache, I have no problems using the page and the scripts I wrote run and execute successfully.
However, my output and page that I accessed suddenly becomes owned by _www.
What's the story? Should I change perms on output through scripts or can I somehow configure my mac to NOT give _www ownership.
Additionally,if someone can answer the following: I am confused as to why there is a WebServer dir and also a Sites dir on one machine. I have read a bit about it, but still confused about this point as well.
I wrote a simple web page in PHP that runs some bash commands to process some files when they are uploaded.
I configured my apache httpd.conf to point to a different directory than WebServer, and I am NOT using the ~userhome/Sites dir either.
I am using another folder inside of Documents.
I created the files and scripts using the same id that is used when I login to my machine.
Problem:
When I view my web page from another machine using the path I set in Apache, I have no problems using the page and the scripts I wrote run and execute successfully.
However, my output and page that I accessed suddenly becomes owned by _www.
What's the story? Should I change perms on output through scripts or can I somehow configure my mac to NOT give _www ownership.
Additionally,if someone can answer the following: I am confused as to why there is a WebServer dir and also a Sites dir on one machine. I have read a bit about it, but still confused about this point as well.