• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

cant get the cron job to work

C

cracicot

Guest
I have tried numerous methods.
Errors:
/bin/sh: line 1: /bin/php: No such file or directory

/bin/sh: line 1: /usr/local/psa/admin/bin/php: Permission denied

Could not open input file: http://xxx.com/images/export/backup.php

/bin/sh: line 1: http://www.xxx.com/images/export/backup.php: No such file or directory

No matter what I do, I cannot get the cron job to work.
I am sure it has to do with with the path, which I have tried about 8 different ones that should work, or the path for the php file to run.

Could someone please help me run this darn thing?
 
Are you trying to run a php file? Did you indicated the absolute path in the server (not http) something like:

/home/httpd/vhosts/domain/httpdocs/path_to_the_php_file

Cheers,

DXTrim
 
Back
Top