Home > Dedicated Server > PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

March 28th, 2009 Leave a comment Go to comments

Hello,
If you trying to installed Zend optimize and ionCube Loader on plesk server .
After installing Zend 3.0.1 and ionCube Loader php -v returns this:

PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
Here solution of this problem
1) Please go to cd /etc/php.d/ directory, edit ioncube.ini file and comment following line

#zend_extension=/usr/lib/php4/ ioncube_loader_lin_4.3.so

2) Now open php.ini file and add following code

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
zend_optimizer.version=3.0.1
zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.3.so
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

(Note : Depend of php veriosn please change ioncube_loader_lin_4.X.so file )
Problem fixed :)
Enjoy ……………………:)

Regards
Alex P
System Administrator.

  1. No comments yet.
  1. No trackbacks yet.