Re: is_writable() not working on PHP 5.1.6

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

 



lists@xxxxxxxxxxx wrote:
> Some additional information:
> 
> On the running server I am getting this dumped:
> 
> audit(1168010361.652:217): avc:  denied  { write } for  pid=2924
> comm="httpd" name="hcat.log" dev=dm-0 ino=8718108
> scontext=root:system_r:httpd_t:s0
> tcontext=root:object_r:etc_runtime_t:s0 tclass=file

smells like your on a system that's employing selinux
(http://www.nsa.gov/selinux/) or something similar.

if that is the case then this is not a php issue and you'll have
to dig into your server's setup/configuration to figure out what is
implementing this extra security wrapper and how you can tell it
to allow your webserver to access to the given dir/file.

> 
> Anyone?
> 
> /Peter
> 
> 
> 
> 
> Quoting lists@xxxxxxxxxxx:
> 
>> Hi,
>>
>> I am running Fedora Core 6 with PHP 5.1.6
>>
>> This little snippet will output "the file is not writable":
>>
>>
>>
>> if (file_exists($file)) {
>>     if(!is_writeable($menu_filename)){
>>         echo "the file is not writable";
>>     }
>> } else echo "The file does not exist";
>>
>>
>>
>> I have set the permissions to 777 for the file and also put group and
>> user to apaches user. So that is not an issue.
>>
>> I have seen some bug reports on this, but haven't figured out how to
>>  solve it.
>>
>> Is this a PHP 5.1.6 related bug? I haven't seen any fix or similar.
>>
>> Best regards,
>> Peter Lauri
>>
>> --PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux