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?

已提問 2 年前檢視次數 939 次
1 個回答
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
管理員
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南