Hi all,
I am looking for the right command to give to run a php file using a cron job.
I have tried the following...
/usr/local/cpanel/bin/jailshell: -c: /home/my_username/public_html/folder/file.php"
/usr/local/cpanel/bin/jailshell -q /home/my_username/public_html/folder/file.php"
/usr/local/bin/php -q /home/my_username/public_html/folder/file.php"
/usr/bin/php -q /home/my_username/public_html/folder/file.php"
and
/home/my_username/public_html/folder/file.php"
I get this error in an email...
/usr/local/cpanel/bin/jailshell: -c: line 0: unexpected EOF while looking for
matching `"'
/usr/local/cpanel/bin/jailshell: -c: line 1: syntax error: unexpected end of file
What command should I give to run a php file from a cron job?
My linux server info:
cPanel Version
64.0 (build 12)
Apache Version
2.4.25
PHP Version
5.6.30