View Single Post
Old 08-12-2017, 08:29 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Did you edit the conrab to a
(cd /path/; php file.php)

try it manually does the cron work manually?

maybe without the \. that is from an old php 5 install? or just

php /path/file.php

su 'user'
password ********

crontab -e

make a user crontab for this

then verify $ stat [] that any file to be written to is permissions user:www-data otherwise the php will not be able to write to the file
you could go up from 644 to 666 and try it also

If it is a PDO MySQL make sure you settings are correct for the database



make sure there is a \n (newline) at the end of the command

leave the > /dev/null 2>&1 off for now


I don't see it working
Is there some file affected -- can you stat a date time?

Mail servers are a hassle to set up correctly -- why do you really need an email -- to feel good? Can't you tell by the website's updates if the cronjob is working?
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote