REMOVE open_basedir in ISPConfig

Discussion in 'Installation/Configuration' started by tguillea, Jun 6, 2012.

  1. tguillea

    tguillea New Member

    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: Jun 6, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Undo that.

    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.
     
    Last edited: Jun 6, 2012
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  4. tguillea

    tguillea New Member

    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!
     
  5. Brushborder

    Brushborder New Member

    Hi,
    Regarding setting open_basedir to none in ISPConfig, is it safe to do that for one site? I have a mobile server monitoring app that requires it.
    Thanks
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess that should be ok.
     

Share This Page