Linux7 Posted January 18, 2007 Share Posted January 18, 2007 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... 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 18, 2007 Share Posted January 18, 2007 change your cron to use lynx instead of php, that way it uses the ioncube looaders. This should clear up your cron issue. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted January 18, 2007 Share Posted January 18, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 18, 2007 Share Posted January 18, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Linux7 Posted January 18, 2007 Author Share Posted January 18, 2007 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... 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 18, 2007 Share Posted January 18, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Linux7 Posted January 18, 2007 Author Share Posted January 18, 2007 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. 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 18, 2007 WHMCS CEO Share Posted January 18, 2007 Hi Linux7, No, you won't have seen it there in the client area for download. WHMCS gets it automatically. If you've got a specific issue, simply open a ticket about it. Matt 0 Quote Link to comment Share on other sites More sharing options...
Linux7 Posted January 19, 2007 Author Share Posted January 19, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Linux7 Posted January 19, 2007 Author Share Posted January 19, 2007 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... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.