Linux/PHP question

David Kramer david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org
Tue Nov 4 19:25:27 EST 2008


Myrle Francis wrote, On 11/04/2008 10:14 AM:
> Hello David
> 
>  Thanks for your response.. I've provide information of my files structure:
> 
> Thanks
> Myrle
> 
> 
> file structure
> 
> tbit (my home)
>  |
>   > drwxr-xr-x  3 tbit  free  512 Oct 31 13:31 html          
> (permissions as provided by my shell account)
>     |
>      >drwxr-xr-x  7 tbit  free  1024 Nov  1 10:56 myzipwear  
> (permissions as provided by me)
>       |
>        >drwxr-xr-x  2 tbit  free  512 Nov  1 10:55 Area51    
> (permissions as provided by me)
>  
> 
> bash-3.2$ ls -l (of Area 51)
> 
> total 12
> -rwxr-xr-x  1 tbit  free  176 Nov  1 09:54 counter.php
> -rw-rw-rw-  1 tbit  free    1 Nov  1 09:53 hitcounter.txt
> -rwxr-xr-x  1 tbit  free   34 Nov  1 09:55 webhits.php

So I take it your DocumentRoot is is in your home directory
(~tbit/html). right?

What user is Apache running as?  If it's running as apache or httpd (or
anything else but tbit) it might not have sufficient permissions to
write to a file anywhere in your home directory.





More information about the Discuss mailing list