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.
0 Panormitis Posted February 21 Report Posted February 21 On 2/20/2025 at 1:44 AM, 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. Expand 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.
0 Media Directory Posted February 21 Author Report Posted February 21 I did what i was told. Cron Job still does not run automatic.
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
0 Panormitis Posted February 22 Report Posted February 22 On 2/21/2025 at 9:55 PM, Media Directory said: I did what i was told. Cron Job still does not run automatic. Expand Contact your web hosting company or server administrator. Perhaps a custom php path is used or crond service is not running. On 2/21/2025 at 10:06 PM, 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 Expand cron accesses files directly, not via apache/webserver. .htaccess shouldn't matter
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now