Knowledge Base

23.02.11 called by "cronjob" from webfrontend fails

This almost drove me mad today. i was working on a webserver from Domainfactory and wanted to have a cronjob which should call -update

Unfortunately you cannot create cronjobs from shell but have to use their tool from the webfrontend to set up cronjobs. what happened is, that the cronjob never executed because reported all the time:

Did you use the correct URL ?

because it could not find the conf.file. however, the conf-file was there

The reason was, that this "cronjob" was actually some script from Domainfactory which was called by the webserver,and it set the Enviroment Variable "GATEWAY_INTERFACE" to 


But if finds this variable, it thinks it is called by a browser:

"- ${tagbold}Did you use the correct URL ?${tagunbold}${tagbr}\n";
"Example: localhost/awstats/;

The solution is to let this "cronjob" call some other script which before it calls empties the env value:


suddenly it started working.

drove me mad for 2 hours!


<- Zurück zur Übersicht