skip to Main Content

i have problems with Cron jobs, it’s always said “No such file or directory”

I tried everything but it’s still not working on that cPanel.

-q /home/user/tracker.domain.com/cron/3.php

It’s using subdomain who is not in public_html.

2

Answers


  1. You have to specify the full php binary path inside the cronjob. Assuming your php binary full path is /usr/bin/php then your cronjob will look like this:

    /usr/bin/php -q /home/user/tracker.domain.com/cron/3.php
    
    Login or Signup to reply.
  2. You should use php before -q in your cron jobs like this

    php -q /home/user/tracker.domain.com/cron/3.php

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search