Jump to content

What user does Cron job run as?


mgaccess

Recommended Posts

Any one know what user the whmcs cron job runs as?

 

Here is the reason I'm asking if you care to know:

 

Disclaimer: I've added custom code to my invoicepdf.tpl to include a "username" on the invoice with each product which all works well except for the following issue. I'm trying to troubleshoot an issue where the cron job creates the invoices correctly but no longer captures the credit card payments to mark them as paid.

 

1) If I manually "attempt payment" from WHMCS for the invoices that were created via the cron job, the payment is captured successfully.

 

2) If I log in as root to the console and run the cron job manually, it captures the payment successfully.

 

I can't figure out why the scheduled cron job doesn't capture the gateway payments successfully and it's driving me nuts!! I thought maybe the cron job is trying to run as a user that doesn't have permissions to something needed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated