View Single Post
Old 08-15-2017, 10:56 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
no: cd /usr/share//../../ is an example path

the way it works, is the cron will cd to that location ; (<stop next command) php ./(execute this file)
then you need no path to the file

try that manually as the cron would do it
$ cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php
see if it works ok in a bash shell (ssh) and NOT a browser

so
Code:
0 16 * * * (cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php)
try without the ./ if that does not work
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote