Jump to content

Cron job failing.


Recommended Posts

Firstly, there was multiple versions of PHP installed. This was due to installing LAMP and then installing another version over it that is compatible with WHMCS. Ubuntu V14...

 

My cron is: */5 * * * * php -q /home/Companyname/Support.Foldername/crons/cron.php all >> /home/omitly/logfile.log 2>&1

 

The last bit is to log all the outputs to file for easier troubleshooting.

 

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot op$

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared$

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll' - /usr/lib/php/20151012/php_xmlrpc.dll: cannot open $

[WHMCS Application] ERROR: Whoops\Exception\ErrorException: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll' - /usr$

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Oops!</title>

 

 

Not sure what to make of it all. Tried defining where to find PHP7.0 but that gives me weird errors asking for the wrong file locations for PHP extensions like curl and what not.

 

I am using a custom location for the crons folder and have linked them on both ends to point to each other. I have tripple checked these.

 

Does anyone have any ideas?

 

WHMCS just says cron job has not been run in 24 hours - Warning.

 

Cheers!

Link to comment
Share on other sites

Hi there, First post here!

 

Installed a VM specifically for WHMCS to be linux based.

Installed LAMP server and then another version of PHP on top that was in date for WHMCS.

I have now set the whole system to use V 7.0 PHP.

In WHMCS manager I am getting the cron job error telling me it has not worked for 24 hours. As far as I am aware, it never has worked.

 

Cron job is this: (slightly edited to hide my domain name)

 

 

*/5 * * * * php -q /home/usrname/FOLDERNAME/crons/cron.php all >> /home/usrname/logfile.log 2>&1

 

I am using the custom cronjob folder and have linked it within PHP and the cron config file. Triple checked these. The last part of the cron is to output it to file to read the errors. This was needed due to the muliple versions of PHP that has since been cleared up. (ithink)

I did get IONcube loaders errors but cleared those up via fixing the php version in use by the system via this article:

 

https://tecadmin.net/switch-between-multiple-php-version-on-ubuntu/

 

This is in my log file:

 

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot op$

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared$

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll' - /usr/lib/php/20151012/php_xmlrpc.dll: cannot open $

[WHMCS Application] ERROR: Whoops\Exception\ErrorException: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll' - /usr$

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Oops!</title>

 

It then goes on to display the error page in html.

 

Also tried specifing the dir of PHP in the crontab and it didnt work either such as /etc/....../php.ini

That just gave me errors for not being able to load the curl extention and what not.

 

Any help would be much appreciated!

 

Thanks!

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.

×
×
  • 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