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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인