[EMAIL PROTECTED] wrote:
> Thanks for your answer,
>
> It was a bit late because we already disabled selinux just to try, and
> it worked :) But hopefully this could help someone that bumps into the
> same problem.
>
> On a live webserver, what security issues would disableing the selinux
> cause
On Fri, January 5, 2007 5:01 am, [EMAIL PROTECTED] wrote:
> 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)){
Did you really intend to switch from $file to $menu_filenam
Thanks for your answer,
It was a bit late because we already disabled selinux just to try, and
it worked :) But hopefully this could help someone that bumps into the
same problem.
On a live webserver, what security issues would disableing the selinux
cause? Any?
Best regards,
Peter Laur
[EMAIL PROTECTED] 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_run
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
Anyone?
/
Sorry, it should be $file for both as in the more complex code. So the
below code is the code that is generating "the file is not writable".
if (file_exists($file)) {
if(!is_writeable($file)){
echo "the file is not writable";
}
} else echo "The file does not exist";
Maybe it's because you're testing two different variables, $file and
$menu_filename?
Edward
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 05 January 2007 11:02
> To: php-general@lists.php.net
> Subject: [PHP] is_writable() not working on PHP 5.1.6
>
>
>
# [EMAIL PROTECTED] / 2007-01-05 18:01:30 +0700:
> if (file_exists($file)) {
$file
> if(!is_writeable($menu_filename)){
$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
Which
8 matches
Mail list logo