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?

feita há 2 anos939 visualizações
1 Resposta
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
MODERADOR
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas