Avatar of ZURINET
ZURINET
 asked on

cronjob cannot run

Hi all I need to setup a conjob on FreeBSD

The command I need to run is.. see below
I am getting the error =  php5: not found

0,15,30,45 * * * * cd /home/smallwor/www/mydomainproject.ch/SwiftRiver; php5 index.php --uri=process >> application/logs/process.log 2>&1

Open in new window


I am just woundering if there is a syntax error within this command.

Thanks for your help

ps
the local config file is /usr/local/php53/etc/php-profiles/php53/standard/php.ini
Unix OSPHPApache Web ServerFreeBSD

Avatar of undefined
Last Comment
Amar Bardoliwala

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gerwin Jansen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Cornelia Yoder

Do you have a line at the top of your cron job telling the system what program should run the cron job?

For example:

#!/usr/www/cgi-bin/php5.cgi
<?php
Amar Bardoliwala

Hello ZURINET,

see if following helps you.

http://forums.freebsd.org/showthread.php?t=10256

http://www.freebsdblog.org/6/cron-job/

Thank you.

Amar Bardoliwala.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck