I have a cron job trying to run a PHP script:
(the path is not the actual path)
this is the error I get
Could not open input file: /home/mydirectory/path/to/myfile.php
When I run this as a shell command the script runs fine (using exactly the same command)
Permissions are 755 for the file.
I have the “#!/usr/local/bin/php -q” at the top of the file. but I get the same error whether it is there or not.
i am adding the cron job through the web panel.
What am I missing here?