Re: [PHP4BETA] Basedir.. dir().. etc. - PHP4.b3
| From: | David Robley | Date: | Thu, 02 Dec 1999 00:31:13 +0000 |
| Subject: | Re: [PHP4BETA] Basedir.. dir().. etc. - PHP4.b3 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7218@lists.php.net to get a copy of this message | ||
On 1 Dec, Joaquim Homrighausen wrote:
> Hola..
>
> .. httpd.conf contains:
>
> php_admin_flag safe_mode on
> php_admin_value safe_mode_exec_dir "/path/to/httpd/cgi/"
> php_admin_value doc_root "/root/of/html/sites/"
> php_admin_flag engine on
> php_admin_value open_basedir "/root/of/html/sites/"
>
> In a script (.php) that is running in "/root/of/html/sites/phptest/joho/" I
> do a
>
> <?php
> $d = dir ("/root/of/html/sites");
>
> .. read directory and output contents ..
> ?>
>
> This works.
>
> If I, however, attempt to access "/root/of/html/sites/phptest/joho", for
> example - I get an "access denied.." error.. [OpenDir: Permission denied
> errno 13]?
>
> I thought that the open_basedir WAS a base dir.. ?
>
> If it is, shouldn't I be able to access stuff beneath it?
>
> I have also tried dir ("phptest/joho") with identical results.
Remember that your web server is most likely running as user nobody, who
may not have permissions to access those directories.
Cheers
--
David Robley
WEBMASTER | Phone +61 8 8374 0970
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA
Visit the PHP mirror at http://au.php.net:81/
<<<<<<<<<<<<< WARNING * END OF TEXT * STOP READING HERE
>>>>>>>>>>>>>>