Well, I have encounterd a problem which is quite big (for me), so I hope
I find help here.
My setup is a Linux Machine, running Apache with php as a module.
In order for the webserver to parse the file, i have to give read
permission to world.
This is a problem, because about 100 people have
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:56 PM
Subject: [PHP] Access rights for php files on Linux?
Well, I have encounterd a problem which is quite big (for me), so I hope
I find help here.
My setup is a Linux Machine, running Apache with php as a module.
In order
Use include files to pass your authentication information.
?
include('auth.php');
?
auth.php:
?
$username=foo;
$password=bar;
?
put auth.php in your home directory with you as owner and apache group id
as group, or create a group that contains you and apache user (probably
'nobody').
$ chmod
file. (Any file that is readable by
the webserver is, in essence, readable by any script being
executed by that webserver - which, to say the least, can
be a rather large security problem)
-Original Message-
From: Michael Geier [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Access rights
4 matches
Mail list logo