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

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...