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?

demandé il y a 2 ans939 vues
1 réponse
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
MODÉRATEUR
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions