Closed Thread Icon

Topic awaiting preservation: setting up PHP safe mode?? Pages that link to <a href="https://ozoneasylum.com/backlink?for=12013" title="Pages that link to Topic awaiting preservation: setting up PHP safe mode??" rel="nofollow" >Topic awaiting preservation: setting up PHP safe mode??\

 
Author Thread
Gynot
Bipolar (III) Inmate

From: Brooklyn, NY
Insane since: Jan 2002

posted posted 01-23-2002 16:32

Ok, my buddy who's hosting me is using the plask.com server package. We both get the same error when trying to upload or write data.

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/citystylecreations.com/httpdocs/forms/writedata.php

He gets same error also from one level up. He went into the servers root /tmp file and all the stuff we've tried uploading is there. How does he go about reconfiguring to give permission to pass the data from the tmp folder?

~Peace~
Gary
My PHP/MySQL Test Page

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 01-23-2002 20:34

You have to set the open_basedir directory in your PHP.ini file to point to a point in the directory path probably here /usr/local/psa/home/vhosts

That will allow all your vhosts to access their own files.

Check this out for more info on safe mode.

I don't know how this works with plesk or whether it can be controlled directly through it. You may want to ask Pugz since he uses the Plesk solution.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-24-2002 06:05

It can't be controlled through Plesk from the users' side. It has to be done in the php.ini file by someone with root access.

Gynot
Bipolar (III) Inmate

From: Brooklyn, NY
Insane since: Jan 2002

posted posted 01-24-2002 07:04

Yes, my friend is the administrator at the root. He set the deffinitions but we're still getting the open base directory error.
He's coming to me for help and I haven't a damn clue!~LOL

~Peace~
Gary
My PHP/MySQL Test Page

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-24-2002 07:37

Well, I'm assuming you mean the change was made in php.ini. Once that's done, he needs to stop and restart the apache server for the settings to kick in.

Gynot
Bipolar (III) Inmate

From: Brooklyn, NY
Insane since: Jan 2002

posted posted 01-24-2002 07:57

Yep, right file, right info, & restarted server. Still no go. I'm new to back end stuff and I'm quite anxious to start writing some files!~LOL

~Peace~
Gary
My PHP/MySQL Test Page

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-24-2002 17:07

Make sure PHP is NOT in Safe Mode still. Try phpinfo

« BackwardsOnwards »

Show Forum Drop Down Menu