Skip to main content

Cron Job not working

Comments

15 comments

  • techAMIGO
    Hello, hirschbergh Send us a screenshot of the cronjob you added to cPanel, if possible. Please check to see if it includes the timing you set and the command you entered.
    0
  • hirschbergh
    Its the Cron Job for WHMCS.
    */5 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/hostteufel/public_html/crons/cron.php
    0
  • techAMIGO
    Hi, it seems snmp module is enabled in the php but the snmp package not enabled in the server. please try install using the following command yum install net-snmp net-snmp-libs net-snmp-utils hope it will work.
    0
  • hirschbergh
    Its Ubuntu so the Code ist not working.. Is this then the Code apt update apt install snmpd snmp libsnmp-dev
    0
  • techAMIGO
    HI, yeah the above yum works only with centos/RHEL based systems. if the server is ubuntu, yes, try with the that apt commands.
    0
  • hirschbergh
    Nope wont work now i get emails which say docytype title critical error could not connect to the database...
    0
  • techAMIGO
    Hi, It seems above module installed and worked. now getting new errors where other modules are missing too from php like msqlnd so please run the command /opt/cpanel/ea-php74/root/usr/bin/php -m and see all necessary modules which needed for the whmcs working is installed or not.
    0
  • cPRex Jurassic Moderator
    Thanks, @techAMIGO !
    0
  • hirschbergh
    Cron Daemon
    Critical Error

    Critical Error

    Could not connect to the database.

    0
  • hirschbergh
    [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imap intl ionCube Loader json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix pspell readline Reflection session shmop SimpleXML snmp soap sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube24
    0
  • hirschbergh
    So...?
    0
  • techAMIGO
    On a quick look it seems php module requirements are satisfied for whmcs working. as mentioned in the whmcs System_Requirements page,
    0
  • cPRex Jurassic Moderator
    If you run the PHP file manually outside of cron, does that work?
    0
  • hirschbergh
    yes it works outside
    0
  • cPRex Jurassic Moderator
    It might be time to open a ticket with us so we can check this out. I don't see anything obviously wrong with the PHP configuration that would be keeping this from working. The only other guess I would have would be to try removing the user from CageFS is this is a CloudLinux machine with CageFS enabled, but if not, please create a ticket so we can look into this directly. If you are able to submit a ticket, please post the number here so I can follow along.
    0

Please sign in to leave a comment.