Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th June 2012, 18:24
tguillea tguillea is offline
Junior Member
 
Join Date: Mar 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default REMOVE open_basedir in ISPConfig

I cannot find the place (i.e. file/physical location, not the control panel setting) ISPConfig is specifying the open_basedir, nor can I do anything to change the open_basedir value in phpinfo()

I've tried putting "php_admin_value open_basedir none" in my vhosts (sites-available and sites-enabled), I've tried changing it in the ISPConfig panel and it does not update the phpinfo() output, I've tried just about everything I can think of and none of it works after restarting apache.

No matter what I do, open_basedir is still /var/www/clients/client1/web14/web:/var/www/clients/client1/web14/tmp:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin

How can I completely remove the open_basedir for one or all of my websites? This isn't a security concern for me, I just want it gone for a few things like CURLOPT_FOLLOWLOCATION and some other functions disabled with open_basedir.


edit: This is a fresh debian 6 install btw - ISPConfig v3.0.4.5 and everything else is up to date.

I'm assuming this has something to do with /usr/local/ispconfig/server/conf/php-cgi-starter.master, but I'm not sure how to change this file or the files created based on this file.

Last edited by tguillea; 6th June 2012 at 18:57.
Reply With Quote
Sponsored Links
  #2  
Old 6th June 2012, 18:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,794
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Quote:
I've tried putting "php_admin_value open_basedir none" in my vhosts (sites-available and sites-enabled), I've tried changing it in the ISPConfig panel and it does not update the phpinfo() output, I've tried just about everything I can think of and none of it works after restarting apache.
Undo that.

Quote:
I cannot find the place (i.e. file/physical location, not the control panel setting) ISPConfig is specifying the open_basedir, nor can I do anything to change the open_basedir value in phpinfo()
That depends on the php method, but it does not matter for disabling open_basedir as you can do that in ispconfig. Login to ispconfig, go to sites > website and there on the options tab. You find a field labeled php open basedir there, replavce the content of that field with the word "none" and click on save. After about a minute, open_basedir is disabled.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 6th June 2012 at 18:41.
Reply With Quote
  #3  
Old 6th June 2012, 19:05
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,794
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Quote:
I'm assuming this has something to do with /usr/local/ispconfig/server/conf/php-cgi-starter.master, but I'm not sure how to change this file or the files created based on this file.
I described this above. By putting "none" in the open basedir field inside the ispconfig interface, this file gets changed automatically and open_basefir gets disabled. Dont change the start file or a apache vhost file manually as your manual changes will get removed automatically anyway.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 6th June 2012, 21:05
tguillea tguillea is offline
Junior Member
 
Join Date: Mar 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks till, you're exactly right, I hadn't really considered the website's settings I was only in the server config. I'm not sure if I edited this after you posted but yeah your first post did the trick.

Thanks!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 fresh instalation - email tab is empty artur_gib Installation/Configuration 14 28th January 2014 20:02
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 15:31
ISPConfig 3.0.0.6 Beta released till General 38 21st September 2008 20:15
ISPConfig 3.0.0.5 Beta Released till General 77 23rd July 2008 13:14
ISPConfig 2.3.2-dev released till General 9 4th June 2007 11:46


All times are GMT +2. The time now is 13:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.