August 21, 2014, 9:51pm
I am trying to get Piwik up and running on an Nginx VPS I have. However I get this vague message during the installation process:
GET request to piwik.php failed. Try whitelisting this URL from HTTP Authentication and disable mod_security (you may have to ask your webhost).
I have tried setting up Nginx per these configurations:
I understand the purpose of this message. Every topic online wants to talk around Apache because even the error message assumes Apache. Would someone mind telling me how to do this with Nginx?
Thanks in advance!
August 22, 2014, 2:21am
I’m having this issue as well, mod security is not installed.
August 22, 2014, 9:49am
can you check in your server error log what error do you see logged there?
Same here - Nginx in front of Apache, on a VPS. Mod_security not installed.
August 23, 2014, 11:30am
August 23, 2014, 1:50pm
what happens is: in the first step of the installer Piwik tries to make a HTTP request to “piwik.php” file.
Could you try again to trigger the installer, and in the very first step, check with your browser debugging tool, look in the NETWORK panel, see what 500 error is returned from your server?
I did what you asked for, here is the result in Firefox’s network panel:
Error: 500 Internal Server Error
Connexion: Keep alive
Transfer encoding: chunked
Nothing in the nginx or apache log, but the following error in the PHP log every time I trigger the installation page:
[24-Aug-2014 09:29:30 UTC] Error in Piwik (tracker): Invalid idSite: ‘0’
August 24, 2014, 2:03pm
Something I noticed is, I went ahead and went through the installation process and when I go into Settings and then System Check, the error is not there.
August 25, 2014, 7:51pm
That was fast! Thank you!
September 2, 2014, 11:21am
Does it mean that with the current release i cannot do anything? I do not go to the next step.
September 3, 2014, 10:38pm
please upgrade to 2.6.0-rc1 where this issue is fixed:
Index of /
If you still have a problem with 2.6.0-rc1 install please post a new thread in this forum
I am using the 2.16.1 version and still seeing this error.
GET request to piwik.php
failed. Try whitelisting this URL from HTTP Authentication and disable
mod_security (you may have to ask your webhost). For more information
about the error, check your web server error log file.
After making this change, restart your web server.
May 23, 2016, 5:54am
Simple,… just Ignore it
Finally, I found what was wrong in my case. The error returned by piwik.php is simply due to the fact that it cannot open the file piwik/config/config.ini.php. It cannot open it because it does not exist. It creates the file on the next step of the installation. The error message has nothing to do with what’s going on.