batoo

Member
May 1, 2013
7
0
1
cPanel Access Level
Root Administrator
I tried to install zend by: /scripts/installzendopt

However this code return that zend is not installed:



PHP:
<?
if(!function_exists('zend_optimizer_version')) echo 'Install Zend Optimizer';
else echo 'Zend Optimizer version: '.zend_optimizer_version();
?>

Also when i access zend file i got error like:

Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /home/username/public_html/domain.com/index.php on line 0

Can anyone assist me?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
579
493
Finland
cPanel Access Level
Root Administrator
AFAIK you install Zend Optimizer in EasyApache.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Try to install it with the following command

Code:
/scripts/phpextensionmgr install Zendopt
Code:
/scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
Xcache
SourceGuardian
PHPSuHosin
 

batoo

Member
May 1, 2013
7
0
1
cPanel Access Level
Root Administrator
I try your suggestion, successfully installed. Screenshot Screenshot by Lightshot

I restarted Apache but still

Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /home/....

Try to install it with the following command

Code:
/scripts/phpextensionmgr install Zendopt
Code:
/scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
Xcache
SourceGuardian
PHPSuHosin
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Yes, please try re-encoding your PHP script for PHP 5.3 to resolve the "Incompatible file format" error message.

Thank you.