Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Securing PHP?



At 10:19 AM +0100 1/6/06, Axel Luttgens wrote:
Christian Enqvist wrote:

We have a webserver with a couple of customers and they are all using
PHP. Does anyone have any good tips on how to secure PHP (this is when
you start flaming me for not being specific) or if we even have to
worry about it? We have replaced the PHP installation from Apple for
the one that Marc builds at Entropy because we needed support for GD
so this is somewhat of a more general question about OS X Server and
PHP vs Security.

10.3.9 server and PHP 4.3.11.

You could have a look at:

   <http://www.php.net/manual/en/security.php>

While reading the above, keep in mind that a default OSX install comes with one apache master process only, running as user/group www/www. So, any PHP code will run as that same www/www too. In other words, if customer A and customer B are allowed to put their own PHP code on your server, either you trust A and B (and they trust each other), or you have to take some provisions.

There are ways of mitigating this issue, by using basedir's for instance. --

-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                     http://www.iwiring.net/
email@hidden                                 http://www.ustsvs.com/
1-646-217-4725

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Securing PHP? (From: Christian Enqvist <email@hidden>)
 >Re: Securing PHP? (From: Axel Luttgens <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.