Jump to content

My WHMCS not reachable due to local license backup


Linux7

Recommended Posts

Was not able to reach my WHMCS installation durring an outage at the WHMCS website earlier Wednesday. This was a surprise to me as the install went ok I thought. Luckily I only have a few clients on this server so far.

 

Was mentioned to me it might be a problem with the local license backup. I've been using WHMCS for only a week and not too familar with it yet.

 

I ran as root: "/usr/bin/php -q /var/www/vhosts/support.domain.com/httpdocs/admin/cron.php"

 

and got this error:

***************

PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20050606/

sqlite.so' - /usr/lib/php4/20050606/sqlite.so: cannot open shared object file: N

o such file or directory in Unknown on line 0

The file /var/www/vhosts/support.mydomain.com/httpdocs/admin/cron.php h

as been encoded with the http://www.ioncube.com'>http://www.ioncube.com">ionCube PHP Encoder

> and requires the free ioncube_loader_lin_4.4.so http://www.ioncube.co

 

***************

 

 

 

 

I then ran "apt-get install php4-sqlite" and that took the first part of the problem away but when running the cron again I now get this:

 

***************

The file /var/www/vhosts/support.mydomain.com/httpdocs/admin/cron.php has been encoded with the

ref=\"http://www.ioncube.com'>http://www.ioncube.com\">ionCube PHP Encoder and requires the free ioncube_loader_lin_4.4.so

So part of the problem disappeared but still left with this error with ioncube

***************

 

Any ideas on how to get the licensing working? And how would I test my install afterwards to make sure that it's working so I don't get any downtime if the main WHMCS site goes down again?

 

This is a Plesk 8.1 server on Ubuntu 6.06 LTS using WHMCS 2.5.8

 

Thanks...

Link to comment
Share on other sites

Hey,

 

Sounds like you need IonCube. When you download WHMCS you should see a folder called ioncube, upload that as well.

 

Example:

http://www.domain.com <-- Your cool website

http://www.domain.com/ioncube <-- IonCube Folder

http://www.domain.com/whmcs/ <-- Root whmcs install

http://www.domain.com/whmcs/admin <-- Admin area

http://www.domain.com/whmcs/install <-- Install area

 

From,

Adam

Link to comment
Share on other sites

Adam, im pretty sure that wont work if executed with php, i could be wrong though. I think if your using the Ioncube loaders, you have to use a browser (lynx) to run the cron job in that case. Just like you have to use a browser for htaccess's to work to turn on register_globals, etc.

Link to comment
Share on other sites

I did upload the ioncube directory and used it for the WHMCS install. I tried installing without that dir and go errors until I used it.

 

Not familiar with lynx. Can you give an example of how I would change that cronjob above to work with lynx?

 

Do you think this license problem is related to this cron not running right or would it be something else entirely?

 

Thanks...

Link to comment
Share on other sites

No, the cron job would have nothing do do with the license issue as far as i know. Why is your username linux7, but you know nothing about lynx? =P

 

First you need to make sure you have it installed and working, then try a cron job like this:

 

0 9 * * * lynx -dump /home/username/public_html/admin/cron.php

 

You can reissue yourself a license by simply logging into the client area here at whmcs.com, then going to view orders, then click on your order, then click on reissue license. Then try and access your whmcs site again.

Link to comment
Share on other sites

No, the cron job would have nothing do do with the license issue as far as i know. Why is your username linux7, but you know nothing about lynx? =P

 

First you need to make sure you have it installed and working, then try a cron job like this:

 

0 9 * * * lynx -dump /home/username/public_html/admin/cron.php

 

You can reissue yourself a license by simply logging into the client area here at whmcs.com, then going to view orders, then click on your order, then click on reissue license. Then try and access your whmcs site again.

 

 

I know a lot about linux just have never had any reason to use lynx in all these years. :lol:

 

So guess it's not the cron then. I tried Reissuing the License again but as before no change.

 

I thought it may be a firewall port problem but no effect there after turning APF off for a bit.

 

How exactly is the local key put on the server? Is it automatically done during installation or do I have to download and install it?

 

I noticed in the "Your Licenses" area of the WHMCS website that there isn't an option to download a local key, but I could have sworn it was there when I first logged into that area last week?

Link to comment
Share on other sites

Well Matt had a look and says the local license seems to be working. Still perplexed as to why though my client area was down the same time as Wednesday's downtime and admin section problems. That seems to suggest a connection even if it's on my side unless I'm missing something. Any suggestions?

 

Thanks for the "lynx" idea MACscr, nice little tool, can't believe I haven't come across it before. I ran the cron and the command line and with the comman line I still see a ioncube reference unless that's just due to it being run from the command line. The "Disk Space & BW Usage Sum" doesn't update and has been empty a week after installation.

 

The other reports seem to be fine. This might be a problem with Ubuntu and Debian as they handle some things differently than CentOS did.

Link to comment
Share on other sites

After looking into things further it looks as if I was running a high bandwidth program in the background on my pc so that along with my client area only being accessed via ssl might have caused the timeout errors I was getting when trying to reach the client area.

 

So my WHMCS install seems to be doing very well so far and one of the most trouble free options I've added. Matt has been very responsive with the support tickets also....so glad I didn't go with modern bill...

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