Jump to content

Question

Posted

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.

Screenshot2025-02-19at5_38_06PM.thumb.png.1929d4e72375c701026a2209d55bbfa9.png

Screenshot 2025-02-19 at 5.43.55 PM.png

4 answers to this question

Recommended Posts

  • 0
Posted
  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
Posted
  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

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...