Apache + PHP - when using as module, can one have PHPs run as

From: Date: Thu, 20 Mar 2003 02:31:37 +0000
Subject: Apache + PHP - when using as module, can one have PHPs run as
Groups: php.general 
Request: Send a blank email to php-general+get-140385@lists.php.net to get a copy of this message
specific user? Message-Id: <20030320133137.2b1ed290.phpnews@bachelorguy.com> X-Newsreader: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Tried posting this earlier - it wouldn't take.. Unmunged my email address hoping this might work.. -------------- Would it be true to say that the current Apache PHP module doesn't support running PHP scripts as their owners, and that one has to use PHP in CGI mode for this? I use a well known PHP based messageboard on a website I run, and I want to prevent non-root, non-me access to the file containing my database password. For a perl script, I'd just chmod it 700 with directory given perms 711 - but in PHP 4.3.2rc1, it seems that to reference a file by way of a relative path, the script must be at least 644 and the directory it's in 755. Any suggestions? Good references? Changes since http://www.php.net/manual/en/security.apache.php ? ADFH

« previous php.general (#140385) next »