Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc/cron
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-08-19 10:22:53 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-19 10:22:53 +0400
commitb64f149e6bae2392cedc59476a2d9fa992290d80 (patch)
tree7e3ec56bc94a8080d03f467cf405a24dd772befb /misc/cron
parent8d1a98d00338a3fbbb9fd9f8c23b3e74e17af62a (diff)
refs #6013 #6012 make sure not to call console in case PHP is type CGI. In type CGI the argv should not be registered anyway unless maybe for instance register-argc-argv is enabled
Diffstat (limited to 'misc/cron')
-rw-r--r--misc/cron/archive.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php
index 33efc8b319..015a827986 100644
--- a/misc/cron/archive.php
+++ b/misc/cron/archive.php
@@ -38,11 +38,14 @@ Using this 'archive.php' script is no longer recommended.
Please use '/path/to/php $piwikHome/console core:archive " . implode('', array_slice($_SERVER['argv'], 1)) . "' instead.
To get help use '/path/to/php $piwikHome/console core:archive --help'
See also: http://piwik.org/docs/setup-auto-archiving/
+
+If you cannot use the console because it requires CLI
+try 'php archive.php -- url=http://your.piwik/path'
-------------------------------------------------------
\n\n";
}
-if (isset($_SERVER['argv']) && Piwik\Common::isPhpCliMode()) {
+if (isset($_SERVER['argv']) && Piwik\Console::isSupported()) {
$console = new Piwik\Console();
$console->init();