"access denied" after new installation of oc 10.5.0

Hi there

I deleted all old owncloud files in the directory and copied the 10.5.0 files in. After first login screen (create admin login and click button “complete installation”) I cannot login anymore: owncloud.homepage.ch/index.php/login says: Access denied

Steps to reproduce

  1. copy owncloud 10.5.0 files into the directory of the shared host
  2. open owncloud.homepage.ch for the first time
  3. create admin login and click button “complete installation”
  4. access denied at every next attempt to open owncloud

Expected behaviour

I should see the login page

Actual behaviour

page redirected to owncloud.homepage.ch/index.php/login and says “access denied”

Server configuration

Operating system:

**Web server: shared hosting on hoststar.ch

Database:

**PHP version: 7.2

**ownCloud version: 10.5.0

**Updated from an older ownCloud or fresh install: fresh

**Where did you install ownCloud from: downloaded directly from owncloud, extracted and then copied files into /public_html/

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here: 
acces denied

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => 'oc4hxoemhg0m', 'passwordsalt' => 'xxx', 'secret' => 'xxx', 'trusted_domains' => array ( 0 => 'owncloud.homepage.ch', ), 'datadirectory' => '/home/ch36924/web/owncloud.homepage.ch/public_html/data', 'overwrite.cli.url' => 'https://owncloud.homepage.ch', 'dbtype' => 'sqlite3', 'version' => '10.5.0.10', 'logtimezone' => 'UTC', 'apps_paths' => array ( 0 => array ( 'path' => '/home/ch36924/web/owncloud.homepage.ch/public_html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/home/ch36924/web/owncloud.homepage.ch/public_html/apps-external', 'url' => '/apps-external', 'writable' => true, ), ), 'installed' => true, ); ``` ### Logs #### ownCloud log (data/owncloud.log) 0 bytes, empty! ``` Thanks for any ideas how to fix my fresh installation!

Hi,

Could you please attach your apache error logs ?

1 Like

Is this correct? It doesn’t resolve.

** server can’t find owncloud.homepage.ch: NXDOMAIN

1 Like

[Sun Oct 25 14:06:01.138192 2020] [fcgid:warn] [pid 47226] [client 89.217.19.247:52524] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:06:01.138232 2020] [fcgid:warn] [pid 47226] [client 89.217.19.247:52524] mod_fcgid: stderr: {“reqId”:“X5V4OH8AAAEAALh6tdkAAAAI”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:06:01+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:06:01.138238 2020] [fcgid:warn] [pid 47226] [client 89.217.19.247:52524] mod_fcgid: stderr: {“reqId”:“X5V4OH8AAAEAALh6tdkAAAAI”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:06:01+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:07:02.969859 2020] [fcgid:warn] [pid 47098] [client 89.217.19.247:56502] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:07:02.969896 2020] [fcgid:warn] [pid 47098] [client 89.217.19.247:56502] mod_fcgid: stderr: {“reqId”:“X5V4dn8AAAEAALf6QvsAAAAG”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:07:02+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:07:02.969903 2020] [fcgid:warn] [pid 47098] [client 89.217.19.247:56502] mod_fcgid: stderr: {“reqId”:“X5V4dn8AAAEAALf6QvsAAAAG”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:07:02+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:08:05.145369 2020] [fcgid:warn] [pid 2764] [client 89.217.19.247:34124] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:08:05.145410 2020] [fcgid:warn] [pid 2764] [client 89.217.19.247:34124] mod_fcgid: stderr: {“reqId”:“X5V4tH8AAAEAAArMQ60AAAAD”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:08:05+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:08:05.145429 2020] [fcgid:warn] [pid 2764] [client 89.217.19.247:34124] mod_fcgid: stderr: {“reqId”:“X5V4tH8AAAEAAArMQ60AAAAD”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:08:05+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:09:07.159728 2020] [fcgid:warn] [pid 3938] [client 89.217.19.247:43284] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:09:07.159782 2020] [fcgid:warn] [pid 3938] [client 89.217.19.247:43284] mod_fcgid: stderr: {“reqId”:“X5V48n8AAAEAAA9iSiQAAAAM”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:09:07+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:09:07.159791 2020] [fcgid:warn] [pid 3938] [client 89.217.19.247:43284] mod_fcgid: stderr: {“reqId”:“X5V48n8AAAEAAA9iSiQAAAAM”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:09:07+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:10:08.966215 2020] [fcgid:warn] [pid 5520] [client 89.217.19.247:45944] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:10:08.966245 2020] [fcgid:warn] [pid 5520] [client 89.217.19.247:45944] mod_fcgid: stderr: {“reqId”:“X5V5MH8AAAEAABWQTtMAAAAK”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:10:08+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:10:08.966252 2020] [fcgid:warn] [pid 5520] [client 89.217.19.247:45944] mod_fcgid: stderr: {“reqId”:“X5V5MH8AAAEAABWQTtMAAAAK”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:10:08+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:11:11.043303 2020] [fcgid:warn] [pid 7254] [client 89.217.19.247:47750] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:11:11.043342 2020] [fcgid:warn] [pid 7254] [client 89.217.19.247:47750] mod_fcgid: stderr: {“reqId”:“X5V5bn8AAAEAABxWtx0AAAAH”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:11:11+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:11:11.043348 2020] [fcgid:warn] [pid 7254] [client 89.217.19.247:47750] mod_fcgid: stderr: {“reqId”:“X5V5bn8AAAEAABxWtx0AAAAH”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:11:11+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:12:12.935452 2020] [fcgid:warn] [pid 17629] [client 89.217.19.247:49412] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:12:12.935493 2020] [fcgid:warn] [pid 17629] [client 89.217.19.247:49412] mod_fcgid: stderr: {“reqId”:“X5V5rH8AAAEAAETdFSIAAAAG”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:12:12+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:12:12.935500 2020] [fcgid:warn] [pid 17629] [client 89.217.19.247:49412] mod_fcgid: stderr: {“reqId”:“X5V5rH8AAAEAAETdFSIAAAAG”,“remoteAddr”:“89.217.19.247”,“app”:“PHP”,“message”:“touch(): open_basedir restriction in effect. File(\/home\/www\/web113\/html\/owncloud\/data\/owncloud.log) is not within the allowed path(s): (\/home\/ch36924\/web\/files:\/home\/ch36924\/web\/owncloud.homepage.ch\/public_html:\/home\/ch36924\/web\/owncloud.homepage.ch\/software_data:\/home\/ch36924\/tmp) at \/home\/ch36924\/web\/owncloud.homepage.ch\/public_html\/lib\/private\/log\/owncloud.php#53”,“level”:3,“time”:“2020-10-25T13:12:12+00:00”,“method”:“GET”,“url”:"\/status.php"}
[Sun Oct 25 14:13:14.950370 2020] [fcgid:warn] [pid 18844] [client 89.217.19.247:51078] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/www/web113/html/owncloud/data/owncloud.log) is not within the allowed path(s): (/home/ch36924/web/files:/home/ch36924/web/owncloud.homepage.ch/public_html:/home/ch36924/web/owncloud.homepage.ch/software_data:/home/ch36924/tmp) in /home/ch36924/web/owncloud.homepage.ch/public_html/lib/private/log/owncloud.php on line 53
[Sun Oct 25 14:13:14.950402 2020] [fcgid:warn] [pid 18844] [client 89.217.19.247:51078] mod_fcgid: stderr: {“reqId”:“X5V56n8AAAEAAEmcVr0AAAAB”,“remoteAddr”:“89.217.19.247”,“app”:“remote”,“message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘web113m1’@‘localhost’ (using password: YES)”,“level”:4,“time”:“2020-10-25T13:13:14+00:00”,“method”:“GET”,“url”:"\/status.php"}
.
.
.
[Sun Oct 25 19:14:24.003989 2020] [proxy_fcgi:error] [pid 48978] [client 89.217.19.247:38450] AH01071: Got error ‘Access to the script ‘/home/ch36924/web/owncloud.homepage.ch/public_html/webdav/’ has been denied (see security.limit_extensions)\n’
[Sun Oct 25 19:15:25.394064 2020] [proxy_fcgi:error] [pid 53339] [client 89.217.19.247:40452] AH01071: Got error ‘Access to the script ‘/home/ch36924/web/owncloud.homepage.ch/public_html/webdav/’ has been denied (see security.limit_extensions)\n’
[Sun Oct 25 19:16:27.396020 2020] [proxy_fcgi:error] [pid 56173] [client 89.217.19.247:43076] AH01071: Got error ‘Access to the script ‘/home/ch36924/web/owncloud.homepage.ch/public_html/webdav/’ has been denied (see security.limit_extensions)\n’

Just read the error messages, it’s telling you everything you need to know:

Your user ch36924 is not allowed to write to another users home directory (makes sense to me).
So I guess you moved your installation between user accounts, and somewhere there are still old paths configured.

Grep your user directory for these old paths and fix them. Perhaps also check whether they also still exist in the db.

Check you mysql connection string.

1 Like

hi @OC_Newbie Did you also removed the config/config.php file?

I suppose you used the old database and you are trying to access the database with a new user that is not allowed ‘web113m1’@‘localhost’. Try to give them permits, as an example: https://doc.owncloud.com/server/10.5/admin_manual/installation/ubuntu_18_04.html#download-owncloud

Probably you have to change all the permits in the storage too and follow @eneubauer recommendations.

2 Likes

Yes, I have deleted all files from the old installation, including config.php. This file is missing in the files that I copied into the server directory, but was created/generated after first login with new user/pw-Settings.

Support tried a) to find the database of the former installation. Could not find. and b) to create a new database (mySQL). No success, again “access denied”.
BUT: gave me the advice to run the installation in the admin area of the hosting site. This worked!
Get some 510 Errors now and then (and some 502) during re-upload of my cloud files, but aside of this, it works.
Folks, thank you all a lot for your help!