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

Re: Apache2 is serving php files it does not own



I had already looked into my cache, and that is not it. as a test I have
put a rule in my directory entry so that it will only allow to serve
test.php on localhost and that stops it from showing it on a external
computer. So its not the cache, and I do not run a proxy.

    Virgil

Stefan Fritsch wrote:
> debian-apache is not a support list, CCing to debian-user
>
> On Monday 08 January 2007 19:50, Virgil E. Alderson wrote:
>   
>> After an update apache2 all of a sudden is serving php files it
>> does not own or have rights to read or write to. Up to this point i
>> have had my files owned by user: root and group: www-data, and all
>> i had to do was remove group rw rights on the file for apache2 not
>> to serve the php file. But all of sudden apache is serving  the
>> file regardles of who owns it and with 000 permissions. I tried a
>> test with a .png file in the same directory and that works fine,
>> removing -r from its group www-data denies access to it. Doing a ps
>> -ef shows that apache is running as www-data, i also consoled in as
>> www-data and tried to cat the php file and I do get denied as
>> expected. Any ideas? I am using etch and apache 2 with php5
>>     
>
> Maybe the pages are still cached in your browser or your proxy. Try 
> reloading / clearing the cache / disabling the proxy.
>
> Cheers,
> Stefan
>   



Reply to: