Hello!
I´m running an apache with suexec and php fcgi. Scripts like wordpress are running great. But piwik is very slow and shows up the message “Oops… problem during the request, please try again.”. The error.log of the apache says the following:
client denied by server configuration: /piwik/index.php, referer: Piwik › Error
please find my .htaccess of the / directory here: http://pastebin.com/w2eVuBQv
It only contains some rules for wordpress, w3c total cache plugin (for wordpress). I only denied some files of wordpress.
Also no .htaccess is in the directory of piwik.
I’m using Apache and I was having the error a lot for the loading of blocks in the dashboard. Not always, though.
I suspected (given the very short time between the loading gif and the error) that this was related to some internal max_execution_time setting, so I changed the vhost configuration to force max_execution_time to 60 (inside the tag:
php_admin_value max_execution_time 60
Then I reloaded Apache and didn’t have the issue since the change yesterday.
Looking into the code, there is no obvious part where the max_execution_time is set to anything other than 0, but my php.ini file was setting it to max_execution_time=30 and the error was clearly appearing after only 5 seconds or less, hence the decision to try (just for that virtual host) with a php_admin_value, which ensures whatever PHP code running on this vhost will not be able to change that value through code.