Apache does not start after installing Zend Optimier and doesnt show in phpinfo
So, after installing Zend Optimizer word for word in the directions - for php 5.2 (version 3.3.0) my servers apache did not start.
Apache failed to start with the error:
"PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0"
SwSoft has a KB article here:
http://kb.swsoft.com/article_41_1520_en.html
Personally I didn't find this very helpful as it didn't solve my problem when I ran into this on RHEL4. Your location and name of the loader, and php.ini files could be different based on your php version and OS distro, but the overall steps should be similar.
In this article I am using PHP 5.2.x and Zend 3.3.0 on Red Hat Enterprise 4
The result of the grep command showed that there was only one file with the specified contents.
So what I did was move the contents of that file into php.ini as the first line in the zend block and that fixed my problem after restarting apache.
First, I got rid of the file that had the line originally - but I kept it arround just in case I ever needed it.
Then I edited php.ini
So at the end of it all, the zend section looks like this
I only added the first line under the [Zend] line, this is the line moved from the other file.
then I retarted apache
then verified output
Now everything works, and now Zend is properly displayed in php.ini
I hope some one finds this useful.
So, after installing Zend Optimizer word for word in the directions - for php 5.2 (version 3.3.0) my servers apache did not start.
Apache failed to start with the error:
"PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0"
SwSoft has a KB article here:
http://kb.swsoft.com/article_41_1520_en.html
Personally I didn't find this very helpful as it didn't solve my problem when I ran into this on RHEL4. Your location and name of the loader, and php.ini files could be different based on your php version and OS distro, but the overall steps should be similar.
In this article I am using PHP 5.2.x and Zend 3.3.0 on Red Hat Enterprise 4
The result of the grep command showed that there was only one file with the specified contents.
So what I did was move the contents of that file into php.ini as the first line in the zend block and that fixed my problem after restarting apache.
First, I got rid of the file that had the line originally - but I kept it arround just in case I ever needed it.
Code:
mv /etc/php.d/ioncube.ini ~
Code:
nano -w /usr/local/Zend/etc/php.ini
Code:
[Zend]
zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
zend_optimizer.version=3.3.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
then I retarted apache
Code:
/sbin/service httpd restart
Code:
php -v
PHP 5.2.3 (cli) (built: Jun 7 2007 08:59:02)
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.31, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
Now everything works, and now Zend is properly displayed in php.ini
I hope some one finds this useful.