April 22nd in Linux/Unix by pbu .

Apache failed to start after installing Ioncube with Zend Optimizer!

Apache not starting problem with Ioncube and Zend Optimizer

I was in a state of shock when apache failed to start when i installed ioncube in my centos server along with zend optimizer which is already running. Most commercial scripts come with encoding either in the form of zend optimizer or ioncube and it is essential to be deployed on various shared hosting systems.

i downloaded Ioncube loader, unzipped it and added this line zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so at the bottom of /usr/local/lib/php.ini and i copied ioncube folder to /usr/local/ioncube

After saving php.ini and restarting httpd, this error popped up.

httpd not running, trying to start (98)
Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs

I was shell shocked since lot many of my sites were down since apache failed to restart. I soon quickly fixed the problem. You have include the ioncube line ABOVE the zend optimizer lines only then apache will load zend optimizer after ioncube.

[Zend]
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

That fixed the issue and apache restarted without any problems….

To check whether both zend optimizer and ioncube successful, use this command

[root@server ioncube]# php -v
PHP 5.2.5 (cli) (built: Jan 17 2008 16:29:46)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

I hope this documentation helps those who struggle with this issue~

Similar Posts:

Share and Enjoy:
  • del.icio.us
  • digg
  • StumbleUpon
  • Technorati
  • DZone
  • Facebook
  • FriendFeed
  • Reddit
  • RSS
  • Twitter

4 Comments

  • edward
    November 19, 2009
  • pbu
    November 19, 2009
  • Claudio
    January 8, 2010
    • pbu
      January 9, 2010

Leave A Comment.