[details=“Support intro”]
nextcloud-10.0.4-2.el7.noarch
Centos 7.5
Apache 2.4.6-80
php 7.2.9
The issue you are facing:
After logging into my web interface, I simply get an “access forbidden”.
Is this the first time you’ve seen this error? Y
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'log_type' => 'syslog',
'datadirectory' => '/var/lib/nextcloud/data',
'updatechecker' => false,
'check_for_working_htaccess' => false,
'asset-pipeline.enabled' => false,
'assetdirectory' => '/var/lib/nextcloud',
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/share/nextcloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/lib/nextcloud/apps',
'url' => '/apps-appstore',
'writable' => true,
),
),
'instanceid' => 'ocfqcvgj4wvz',
'passwordsalt' => 'some_random_salt',
'secret' => 'random_hash',
'trusted_domains' =>
array (
0 => 'macroscian.com',
'www.domain.com',
),
'overwrite.cli.url' => 'https://domain.com/nextcloud',
'dbtype' => 'mysql',
'version' => '9.1.4.2',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'password',
'logtimezone' => 'UTC',
'installed' => true,
'mail_smtpmode' => 'php',
'mail_from_address' => 'mail',
'mail_domain' => 'domain.com',
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.domain.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'mail@domain.com',
'mail_smtppassword' => 'password',
'mail_smtpauthtype' => 'PLAIN',
);
The output of your Apache/nginx/system log in /var/log/____
:
Tue Aug 28 20:19:17.732687 2018] [:error] [pid 19185:tid 140035462461184] [client IP:50817] client denied by server configuration: /usr/share/nextcloud/core/img/loading-dark.gif
[Tue Aug 28 20:19:17.743754 2018] [:error] [pid 19185:tid 140035479246592] [client IP:50815] client denied by server configuration: /usr/share/nextcloud/index.php
[Tue Aug 28 20:19:18.036415 2018] [:error] [pid 19185:tid 140035479246592] [client IP:50815] client denied by server configuration: /usr/share/nextcloud/cron.php
[Tue Aug 28 20:19:18.043571 2018] [:error] [pid 19185:tid 140035462461184] [client IP:50817] client denied by server configuration: /usr/share/nextcloud/core/img/background.jpg, referer: https://domain.com/nextcloud/core/ssl_error_log
I’m not sure where to look exactly. I haven’t changed any nextclod configuration files in /etc/httpd/conf.d:
nextcloud-auth-any.inc looks like this:
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from all
</IfModule>
Any ideas where the problem might reside?
Selinux is disabled.
[later edit:]
jourrnalctl -u php-fpm --no-pager | less (relevant output only):
{PHP} Function create_function() is deprecated at /usr/share/nextcloud/lib/private/Route/Route.php#155
ool www[32533]: {PHP} Declaration of OC\Files\Storage\Local::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) must be compatible with
OC\Files\Storage\Common::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) at /usr/share/nextcloud/lib/private/Files/Storage/Local.php#43
I’ve no idea why, but what yesterday was a “forbidden access” error, now has turned into a HTTP 500 ERROR.