473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

safe_mode problem

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
2 2106
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Henrik Oddershede | last post by:
Hi. I am having a problem with safe_mode in PHP-4.3.2. I was running an Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on - and everything was working fine. Yesterday, I...
0
by: Gerrit Kuilder | last post by:
Hello All, I have the following question: a hosting provider has turned local safe_mode off and the master safe_mode is on. This prevents an application/php script to work. The provider...
1
by: David Ruiz | last post by:
Hi all, I've tried to compile PHP-4.3.3 for a HORDE installation and it requires that PHP is compiled with safe_mode disabled. I compiled it like this: --disable-safe_mode...
2
by: Chris Ritson | last post by:
I have just upgraded a web server to use apache 1.3.29 with php 4.3.4. Since this upgrade (from php 4.1.1) a number of our PHP paes have come up with errors complaining that safe mode is in...
2
by: Salmo Bytes | last post by:
I have a script that wants to mirror a directory structure, reading from location1 and writing (mkdir) at location2. This code works fine on a my own desktop test box. But fails at 'mkdir' when...
1
by: Felix Natter | last post by:
hi, I would like to upload a file (via a form), then read that (temporary) file and write the contents into a database. The first problem is that open_basedir=/home/CUSTOMER so I can't just read...
0
by: bedek | last post by:
Hello How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it's set for sure ? I find out that I should create directory for binaries in home direcotry of...
1
by: ramc18 | last post by:
My PHP.INI configuration have safe_mode = Off but in local execution it get On. I noticed this strange behaviour with a script that shows an error in move_uploaded_file. I write a minimal script...
0
by: Zeilkman | last post by:
Hi everybody, I'm runing LAMP on a Fedora 7 + Plesk server. PHP Version 5.0.4 Apache 2.0 Handler The "local value" of Safe Mode is ON and the "master value" is OFF I try to change the...
2
by: _q_u_a_m_i_s's | last post by:
Hy, i encountered a weird problem on a server running php5, and apache. Seems like i cannot create folders that end with "/". for example: mkdir("test/") will fail mkdir("test") will work Is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.