Archive.php - Access forbidden


#1

Hi,

I can’t use misc/cron/archive.php as cronjob for replaceing archive.sh as recommended.

I have reviewed archive.php and detect a possible way to enter the credentials

But this also not worked.

How do I setup archive.php correctly?


(Thomas Seifert) #2

Give the url to your real piwik site instead of localhost!


#3

You can’t acccess them, it’s an internal domain.


(Thomas Seifert) #4

Not to me. to archive.php ;-).


#5

That’s my cronjob definition (execute part). the “special-piwik.domain” is the domain I can access the Piwik control panel - no additional path.


(Matthieu Aubry) #6

The script will load the token from the file config/config.ini.php is it created and correct?

Otherwise check your web server error logs
Maybe the problem is that the script is not allowed to do the request?


#7

Hi matt,

there is no token in config/config.inc.php or it is “salt”?


(Matthieu Aubry) #8

Then token is produced by the API CALL which in your case returns nothing. So probably the problemis your webserver blocks the request. Run archive.php and look in error logs.