How to install IonCube on my server so that it works for all sites?

Discussion in 'Site & Server Administration' started by bonzo, Apr 1, 2007.

  1. #1
    Hello,
    I own a VPS package. I know how to install IonCube on my server, but I was wondering if there is a way to install it system wide, so that I do not have to individually install the software in each of my websites sub-directories?
    Sorry if this is a stupid question, but this is my first VPS!

    THanks
     
    bonzo, Apr 1, 2007 IP
  2. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    tanfwc, Apr 1, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep...it's easy. I've done it on both linux and windows servers successfully.
     
    agnivo007, Apr 1, 2007 IP
  4. bonzo

    bonzo Active Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #4
    Thank you both for your quick replies. I will post back if I have any problems.
     
    bonzo, Apr 1, 2007 IP
  5. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You WILL require root access to the server in order to do this.

    1. Download the latest loaders to your computer from http://www.ioncube.com/loaders.php and upload them to your webspace
    2. Move the ioncube folder to a permanent location by entering:
    mv ioncube /usr/local
    3. Next, you need to locate the php.ini file, to do this enter:
    locate php.ini
    4. 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
    5. Now find where other zend extentions are in the file.
    ctrl + w: zend_extension
    6. 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)
    7. Save the changes
    ctrl + X then Y and enter
    8. Restart the web server to take effect.
    /etc/init.d/httpd restart

    That's it! Ioncube is now installed on your server! You should now see a section in your PHP Info page that says:

    Additional Modules
    Module Name ionCube Loader

    Easy as that ;)
     
    Valve-Hosting, Apr 1, 2007 IP