RE: [PHP] open_basedir

From: Date: Sun, 08 Jul 2001 16:17:43 +0000
Subject: RE: [PHP] open_basedir
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56767@lists.php.net to get a copy of this message
Ulrich, Pretty sure that the way to fix this will be to make sure that PHP just can't read those files... so that the apache (or whatever server) user that runs the PHP [module/binary] doesn't have access to read them. If you are concerned specifically about /etc/passwd, shadow it. You can find more information in the HOWTO's off of RedHat's site or at linux.com. This may not be correct, but I'm fairly certain. I trust someone will correct me if I'm wrong. Good Luck, Ben -----Original Message----- From: Yacoon [mailto:admin@yacoon.de] Sent: Sunday, July 08, 2001 12:18 AM To: php-general@lists.php.net Subject: [PHP] open_basedir mornin, i´m new to the list and to php, so please don´t jump to hard on me, when you think the question is dump. okay: is there a possibility to make a server only execute the php scripts in the document root it was called from? I saw something about open_basedir, but am not sure if that is the way. I badly need to protect the server from i.e. includes, that read out or manipulated server config files, like passwd. I have systems run under redhat, if that matters. could anyone please just let me know how and where? I´ll definatelly need the correct syntax, since that’s my main-problem with php. thanks a lot - ulrich

« previous php.general (#56767) next »