Media Directory Posted February 20 Report Posted February 20 My cron job does not run automatic. My cron command is the following: * * * * * /usr/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1 I have included Blesta screenshot and DirectAdmin screenshot. Quote
0 panormitis Posted February 21 Report Posted February 21 23 hours ago, Media Directory said: My cron job does not run automatic. My cron command is the following: * * * * * /usr/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1 I have included Blesta screenshot and DirectAdmin screenshot. As Blesta indicates, example cron command, it's not necessarily correct, it's just an example to get you started configuring. You are running DirectAdmin, the path of the php binary is different. Change the part /usr/bin/php to /usr/local/bin/php In Minute text box set it as */5 not just 5. Assuming you want the cronjob to run every 5 minutes. You could also just put a single asterisk in the Minute text box, that would make the cronjob to run every minute, but it's not necessary to run that often. Quote
0 Media Directory Posted February 21 Author Report Posted February 21 I did what i was told. Cron Job still does not run automatic. Quote
0 Ben-iguanacloud Posted February 21 Report Posted February 21 My htaaccess file cuts out the index.php, it's possible yours does too. My cron job stopped running until I took that out of the cron job command aswell Quote
0 panormitis Posted February 22 Report Posted February 22 8 hours ago, Media Directory said: I did what i was told. Cron Job still does not run automatic. Contact your web hosting company or server administrator. Perhaps a custom php path is used or crond service is not running. 8 hours ago, Ben-iguanacloud said: My htaaccess file cuts out the index.php, it's possible yours does too. My cron job stopped running until I took that out of the cron job command aswell cron accesses files directly, not via apache/webserver. .htaccess shouldn't matter Quote
Question
Media Directory
My cron job does not run automatic. My cron command is the following:
* * * * * /usr/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1
I have included Blesta screenshot and DirectAdmin screenshot.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.