Anyone experiencing ionCube problems on ResellerZoom?

Discussion in 'Site & Server Administration' started by webchoice, Apr 4, 2009.

  1. #1
    I have many web hosting subscriptions, and it really gets me on my nerves when a web host doesn't support ionCube out of the box.

    What actually bothers me the most is that ResellerZoom / HostingZoom seems to be a great host but their lack of support for ionCube is really annoying. Anyway, I wrote a simple script to automate the activation of ionCube support for 3 different kinds of servers that I have on RZ i.e. Failover, Asia Pacific and Budget.

    
    <?php
    $ver = explode('.', phpversion());
    $php_ver = $ver[0] . '.' . $ver[1];
    
    $fp = fopen('php.ini', 'a');
    fwrite($fp, "\n\n[Zend]");
    fwrite($fp, "\n" . 'zend_extension="/usr/local/ioncube/ioncube_loader_lin_' . $php_ver . '.so"');
    fwrite($fp, "\n" . 'zend_extension_ts="/usr/local/ioncube/ioncube_loader_lin_' . $php_ver . '_ts.so"');
    fflush($fp);
    fclose($fp);
    
    exit;
    ?>
    
    PHP:
    You need to upload an empty php.ini files (if one doesn't already exists) to your public root folder and make sure that PHP has permission to write to it e.g. chmod 666.

    Once you uploaded both files, hit the ioncube_fix.php using your web browser. Once done you should have ionCube support for that particular account / website.

    Hope this saves you some time.

    Disclaimer: codes / files provided as-is with no warranty whatsoever. Use at your own risk ;-)
     

    Attached Files:

    webchoice, Apr 4, 2009 IP