2

I have a file:

-rw-r--r-- 1 michal michal 1679 Apr 24 06:55 acx.php

The owner file acx.php is user michal, so I create cron using:

sudo crontab -u michal -e

My cron:

*/10 * * * * php /var/www/html/cron/exchange/acx.php

In log cron I see:

Apr 25 04:10:01 savecoin CRON[9722]: (michal) CMD (php /var/www/html/cron/exchange/acx.php)

I change the permission file acx.php on 777, but it did not help. When I run the cron manually, the data correctly saves to the database. I do not know what else I can change so that cron can write data to the database

I use php7.2, apache2 http server and MySQL database.

ponsfrilus
  • 596
  • 1
  • 5
  • 17
michal
  • 161
  • 1
  • 10

0 Answers0