1

I am creating the cronjob from my Plesk control panel.

The cron is like so:

0 0,3,6,9,12,15,18,21 * * * /usr/bin/php httpdocs/sources/australia.php >> /var/www/vhosts/website-here/logs/topfbk.log 2>&1 

The script runs and after 3 seconds it errors out, but it does not output anything to the log file so I am unable to know which is the cause.

This used to work on the same server using Ubuntu 18.04, I have upgraded to Ubuntu 20.04 and cannot seem to get this work.

5
  • have u tried runing directly from console?
    – JTE
    Commented Oct 24, 2020 at 21:51
  • @JTE same, I must mention that I am using php 7.4.3 cli Commented Oct 24, 2020 at 22:30
  • @Giacomo1968 I am referring to the log file that I am outputing to: /var/www/vhosts/website-here/logs/topfbk.log 2>&1 Commented Oct 24, 2020 at 22:30
  • It is a scraper that uses PDO, CURL. Checked them both, they are running on the server. Commented Oct 24, 2020 at 22:33
  • I have checked, the cli and the phpinfo() shows the same version, 7.4.3 Commented Oct 24, 2020 at 22:44

0

You must log in to answer this question.

Browse other questions tagged .