hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Help with safe mode/open_base_dir
Reply

Forum Jump

Help with safe mode/open_base_dir

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior 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



Sponsored Links
  #2  
Old
Disabled
 
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

  #3  
Old
Junior 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.

Tim

__________________
Tim S

Sponsored Links
  #4  
Old
Aspiring Evangelist
 
Join Date: May 2002
Posts: 441
You probabally need to do this in ssh while logged in as root.

  #5  
Old
Junior 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

  #6  
Old
WHT Addict
 
Join Date: Sep 2002
Posts: 114
Change the host.

  #7  
Old
Disabled
 
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

  #8  
Old
Junior 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,
Tim

__________________
Tim S

Reply

Related posts from TheWhir.com
Title Type Date Posted
OX Summit Web Hosting Events 2014-07-23 21:01:52
Top 5 Considerations for Transitioning to Open Compute Webinars 2014-06-29 21:45:11
Open-Xchange Summit 2013 Web Hosting Events 2013-09-19 18:04:21
Inside 1&1's New Hosting Services and Approach Web Hosting News 2014-05-09 12:40:26
Open-Xchange Names New Chief Technical Officer Web Hosting News 2013-03-04 16:10:23


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?