matomo-org / matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
https://matomo.org
GNU General Public License v3.0
120 stars 25 forks source link

403 Forbidden nginx When accessing Reporting #1089

Closed Redmark53 closed 6 months ago

Redmark53 commented 6 months ago

Matomo is installed and tracking enabled. When clicking on Reporting or Tag Manager, it opens blank page with "403 Forbidden nginx" at top. URL is: https://benzagel.ca/wp-content/plugins/matomo/app/index.php?idSite=1

Debugging has been enabled in wp-config.php. Server says both Apache and nginx are running. Site is running on Cloudways Managed Server with WordPress 6.4.3

              # Matomo

Endpoints

Crons

Mandatory checks

Optional checks

Matomo Settings

Logs

WordPress

WordPress Plugins

MU Plugins

Plugins

Server

PHP cli

Database

Browser

diosmosis commented 6 months ago

Hi @Redmark53, this is a webserver configuration issue. Your nginx configuration is not allowing access to the /wp-content/plugins/matomo/app/index.php file or is forwarding the request to a different file.

This FAQ: https://matomo.org/faq/wordpress/403-error-matomo-for-wordpress-plugin/ may have information that will allow you to solve this problem yourself. Otherwise you may have to contact Cloudways.

Redmark53 commented 6 months ago

Thanks @diosmosis, this worked. I was able to find the setting in Cloudways that enables Direct PHP Files Access. The Matomo Reporting page pops right open now.