Cronjob Error

Hello everybody!

I am getting this cronjob error and I cannot seem to find the solution.

My cronjob looks like this:
www/site/piwik/misc/cron/archive.php /usr/local/bin/php

I have also added this to the first line of the archive.php file: #!/usr/local/bin/php
(I did that because it works with another cronjob I have.)

This is the Error I get:


[2013-10-17 19:28:01] [18deree2] ERROR: archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/ 
Error in the last Piwik archive.php run: 
archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/ 
Fatal error: archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/  in /is/htdocs/xxxxxxxxx/www/site/piwik/misc/cron/archive.php on line 574

Remember I added one more line at the top so it all moves one line down. I tried adding my piwik url to the file directly at the beginning where it says [arguments] but that didn’t work either…

Can someone explain to me what I am supposed to do? I’m really not that webmaster kind of guy^^

like it says, add --url=http://example.org/piwik/

Well that’s the thing… I have!

it’s like that: https://static.mydomain.com/piwik/

For some reason she can’t read it though.

Looks like the parameter is not read. Are you sure you wrote the right thing?

Yes. That’s kind of the thing you check before opening a topic, right? (:P)

I did upload ALL the files in Binary mode, system check says everything okay. (Part from the file that has my url in it now, that throws an error which is kinda unchique looking but sure, working…)

So what can I try next? I have no idea at all.

Your cron job looks like this

www/site/piwik/misc/cron/archive.php /usr/local/bin/php

it should look like

/usr/local/bin/php /your/path/here/www/site/piwik/misc/cron/archive.php --url=http://example/piwik

Really? I’m on a managed virtual machine, I’m pretty sure I can’t access anything below the /www directory?
I’ll give it a shot though. Do I need to add the shebang statement to the top of the file still?

Please ask someone who knows about system admin he can setup for you easily…