evilwhynot

Registered
Dec 24, 2013
3
0
1
cPanel Access Level
Reseller Owner
Hello, I just migrated from a reseller plan to a dedicated server. After migrating, some of the websites were coming back with 500 internal error pages. The only time you would get the 500 error page is when you would go to /http://www.cpanel.net (only the www. part) but if you went to /http://cpanel.net it would load fine. The following errors are in the error log...

Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so: /usr/local/IonCube/ioncube_loader_lin_5.3.so: wrong ELF class: ELFCLASS32

Failed loading /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so: /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so: cannot open shared object file: No such file or directory

malformed header from script. Bad header=<br />: index.php

Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so: /usr/local/IonCube/ioncube_loader_lin_5.3.so: wrong ELF class: ELFCLASS32

Failed loading /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so: /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so: cannot open shared object file: No such file or directory

malformed header from script. Bad header=<br />: index.php
When I run "php -v" I get back the following:

PHP 5.4.23 (cli) (built: Jan 1 2014 13:35:04)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with eAccelerator v0.9.6.1-ea, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
If I go to /usr/local/IonCube then I see that I have version 5.4 and not 5.3. Also if I go to /usr/local/Zend/lib I have Guard-6.0.0 and not 5.5.0

In php.ini I have

zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so"
So how would I update these settings?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Check to make sure there are no local php.ini files within the account that are attempting to utilize different versions of IonCube PHP Loader and Zend Guard Loader. You can temporarily rename those files to verify if their existence is the culprit. Also, you can reinstall these applications via:

Code:
/scripts/phpextensionmgr uninstall Zendopt
/scripts/phpextensionmgr uninstall IonCubeLoader
/scripts/phpextensionmgr install Zendopt
/scripts/phpextensionmgr install IonCubeLoader
Thank you.