Lightsail/wordpress cron job not working

0

I recently migrated a wordpress site to lightsail. This site requires a cron job that runs on an hourly basis to send email reminders. The site works great but when the cron job runs it doesn't send the notifications, the job never finishes, and seems hang the site after some time. I've tried running both as bitnami (crontab -e) and as root (sudo crontab -e) neither work and both exhibit the same behavior. Following is the command line I am using for the cron job:

0 * * * * /opt/bitnami/php/bin/php -q /bitnami/wordpress/wp-content/plugins/modern-events-calendar/app/crons/booking-reminder.php

I suspect I am doing something wrong or missing something. The same site and job ran fine on bluehost before moving to lightsail.

  • Have you tried running the script directly to make sure there aren't any problems with it?

  • Have you found a solution?

posta 2 anni fa939 visualizzazioni
1 Risposta
0

Is the job directly sending emails through SMTP on port 25? If so, have you followed the steps to allow port 25 use on your instance? https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-port-25-throttle/

AWS
MODERATORE
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande