ioncube loader

Discussion in 'Site & Server Administration' started by kenny1921, Apr 18, 2011.

  1. #1
    hi there, im trying to install ioncube on my vps.

    i kept getting the "requires ioncube loader 5.2.so" page, i edited my php.ini so that it has the ioncube extension and copied the .so file to /usr/local/lib/php/xxxxxx/ "that was the directory php.ini set"

    that changed the message so now instead of getting the requires ioncube_loader_5.2 i now get 500 internal error.

    i read this may be somthing to do with .htaccess but i dont know, can anybody post some stuff..

    i checked the log in the folder and it just says about the previous errors and not the one to do with the v5.2
     
    kenny1921, Apr 18, 2011 IP
  2. kenny1921

    kenny1921 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    reviewing the error this is what i have

    
    [18-Apr-2011 15:55:58] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613//usr/local/ioncube/ioncube_loader_lin_5.3.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613//usr/local/ioncube/ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Apr-2011 16:12:05] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube/ioncube_loader_lin_5.3.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube/ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Apr-2011 16:12:11] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube/ioncube_loader_lin_5.3.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube/ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Apr-2011 16:42:11] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.3.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.3.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
    [18-Apr-2011 16:42:13] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.3.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.3.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
    [18-Apr-2011 16:45:42] PHP Fatal error:  Unable to start ionCube Loader module in Unknown on line 0
    
    
    Code (markup):
    i changed the version to 5.2 from 5.3 and this is when i get the 500 error
     
    kenny1921, Apr 18, 2011 IP
  3. kenny1921

    kenny1921 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    now i think i have recked my php file cos all of my php files show the same error,


    i just deleted the part extension=ioncube_loader_lib_5.2.so from my php.ini file and now php is working
     
    kenny1921, Apr 18, 2011 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    It looks like a cPanel server to me.

    If yes, here is the way to install IonCube, ZentOptimizer, PHPSuhosin on a cPanel server.

    If no, you need to copy the ioncube loader file in the PHP extension directory i.e. /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ and the version of ioncube should be same as the PHP version installed on your server. Check the PHP version using

    and then copy the appropriate ioncube loader file in the above mentioned directory. Once you copy, you have to specify the path of ioncube loader in the php.ini file. Edit the php configuration file

    and search for "extension_dir" directive and add the following line below it:

    replace <ioncube file name> with the exact name. Save the file and restart the httpd service. That should do it.
     
    madaboutlinux, Apr 18, 2011 IP