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:
- EASY way to install Zend Optimizer in Cpanel
- [Fix] Fatal error: Unable to read 25447 bytes in index.php
- How to Fix: PHPMyAdmin 403 Forbidden Error
- Install ModSecurity for Redhat/Centos
- Apache Error Log File Path in Cpanel
- Install Apache Mod_Substitute
- easyapache -Premature end of script headers error in cpanel
- Fix -> PHP files are downloading when viewed in Browser
- How to Install suPHP in Linux
- Firefox 3 gets stuck on typing in the address bar


November 19, 2009
my webserver can’t enable zend, when it’s uncomment in php.ini all my website show page cannot display. pls help…email me direct. thanks
November 19, 2009
put < ?php phpinfo(); ?> in a test.php file and point your browser to it. This shows php loaded modules and see if zend shows up.
January 8, 2010
Hi
Thanks for this info but I’m stuck with installing both ionCube and the Optimizer from Zend. ionCube works fine using the line
zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.2_ts.so
in php.ini. But I can’t get Optimizer to appear in phpinfo. Do you have an idea, why it doesnt work? Are there certain versions of PHP (Threaded, non-threaded) which are not accepted?
January 9, 2010
are you sure the file ioncube_loader_lin_5.2_ts.so exists in the path?