Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linux/PHP question



On Tue, Nov 4, 2008 at 7:25 PM, David Kramer <david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org> wrote:
> 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.


In addition to user permissions, there's thequestion of SELinux settings.
If SELinux is in Enforcing mode, then the files would need to an SELinux
type of httpd_sys_content_t, otherwise SELinux wouldn't allow
apache to touch them at all.




-- 
John Abreau / Executive Director, Boston Linux & Unix
AIM abreauj / JABBER jabr-iMZfmuK6BGBxLiRVyXs8+g at public.gmane.org / YAHOO abreauj / SKYPE zusa_it_mgr
Email jabr-mNDKBlG2WHs at public.gmane.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org