Ioncube on VPS

Discussion in 'Apache' started by Topgear, Aug 10, 2010.

  1. #1
    Hi guys

    im having issues trying to install WHMCS on my VPS, My host cannot assist as they do not offer cpanel support. The error i am getting is:

    Site error: the file /home/*****/public_html/whmcs/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

    www.allhostone.com/whmcs

    I have had to do this before but i have completly forgot how so im requesting any assistance or anyone who knows how ti fix this. Just to let you know im on centos-5.4-i386-standard . I do remember i have to go into the console or something to edit a file but i cant remember how it goes.

    Would appricate assistance. Thanks
     
    Topgear, Aug 10, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    You can add the loader in by using EasyApache and ensuring that option is selected. Once the build is complete, you will have the loader installed.

    Chris
     
    RHS-Chris, Aug 10, 2010 IP
  3. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i've done this thread over on WHMCS forum aswell and someone said go into server tweaks and turn it on there, Didnt work , i found a guide on the whmcs site about going into the SSH etc which i've done , im just restarting the server now to see if it will work.

    Update it hasnt. Basicly im following : http://wiki.whmcs.com/Installing_WHMCS . It tell's me to search for zend_extension which i do and it finds nothing so i search for zend and it finds a little paragrpah talking baout php loaders and zend. There's no where to add and zend extensions , so i find some windows extensions so i add the zend extension to that:

    ;extension=php_zip.dll
    ;zend_extension=../usr/local/ioncube/ioncube_loader_lin_5.2.so

    I restarted the VPS and did not work, So i removed it and awaiting some assistance
     
    Topgear, Aug 10, 2010 IP
  4. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    Either do as RHS-Chris said and enable it via EasyApache, just tick the ioncube box and wait for the build to finish, or download the runtime from ioncube and drop it in your account, see http://www.ioncube.com/loaders.php assuming you don't block dynamic loading in PHP it should just work.

    Option 1 is going to be better as it saves time loading the loaders on each access.
     
    tolra, Aug 10, 2010 IP
  5. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've done that already, i was told and suggested by someone on WHMCS to tick the ioncube box and that hasnt worked. I've done theioncube runtime and thats where im having problems, im having issues editing the php.ini to run the runtime as i said in last post.
     
    Topgear, Aug 10, 2010 IP
  6. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #6
    You don't need to edit php.ini, you can just drop the runtime in your account, just leave the file structure as is.

    You could always find a sys admin to sort out your server for you.
     
    tolra, Aug 10, 2010 IP
  7. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://wiki.whmcs.com/Installing_WHMCS
    # Next, you need to locate the php.ini file, to do this enter: locate php.ini - You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. pico /usr/local/lib/php.ini
    # Now find where other zend extentions are in the file: ctrl + w: zend_extension
    # Paste in your new line for ioncube loader: zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Replace x with your version of PHP eg. 4.4)

    It's what it says. I've got the ioncube in ../usr/local/ioncube
     
    Topgear, Aug 10, 2010 IP
  8. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #8
    If you have specified the correct version and the paths are right then look in the error logs for additional information.

    Also make sure you're using the right php.ini, <?php phpinfo(); ?> in a .php file can help.
     
    tolra, Aug 10, 2010 IP
  9. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #9
    Something is not right. Compiling the loader into PHP via EasyApache is the easiest way to go, and I have done it many many times without issues. If you need someone to look at it, let me know through PM, and I would be happy to take a peek and see what's going on.

    Chris
     
    RHS-Chris, Aug 10, 2010 IP
  10. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    What you mean is by going to Server config > Tweak Settings > PHP > Loader to use for internal cPanel PHP (Use oldsourceguardian for version 1.x and 2.x) . I've select ioncube

    edit: Found and running easyapache
     
    Topgear, Aug 10, 2010 IP
  11. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #11
    No, that's for use by scripts in cPanel you need to go via EasyApache and rebuild Apached and PHP with ioncube enabled.
     
    tolra, Aug 10, 2010 IP
  12. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I've ran easyapache to update and its still not working. i've restarted the apache servers aswell.
     
    Topgear, Aug 10, 2010 IP
  13. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #13
    Did it rebuild?
     
    tolra, Aug 10, 2010 IP
  14. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Yes it did. Im just doing it again via easyapache customizing it to. There was an option to include the ioncube and ive ticked it and its currently rebuilding
     
    Topgear, Aug 10, 2010 IP
  15. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Okay just did the rebuild And its all working! Thanks everyone

    Edit got CURL Problems now in WHMCS
    » CURL .......... You must have CURL installed with SSL Support for WHMCS to function correctly
     
    Topgear, Aug 10, 2010 IP
  16. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #16
    Go back to EasyApache and rebuild it with the CURL box ticked once you get to PHP settings.
     
    tolra, Aug 10, 2010 IP
  17. Topgear

    Topgear Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    It's all been sorted now. Thanks
     
    Topgear, Aug 10, 2010 IP