i am not able to get owncloud to work. OC wrote a log of 400 GB (!) that openbasedir is in use:
“reqId”:“0UCTedsLQ3W7wfnssD2k”,“level”:3,“time”:“2018-01-31T18:06:03+00:00”,“remoteAddr”:“xxx.xxx.xxx.59”,“user”:“myUser”,“app”:“PHP”,“method”:“POST”,“url”:“/owncloud/index.php/login?user=myUser”,“message”:“realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/xxxx/xxxx/web2/web:/var/www/xxxxx/xxxx/web2/private:/var/www/xxxx/xxxx/web2/tmp:/var/www/xxxxx/web:/srv/www/xxxx/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/xxxx/xxxx/web2/web/xxx:/var/www/xxxx/xxxx/web2/web/xxx/data:/var/www/xxx/xxx/web2/web/05/remote.php/dav/calendars:/dev/random:/dev/urandom) at /var/www/xxx/xxx/web2/web/xxx/lib/private/Files/Storage/Local.php#370”}
Any ideas ?
thank you
Server version: Apache/2.4.25 (Debian)
PHP 7.0.27-0+deb9u1
first I would change the owncloud logging level to 3 or 4 to minimize the size of the log file.
then I would check the permissions on your directories in owncloud, especially on the data dir. It should belong to your web server user, www-data or apache
sudo -u user php occ maintenance:install
PHP Warning: require_once(): open_basedir restriction in effect. File(/var/www/xxxx/xxxxx/console.php) is not within the allowed path(s): (/dev/urandom) in /var/www/xxxx/xxxxx/occ on line 11
PHP Warning: require_once(/var/www/xxxxx/xxxxxx/console.php): failed to open stream: Operation not permitted in /var/www/xxxx/xxxxx/occ on line 11
PHP Fatal error: require_once(): Failed opening required ‘/var/www/xxxx/xxxxxx/console.php’ (include_path=‘.:/usr/share/php:/usr/share/php/PEAR’) in /var/www/xxxx/xxxx/occ on line 11
if have no clue about open_basedir… so i hope someone here can gibe me a hint.