Если выдается ошибка вида:
PHP Warning: Unknown: open_basedir restriction in effect. File is not within the allowed path(s): (.) in Unknown on line 0
или ошибка вида
PHP Warning: require(): open_basedir restriction in effect. File is not within the allowed path(s): (.) in
или даже:
PHP Fatal error: require(): Failed opening required (include_path='.:/usr/share/php:/usr/share/pear')
то нужно в файле:
$ nano /etc/apache2/conf.d/secure.conf
указать:
php_admin_value open_basedir "/var/www/"
и перезапустить апач.