RE: [PHP-WIN] Security and File System Access

From: Date: Fri, 11 Oct 2002 08:05:56 +0000
Subject: RE: [PHP-WIN] Security and File System Access
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16334@lists.php.net to get a copy of this message
> Where should I look for resources related to locking down the > security of > PHP? In particular can I specify directories that PHP will > allow scripts to > execute? For instance can i specify that d:\domains\domain1 > can have access > but not d:\domains\domain2 ? This sure would be an awesome > feature if there > is such a feature. Yes. Under IIS php runs as the user IUSR_[machinename], so if that user does not have modify permissions on d:\domains\domain2 it won't be allowed to modify files there. It's exactly as secure as Windows is :| Not completely sure about Apache/Windows, but it's the same principle, and you can control _web_ access within you DocumentRoot with .htaccess files. Sounds like you should be checking out the safe_mode stuff in php.ini too. Matt

« previous php.windows (#16334) next »