ISPConfig update, open_basedir restriction and /dev/urandom not within

Discussion in 'Server Operation' started by Dreamscapist, Nov 4, 2015.

  1. Dreamscapist

    Dreamscapist New Member

    Hey, I'm having a problem on updating the ispconfig and it seems that I'm unable to solve this on my own, linux isn't most familiar platform for me.

    I've been trying to set the /dev/urandom and going around the open_basedir on config files etc but no luck so far, if someone could be kind enough to help me through this thing since my skull seems to be too thick to manage it.

    Below is the output that it gives me to get us started with this.

    Code:
    admin@server:~# ispconfig_update.sh
    PHP Warning:  require_once(): open_basedir restriction in effect. File(/usr/local/ispconfig/server/lib/config.inc.php) is not within the allowed path(s): (/dev/urandom) in /usr/local/ispconfig/server/scripts/ispconfig_update.php on line 75
    PHP Warning:  require_once(/usr/local/ispconfig/server/lib/config.inc.php): failed to open stream: Operation not permitted in /usr/local/ispconfig/server/scripts/ispconfig_update.php on line 75
    PHP Fatal error:  require_once(): Failed opening required '/usr/local/ispconfig/server/lib/config.inc.php' (include_path='.:/dev/urandom') in /usr/local/ispconfig/server/scripts/ispconfig_update.php on line 75
    
    admin@server:/tmp/ispconfig3_install/install# php -q update.php
    
    --------------------------------------------------------------------------------
    _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
    _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
    \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    >> Update
    
    PHP Warning:  require_once(): open_basedir restriction in effect. File(/tmp/ispconfig3_install/installlib/install.lib.php) is not within the allowed path(s): (/dev/urandom) in /tmp/ispconfig3_install/install/update.php on line 77
    PHP Warning:  require_once(/tmp/ispconfig3_install/installlib/install.lib.php): failed to open stream: Operation not permitted in /tmp/ispconfig3_install/install/update.php on line 77
    PHP Fatal error:  require_once(): Failed opening required '/tmp/ispconfig3_install/installlib/install.lib.php' (include_path='.:/dev/urandom') in /tmp/ispconfig3_install/install/update.php on line 77
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux Distribution?
     
  3. Dreamscapist

    Dreamscapist New Member

    Distributor ID: Debian
    Description: Debian GNU/Linux 7.9 (wheezy)
    Release: 7.9
    Codename: wheezy
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the file /etc/php5/cli/php.ini and comment out the open_basedir setting in this file. Debian uses different php.ini filesand a open_basedir in the php.ini for shell scripts makes not much sense. The open_basedir should only be set for the websites and thats what ispconfig is doing automatically, even if its not defined in the global php.ini.
     
  5. Dreamscapist

    Dreamscapist New Member

    Thank you, worked like charm now.
    Was on the right track before but I quess I didn't find the right php.ini file.
    It seems that I had even edited that specific file at some point while trying to figure this out.
     
    Last edited: Nov 5, 2015

Share This Page