Re: Security problem?
| From: | Analysis & Solutions | Date: | Wed, 26 Jun 2002 00:26:22 +0000 |
| Subject: | Re: Security problem? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103860@lists.php.net to get a copy of this message | ||
Hey Folks:
On Tue, Jun 25, 2002 at 04:08:41PM -0400, Erik Price wrote:
>
> This one file is readable only to me and members the
> "apache" group, and it contains all of the database connection
> parameters.
I usually run PHP as CGI. My secure files are kept in a directory that's
not under the */docroot. Thus, they can't be gotten to through the web
server at all. Plus, the secure files are chmoded 600 (which means they
can be read/written only by the owner). Thereby, the only user on the
server who can read them is me.
Enjoy,
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409