Jump to content

Cron not working


coffee23

Recommended Posts

Hi,

 

The following is sending out invoice reminders:

 

/usr/bin/php -q /home/#######/public_html/billing/admin/cron.php > /dev/null

 

However i am not getting any email confirmations of the cron job, nor is it updating the usage stats (box is checked in admin).

Link to comment
Share on other sites

Hey,

 

If you look on

 

whmcs/admin/configauto.php

 

or Configuration > Automation Settings

 

you can check what to be sent....

 

I also recommend that you use the second cron job via cPanel and not PHP...

 

From,

Adam

Link to comment
Share on other sites

Hi,

 

The email address is correct in the general configuration.

 

When i run the linux cron all i get is the following in an email:

 

  '.__FILE__.' has been encoded with the [1]ionCube PHP Encoder and requires
  the   free   '.basename($__ln).'   [2]ionCube   PHP   Loader   to   be
  installed.');exit(199); ?>
  0y4hYD04GfaDphRUCzJNklafgbpk+jgWu+SxqgL3kVkygQwMUYf7t7LNGRFuBO2D7fZYb7brH5kJ
  byEAdqWt9n6p3XnzNvWw7natdupQcZabI0eq5DVdyBTGLpS4XLHxthOkTbjUy9QrpCdcnZ8r9Wu7
  6LY5kGEmu/swknCplelLSzYqja6fyXPyFs30zVvUuVPmNoJvoQYpFz37l8UdnoEhmLsIZcfO0I6s
  CeX29uxFH13Ue4b8Fm1x3pcdizYzdkqHxROtdBpkWsOF42ezfoMqv6FSN+8asH5Ehz79U1cap3bt
  YT64bsHzuXOckoYYqbVE1ZXSe3Qtevme9KM/SOh/ILvFLkFN+fbTg/AJMaBMefb4V+83QBZRn/Kf
  5Voi9cjImToupepn6n/mfbLmuDVPo2zwS8fhNnjyrjlyi3BGoaT+Vno8FyMXCR5KQgjfKdqEJQ2R
  Iq/6KIh0J36WI9KtYT1n4PwGJ2cHoF8AcT2IA5zf8SD07VFM4T3+vAqfZ1caKoCYgfc7rCplqjj4
  PkeOEq4qQFNfiOFC7+D95YKfZiWomNYoefQxk8ONnqWzzZqx1s5KfHp4YjaC//2LsfU01cS3hCQK
  ZSwRrVJO1byJhjSKpcLb4QA6rRQHY/T4nN6xfIvp2nuNA3OkhJC+/aPlyMy4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5QU4y8BuftFY5XtBmc7IGe3sQkWnVZAqFqkTnZr6jKkDLX7D6Ju5hhYLNg
  cxDvfhOOXh9Ba0B3ny/S/cJZgYMaywNYIlZdVwo3hQQSXLdGpfW4RoGFK/heRvb9eTWz+bvN7BTH
  q3ZKxnIjAvByVPnteixc3dTyPWtuz6ZbH9mU2hYnz1OLvIHA9h8HzE2Rfh9IW8Wn3mvY/2ZyHIAX
  FJjqLm6hKKnh2LeiKjMvWHF2zJxcJhGUsIXZlODQsC2hPPCrAr1sd3Hnr7SbfBC6VzLeeJTNZqcQ
  2thTS+OchRmJrxoDPHGmfr+zzvthJU3fpWFGHEhqtb3JaC3oeQFI8wpsJ3sil+MR2bIqJ0tihicq
  eiQ66GKaslJ1T0Sq3XM18eGZyY9Yx7VfFelLD+v42k4+zsvZKCI7EZ99Pde2Ip84SpREmDbKMbQn
  sTg21Fx7jcrETY3WqKwPXrNonifVLMojbcB3qbYPlRO6OyWuiffFkdUvTUTDZtbcXBGQsgCIaGGf
  QAYCKmh2hgAiQXtJDFiNJHzYvfeDT2PfWbKn1oPwRPiQJ9u0Ayq5aeynC8usUhgZ/RKfx8ndxVVW
  P5xBhsKBZ8aRVBO0uA9DFUMyFyKqk0==

References

  1. [url]http://www.ioncube.com/[/url]
  2. [url]http://www.ioncube.com/loaders.php[/url]

 

Also the linux cron dont send me a invoice reminder (on a temp account) but the PHP one does. :?

Link to comment
Share on other sites

Hi,

 

Just to add to the above post, when i got the above this morning i did request that our sys admin install ioncube on the server (as i thought it might be something to do with that), and he notified me that it was installed.

 

EDIT:

 

I just ran "grep username /var/log/cron" in SSH and got the below on the two crons:

 

Aug 23 16:30:01 host crond[25220]: (username) CMD (/usr/bin/php -q /home/username/public_html/billing/admin/cron.php > /dev/null)
Aug 23 16:35:40 host /usr/bin/crontab[25607]: (username) REPLACE (username)
Aug 23 16:36:01 host crond[15699]: (username) RELOAD (cron/username)
Aug 23 17:05:13 host /usr/bin/crontab[28874]: (username) LIST (username)
Aug 23 17:05:13 host /usr/bin/crontab[28876]: (username) LIST (username)
Aug 23 17:05:28 host /usr/bin/crontab[28912]: (username) REPLACE (username)
Aug 23 17:05:32 host /usr/bin/crontab[28917]: (username) LIST (username
Aug 23 17:05:32 host /usr/bin/crontab[28919]: (username) LIST (username)
Aug 23 17:06:01 host crond[15699]: (username) RELOAD (cron/username)
Aug 23 17:09:01 host crond[29116]: (username) CMD (lynx -dump /home/username/public_html/billing/admin/cron.php)
Aug 23 17:21:37 host crontab[29952]: (root) BEGIN EDIT (username)
Aug 23 17:21:47 host crontab[29952]: (root) END EDIT (username)

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