Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LAMP] CRON job #1735

Closed
huzanf opened this issue Dec 9, 2024 · 3 comments
Closed

[LAMP] CRON job #1735

huzanf opened this issue Dec 9, 2024 · 3 comments
Assignees
Labels
how-to How to issues reported by users lamp/mamp/wamp/xampp solved stale 15 days without activity triage Triage is needed

Comments

@huzanf
Copy link

huzanf commented Dec 9, 2024

Describe your issue as much as you can

Hi,

I have setup a CRON job. However, I don't think it is working.

*/5 * * * * /usr/bin/php  /opt/bitnami/FDU/razorpay_webhook_monitor.php >> /opt/bitnami/FDU/cron.log 2>&1
*/5 * * * * /usr/bin/php  /opt/bitnami/FDU/razorpay_webhook_monitor.php >> /opt/bitnami/FDU/webhook_downtime_log.txt 2>&1
*/5 * * * * /opt/bitnami/FDU/razorpay_webhook_monitor.php >> /opt/bitnami/FDU/cron.log 2>&1

Is there anything wrong in the above lines?

Upon running: cat /var/log/syslog | grep CRON I get the below error:
cat: /var/log/syslog: No such file or directory

@huzanf huzanf added the how-to How to issues reported by users label Dec 9, 2024
@github-actions github-actions bot added the triage Triage is needed label Dec 9, 2024
@jotamartos
Copy link
Collaborator

That's a generic question about cron, please check any online resource to know how to verify if cron is working. For example, you have useful information here

https://askubuntu.com/questions/85558/verify-if-crontab-works

*/5 * * * * /usr/bin/php /opt/bitnami/FDU/razorpay_webhook_monitor.php >> /opt/bitnami/FDU/cron.log 2>&1

By the way, if you are using Bitnami LAMP, you should be using the Bitnami's php bitnami at /opt/bitnami/php/bin/php

@jotamartos jotamartos changed the title [<LAMP>] CRON job [LAMP] CRON job Dec 10, 2024
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Dec 26, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how-to How to issues reported by users lamp/mamp/wamp/xampp solved stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants