From: "Stephanie Sullivan"
>
> Thomas - I tried my test on another server. I created a directory in the
> web
> root (/web/x) in a valid site with a valid admin user. I protected the
> directory a+w so apache could write to it without restriction.
>
> I then ran the following php script in the directory via a http access. It
> came from an example on the php.net site:
>
> [alb (at mark) zzzzz x]# more x.php
> <?php
> $fp = fopen('data.txt', 'w');
> fwrite($fp, '1');
> fwrite($fp, '23');
> fclose($fp);
>
> ?>
>
> The script was the only file in the directory before running it. After I
> have the file data.txt as is below:
>
> [alb@zzzzz x]# ls -l
> total 8
> - -rw-r--r-- 1 apache site1 3 Aug 1 08:56 data.txt
> - -rw-r--r-- 1 alb site1 89 Aug 1 08:56 x.php
>
> I don't know why it does not seem to work for you in this instance.
>
> Stephanie
>
yes I have now tried it with chmod a+w x/
drwxrwsrwx 2 root site1 4096 Aug 1 15:33 x
how secure is this setup ???
drwxrwsr-x 7 nobody site1 4096 Aug 1 15:32 ..
-rw-r--r-- 1 apache site1 3 Aug 1 15:33 data.txt
-rw-r--r-- 1 thomas site1 90 Aug 1 15:33 x.php
if you make php create a folder inside x, lige y and then write data to a
file x/y/data.txt, I'am pretty sure you will se the same ownership
apache:4294967295