Results 1 to 8 of 8
-
09-18-2002, 02:40 PM #1Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- PA
- Posts
- 32
Help with safe mode/open_base_dir
I am tryingto get a script installed on a plesk server that has
safe mode and open_basedir limitations. The script uploads images to a mySql database but the open_basedir will not allow
the script to write and read from the php tmp directory.
Does anyone know a way around this or a way to redirect
to a tmp folder within the allowed space? The host was not
any help.
Any suggestions appreciated!
Thanks,
Tim
-
09-18-2002, 07:50 PM #2Disabled
- Join Date
- May 2002
- Location
- England
- Posts
- 21
Easy peasy, in your domain directory on your server (/usr/local/psa/home/vhosts/domain.com) you will find a directory called conf . In that place this file:
(file is named vhost.conf or vhosts.conf for SSL sites)
<Directory /usr/local/psa/home/vhosts/domain.com/httpdocs>
php_admin_value safe_mode 0
php_admin_value open_basedir "/usr/local/psa/home/vhosts/domain.com/httpdocs/:/"
</Directory>
Replace anything which says "domain.com" with your domain. That should sort you out.
James
-
09-18-2002, 08:04 PM #3Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- PA
- Posts
- 32
There are no files visible in the conf folder and I am unable to
add any. I just get a 550 permissions error. I also can
not add any folders in the base domain directory
either. I guess I am not going to be able to do anything
since the host has everything restricted.
Thanks for trying though.
TimTim S
-
09-19-2002, 12:55 AM #4Aspiring Evangelist
- Join Date
- May 2002
- Posts
- 441
You probabally need to do this in ssh while logged in as root.
-
09-19-2002, 02:32 AM #5Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- PA
- Posts
- 32
I can not. I am trying to help a guy that bought a script
get it installed. He uses a host and does not have root
access. I had him contact the host but they refuse to help
in any way. Their only reply was basically yes it is restricted
to bad for you.
Thanks anyway.Tim S
-
09-19-2002, 11:29 AM #6WHT Addict
- Join Date
- Sep 2002
- Posts
- 114
Change the host.
-
09-19-2002, 07:06 PM #7Disabled
- Join Date
- May 2002
- Location
- England
- Posts
- 21
Hi Tim,
Sounds like your host really doesn't have your custom in mind. I thought you had root access to your server and hence why I suggested putting that script in. I didn't realise you were the customer of another host.
If you are looking for a host that will allow PHP safe mode to be turned off for your domain then I can recommend www.22host.com . Althought I'm sure this is probably against the rules. Who knows. If it is then can an admin please delete this post.
James
-
09-20-2002, 06:39 PM #8Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- PA
- Posts
- 32
Thanks for the suggestions. I was just trying to help a customer that bought the script from me get it installed. I also suggested to him that he find a different host.
Thanks,
TimTim S