-a Run interactively
-c | Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value ‘bar’
-e Generate extended information for debugger/profiler
-f Parse and execute .
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r Run PHP without using script tags <?..?>
-B <begin_code> Run PHP <begin_code> before processing input lines
-R Run PHP for every input line
-F Parse and execute for every input line
-E <end_code> Run PHP <end_code> after processing all input lines
-H Hide any passed arguments from external tools.
-s Output HTML syntax highlighted source.
-v Version number
-w Output source with stripped comments and whitespace.
-z Load Zend extension .
args… Arguments passed to script. Use – args when first argument
starts with - or script is read from stdin
–ini Show configuration file names
–rf Show information about function .
–rc Show information about class .
–re Show information about extension .
–ri Show configuration for extension ."][/quote]
I have tried pointing to archive.sh instead of .php but get exactly the same.
(13:26:42) [~] php5 /var/www/......../archive.php --url=http://mysite.com/
X-Powered-By: PHP/5.2.13
Content-Type: text/html; charset=utf-8
[2012-02-29 12:26:59] [219da620]
[2012-02-29 12:26:59] [219da620] Usage:
[2012-02-29 12:26:59] [219da620] /path/to/cli/php "/var/www/......./archive.php" --url=http://your-website.org/path/to/piwik/ [arguments]
[2012-02-29 12:26:59] [219da620]
[2012-02-29 12:26:59] [219da620] Arguments:
[2012-02-29 12:26:59] [219da620] --url=[piwik-server-url]
[2012-02-29 12:26:59] [219da620] Mandatory argument. Must be set to the Piwik base URL.
[2012-02-29 12:26:59] [219da620] For example: --url=http://analytics.example.org/ or --url=https://example.org/piwik/
[2012-02-29 12:26:59] [219da620] --force-all-websites
[2012-02-29 12:26:59] [219da620] If specified, the script will trigger archiving on all websites.
[2012-02-29 12:26:59] [219da620] This can be used along with --force-all-periods to trigger archiving on all websites and all periods.
[2012-02-29 12:26:59] [219da620] --force-all-periods[=seconds]
[2012-02-29 12:26:59] [219da620] Triggers archiving on websites with some traffic in the last [seconds] seconds.
[2012-02-29 12:26:59] [219da620] [seconds] defaults to 604800 which is 7 days.
[2012-02-29 12:26:59] [219da620] For example: --force-all-periods=86400 will archive websites that had visits in the last 24 hours.
[2012-02-29 12:26:59] [219da620] --force-timeout-for-periods=[seconds]
[2012-02-29 12:26:59] [219da620] The current week/ current month/ current year will be processed at most every [seconds].
[2012-02-29 12:26:59] [219da620] If not specified, defaults to 3600.
[2012-02-29 12:26:59] [219da620] --accept-invalid-ssl-certificate
[2012-02-29 12:26:59] [219da620] It is _NOT_ recommended to use this argument. Instead, you should use a valid SSL certificate!
[2012-02-29 12:26:59] [219da620] It can be useful if you specified --url=https://... or if you are using Piwik with force_ssl=1
[2012-02-29 12:26:59] [219da620] --help
[2012-02-29 12:26:59] [219da620] Displays usage
[2012-02-29 12:26:59] [219da620]
[2012-02-29 12:26:59] [219da620] Notes:
[2012-02-29 12:26:59] [219da620] * It is recommended to run the script with the argument --url=[piwik-server-url] only. Other arguments are not required.
[2012-02-29 12:26:59] [219da620] * This script should be executed every hour via crontab, or as a deamon.
[2012-02-29 12:26:59] [219da620] * You can also run it via http:// by specifying the Super User &token_auth=XYZ as a parameter ('Web Cron'),
[2012-02-29 12:26:59] [219da620] but it is recommended to run it via command line/CLI instead.
[2012-02-29 12:26:59] [219da620] * If you use Piwik to track dozens/hundreds of websites, please let the team know at hello@piwik.org
[2012-02-29 12:26:59] [219da620] it makes us happy to learn successful user stories :)
[2012-02-29 12:26:59] [219da620] * Enjoy!
[2012-02-29 12:26:59] [219da620]
If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0777 (with your FTP software, right click on the directories, permissions).