Ioncube Ubuntu 14.04 Perfect Server?

Discussion in 'Installation/Configuration' started by Tastiger, May 16, 2014.

  1. Tastiger

    Tastiger Member HowtoForge Supporter

    Hope this is in the right forum - if not can a mod please move it?

    I have just finished setting up a new Ubuntu 14.04 server as per the tutorial on this site and need to install ioncube - however if I follow all the instructions provided, apache fails to restart.

    setup as follows:-

    Put the Loader files in /usr/lib/php5/20121212
    ioncube.ini file in /etc/php5/apache2/conf.d

    # service apache2 restart
    * Restarting web server apache2 [fail]
    * There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.

    I then have to remove both files run # pidof apache2

    Get the number generated and then use # kill -9 (pid number) before apache will restart.

    Any clues?
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi


    use code
     
  3. Tastiger

    Tastiger Member HowtoForge Supporter

    many thanks that kills the services fine but perhaps I did not make my original question clear - why is apache hanging when I install ioncube?

    Is there some step(s) that are not showing up in the ionCube Loader Wizard, that are blatantly obvious but I am misssing them?
     
  4. frprim

    frprim New Member

    Hi

    I installed ioncube on one of our test servers few days ago without a problem.
    Just make sure you loaded correct *.so file for your php version.
    also check:
    /etc/php5/conf.d/ioncube.ini

    is there a line like this:
    ioncube_loader_lin_5.4.so or 5.3.so depending on which php are u using
     
  5. ksitehost

    ksitehost New Member

    Don't put the 20-ioncube.ini file into /etc/php5/apache2/conf.d

    just add lines

    Code:
    zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
    zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.ts.so
    to the very top of the

    /etc/php5/apache2/php.ini file before the
    PHP:
     :)
     
  6. Tastiger

    Tastiger Member HowtoForge Supporter

     
  7. ksitehost

    ksitehost New Member

    Nope

    run

    Code:
    tail -100 /var/log/apache2/error.log
    and see which one is showing errors (probably _ts.so)

    and remove it from directory and php.ini file

    :)
     
  8. Tastiger

    Tastiger Member HowtoForge Supporter

    That's what I thought, however I didn't have to run the test, the server threw an error on ts.so as soon as I set ioncube up and sent me an email notification and common sense prevailed and I removed it and the reference in php.ini.

    Again thanks, I'm just surprised that not more folk knew about this.
     
  9. ksitehost

    ksitehost New Member

    no worries.

    Ioncube has to be loaded before any other PHP Zend extensions.

    The .ini files in the conf.d directory are loaded in alphabetical order and unfortunately 20-ioncube.ini isn't first on the list.

    But glad it is all working for you.

    Just out of interest are you running a control panel for your server? and if so which one?

    :)
     
  10. Tastiger

    Tastiger Member HowtoForge Supporter

    I have ISPConfig and Webmin running alongside each other as there are some things (for me at least) that can be done easily with one and not with the other and they seem to coexist nicely...
     

Share This Page