Authz_core:error

Hello, having problems after last Matomo update. The website server ip cannot access to matomo.
Please help!

2023-03-07 11:00:18 UTC [apache][authz_core:error] [pid 91550] [client 35.214.167.151:12148] AH01630: client denied by server configuration: /home/u434-fi0qwvm3u34p/www/cescotveneto.it/public_html/wp-content/plugins/matomo/app/config/global.ini.php, referer: https://www.cescotveneto.it/wp-content/plugins/matomo/app/config/global.ini.php

Hi @Marzia
Can you check if the Apache user has rights access to Matomo files (777)?

Hi,

Perhaps you have to inspect your htaccess file(s).
Best regards

Got the same issue. But in my case the log is a bit different because I don’t use Wordpress:

429 [Sun Apr 16 17:35:28.424099 2023] [authz_core:error] [pid 4080655] [client [CENSORED]:52246] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/config/config.ini.php
430 [Sun Apr 16 17:35:28.436464 2023] [authz_core:error] [pid 4078815] [client [CENSORED]:52256] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/tmp/cache/tracker/matomocache_general.php
431 [Sun Apr 16 17:35:28.450330 2023] [authz_core:error] [pid 4080651] [client [CENSORED]:52270] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/tmp/
432 [Sun Apr 16 17:35:28.463335 2023] [authz_core:error] [pid 4078117] [client [CENSORED]:52272] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/tmp/empty
433 [Sun Apr 16 17:35:28.475825 2023] [authz_core:error] [pid 4078122] [client [CENSORED]:52288] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/lang/en.json
434 [Sun Apr 16 17:35:29.436255 2023] [authz_core:error] [pid 4080655] [client [CENSORED]:52298] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/config/global.ini.php
435 [Sun Apr 16 17:35:29.491251 2023] [authz_core:error] [pid 4078815] [client [CENSORED]:52312] AH01630: client denied by server configuration: /var/www/analytics.[CENSORED].de/config/global.ini.php

This is the automatically by Matomo generated .htaccess file:

# This file is auto generated by Matomo, do not edit directly
# Please report any issue or improvement directly to the Matomo team.

# First, deny access to all files in this directory
<Files "*">
<IfModule mod_version.c>
        <IfVersion < 2.4>
                Order Deny,Allow
                Deny from All
        </IfVersion>
        <IfVersion >= 2.4>
                Require all denied
        </IfVersion>
</IfModule>
<IfModule !mod_version.c>
        <IfModule !mod_authz_core.c>
                Order Deny,Allow
                Deny from All
        </IfModule>
        <IfModule mod_authz_core.c>
                Require all denied
        </IfModule>
</IfModule>
</Files>

This error hits every time I enter the system check in Matomo. The files does have Apache permissions (www-data:wwww-data, -rw-r--r--).

Here the config in apache2.conf:

<Directory "/var/www/">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

But despite the error occurs Matomo works without any issue (especially Apache piped logging).