By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,649 Members | 696 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,649 IT Pros & Developers. It's quick & easy.

safe_mode problem

P: n/a
Hello all!

The ISP that hosts a few of my sites switched on safe_mode, now my calls to
Pear (require_once('DB.php');) are not working. I get:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is
1603 is not allowed to access /usr/local/lib/php/DB.php owned by uid 0

Is there any work around at my end? Permissions perhps?

Thanks in advance
BZ


Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ZMAN wrote:
Hello all!

The ISP that hosts a few of my sites switched on safe_mode, now my calls
to
Pear (require_once('DB.php');) are not working. I get:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is
1603 is not allowed to access /usr/local/lib/php/DB.php owned by uid 0

Is there any work around at my end? Permissions perhps?


Pear is installed by your ISP as the root user, and safe mode says that
the owner of the executing script has to have the same userid as that of
the executing script (which the PEAR files obviously don't).

solutions? Is there a way to install PEAR by yourself in your own
directories, or do you not have shell access on the server?


--
I am not an ANGRY man. Remove the rage from my email to reply.
Jul 17 '05 #2

P: n/a
Mark

Only FTP. I could throw PHP Shell up there and try that...
Are you saying I could just FTP up the PEAR classes I need to my dirs?

Thanks in advance
BZ
"Mark" <mw@ANGRYLanfear.com> wrote in message
news:ic********************@nventure.com...
ZMAN wrote:
Hello all!

The ISP that hosts a few of my sites switched on safe_mode, now my calls
to
Pear (require_once('DB.php');) are not working. I get:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 1603 is not allowed to access /usr/local/lib/php/DB.php owned by uid 0

Is there any work around at my end? Permissions perhps?


Pear is installed by your ISP as the root user, and safe mode says that
the owner of the executing script has to have the same userid as that of
the executing script (which the PEAR files obviously don't).

solutions? Is there a way to install PEAR by yourself in your own
directories, or do you not have shell access on the server?


--
I am not an ANGRY man. Remove the rage from my email to reply.

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.