New Cron Features Run under wrong Directory
In the New Cron Feature if you run a Cron Task it will not run under the correct Directory for that User. So Includes and Requires Fail.
This can be fixed by placing a
cd /home/12953-3963.cloudways…pps.com/username/public_html &&
in front of the php /scripttorun
So a completed version would be
50 6 * * * cd /home/12953-3963.cloudwaysapps.com/username/publichtml && php /home/12953-3963.cloudwaysapps.com/username/publichtml/nightly.php
1
vote
