server setting and php open_basedir

Discussion in 'Installation/Configuration' started by xarion, Feb 28, 2012.

  1. xarion

    xarion New Member

    Hey guys

    I am battling to add a path to the configuration. under the server configuration there is a "PHP open_base dir" field but even after changing it phpinfo() returns the default one, anything I am missing?

    Xarion
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The filed under server settings is the default for new sites. the setting for existing sites is in the website settings on the options tab.
     
  3. xarion

    xarion New Member

    ahh that explains it, now check at this error...

    [Wed Feb 29 21:14:17 2012] [warn] [client 41.222.38.67] mod_fcgid: stderr: PHP Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/Net/IPv4.php) is not within the allowed path(s): (/var/www/clients/client6/web22/web:/var/www/clients/client6/web22/tmp:/var/www/wug.za.net/web:/srv/www/wug.za.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php/:/usr/share/pear/Net/) in /var/www/clients/client6/web22/web/includes/ipcalc.php on line 16, referer: http://www.wug.za.net/myipdns.php
    [Wed Feb 29 21:14:17 2012] [warn] [client 41.222.38.67] mod_fcgid: stderr: PHP Warning: require_once(/usr/share/pear/Net/IPv4.php): failed to open stream: Operation not permitted in /var/www/clients/client6/web22/web/includes/ipcalc.php

    I got it working by copying the phpfile, would have been nice not to hack it to get it to work :p
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats most likely a file permission issue and not a issue with open basedir, php tends to show a false open basedir error message when a file can not be opened e.g. because it is not owned by the website user when suexec is enabled for the site.
     

Share This Page