My cron job does not run automatically

Media Directory

Verified User
Joined
Aug 16, 2024
Messages
7
My cron job does not run automatically. I do not know what to do. I have included a screenshot below. My cron code is the the following:

/usr/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1
 

Attachments

  • Screenshot 2025-02-19 at 5.38.06 PM.png
    Screenshot 2025-02-19 at 5.38.06 PM.png
    901.7 KB · Views: 23
This look like CLI using some unsupported PHP version of that billing software.

If you have multiple PHP version, ensure you using same PHP version between PHP-FPM and CLI,

since PHP-FPM is running fine, so just matching the CLI version with PHP-FPM.
 
How do I do this? I have been unable to solve it even with Blesta forum advice. I will try anything. "ensure you using same PHP version between PHP-FPM and CLI". (????)
 
"ensure you using same PHP version between PHP-FPM and CLI". (????)
Check in your settings which php you are using on your domain. Suppose you're domain is running on php 8.2 then use like this in your crontab:
/usr/local/php82/bin/php /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1

I thought this was done automatically but probably I'm mistaken.
 
Richard G I love your advice. I sense that i am almost solving it. Still does not work automatic. My modified URL is the following:

/usr/php82/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron/?cron_key=qkPQmLLb > /dev/null 2>&1

URL which Blesta gives is the following:

* * * * * /usr/bin/php -q /home/magazin2/domains/magazinedirectory.net/public_html/index.php cron > /dev/null 2>&1
I have include the DirectAdmin Snapshot and the Blesta Snapshot.
 

Attachments

  • Screenshot 2025-02-21 at 8.16.15 PM.png
    Screenshot 2025-02-21 at 8.16.15 PM.png
    848.8 KB · Views: 6
  • Screenshot 2025-02-21 at 8.16.33 PM.png
    Screenshot 2025-02-21 at 8.16.33 PM.png
    966.5 KB · Views: 5
Back
Top