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