New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make ./console core:archive work on CGI (use case 1&1 hosting/managed server) #6012
Comments
Yeah, i have the same Problem. Wondering why i doesent have even 1 Visitor today. Please fix this. |
I just ran into the same issues as of 8/15/2014 when Piwik updated to latest version (2.5.0). I was able to archive without I am also getting the following error: Piwik Console is known to be not compatible with PHP-CGI (you are using cgi-fcgi). Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..." I am in hopes to assist in any way possible, though I am at a complete lose on why for the failure. If anyone has any ideas in how to move forward, please "toss" some this way Thanks |
Same problem here on Strato webservers (possibly the same boxes the 1&1 managed servers run on). |
I'd recommend to try two options, they could work: Web Archiving: In a cron you could do something like archiver.php and replace |
Web Archiving archiver.php The only way archiving is possible at the moment is the manual way when calling the PIWIK backend. |
Have you tried to run the archiver.php with a space after
|
…y that we will find a CGI php binary and we should fallback to use curl / web instead of executing a console command which does not support CGI. We would otherwise not detect whether the binary is CGI in case the php binary is named php54 etc. and not php54-cgi
With or without the space: it's not working and demands php-CLI |
…I. In type CGI the argv should not be registered anyway unless maybe for instance register-argc-argv is enabled
OK. As it worked for me using CGI I reckon your PHP registers
with this:
Also try to make the previous change in |
Great! It works! After changing these two files archive.php works again as it did before 2.4/2.5 without any error messages. Thank you! Will these changes make it into the next version of PIWIK? |
sure. I'll close this issue now. In case it doesn't work for someone feel free to reopen |
@tsteur nice fix Thomas! this will solve many user's trouble. |
Since PIWIK 2.5 archiving and the archive cron only works with PHP-CLI.
But there are hosters out there, which do not offer PHP-CLI (e.g. 1&1 on manged servers). On those servers archiving stopped working with version 2.5 of PIWIK. You get the error:
Piwik Console is known to be not compatible with PHP-CGI (you are using cgi-fcgi). Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..."
Archiving must be made possible to run with cgi-fcgi as it did in PIWIK versions before 2.5.
The text was updated successfully, but these errors were encountered: