Re: SAFEMODE w/ PEAR
| From: | Jasper Bryant-Greene | Date: | Sat, 25 Jun 2005 06:54:24 +0000 |
| Subject: | Re: SAFEMODE w/ PEAR | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217597@lists.php.net to get a copy of this message | ||
Ashley M. Kirchner wrote:
> I'm having a small problem with SAFE MODE and PEAR that I'm unsure
> how to solve:
>
> [error] PHP Warning: raiseerror(): SAFE MODE Restriction in effect.
> The script whose uid is 524 is not allowed to access
> /usr/lib/php/PEAR.php owned by uid 0 in /path/to/script/Lite.php on line
> 470
>
> How should that get solved? Everything in /usr/lib/php is owned by
> root.root and just about everyone wants access to the PEAR library, but
> SAFE MODE won't allow it?
>
You either need to chown /usr/lib/php to the script's UID (not
recommended) or turn off Safe Mode. The whole point of Safe Mode is that
scripts cannot access files which do not match their UID.