Cron question


(MoonSilver) #1

Hi,
I getting such error, when trying use cron: php binary not found. Make sure php5 or php exists in PATH.

I have one thing, that my php5 server setuped like: .htaccess ->
RemoveHandler .php
AddType application/x-httpd-php5 .php

So maybe cron script think that it’s not php5, but it is php5 because piwik work fine, but need auto archiving, because having errors - out of memory.

Thanks


(Fabian Becker) #2

[quote=MoonSilver @ Jul 13 2010, 04:34 PM]Hi,
I getting such error, when trying use cron: php binary not found. Make sure php5 or php exists in PATH.

I have one thing, that my php5 server setuped like: .htaccess ->
RemoveHandler .php
AddType application/x-httpd-php5 .php

So maybe cron script think that it’s not php5, but it is php5 because piwik work fine, but need auto archiving, because having errors - out of memory.

Thanks[/quote]

As the error suggests please make sure that the binary is in one of the directories listed in you $PATH variable. Use a SSH login to show the path: echo $PATH
Make sure the php binary resides in one of those directories and if not add the directory the php-binary is in to the $PATH (search for a HowTo using Google).
.htaccess is not related to this problem.


(MoonSilver) #3

[quote=Fabian Becker @ Jul 14 2010, 12:06 AM]As the error suggests please make sure that the binary is in one of the directories listed in you $PATH variable. Use a SSH login to show the path: echo $PATH
Make sure the php binary resides in one of those directories and if not add the directory the php-binary is in to the $PATH (search for a HowTo using Google).
.htaccess is not related to this problem.[/quote]

Hi, Thank you for answer.
Well, i havent any console, but i got $PATH : /usr/bin:/bin
So i need check with my hosting where is setuped php?


(Thomas Seifert) #4

Yeah, thats the way to go.


(MoonSilver) #5

But what after that, if i got they where php installed, what next? I need put it into cron script or what? sorry for such stupid question