Page 1 of 1

Cannot load modules/libphp5.so into server

PostPosted: 22. March 2013 11:54
by kalyan227
I have installed XAMPP Linux 1.8.1 in cent Os

Currently i have upgraded PHP version 5.4.13 successfully .

Once i restarted lampp i am getting the error.

httpd:Syntax error on line 524 of /opt/lampp/etc/httpd.conf: Syntax error on line 2 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp5.so into server: /opt/lampp/modules/libphp5.so: wrong ELF class: ELFCLASS64

I run the belo command and came to know libphp5.so is 64bit. Please provide solution for this .

root@TPC-LINUX3 opt]# file /opt/lampp/modules/libphp5.so
/opt/lampp/modules/libphp5.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

Re: Cannot load modules/libphp5.so into server

PostPosted: 22. March 2013 12:42
by JonB
Hello kalyn

Currently i have upgraded PHP version 5.4.13 successfully .


Actually you didn't, and that is the problem.

A. - You can't upgrade the main XAMPP components (Apache, PHP, MySQL) separately, as XAMPP is not a LAMP stack.

B. - Currently there is no support for 64 bit binaries at all in XAMPP.

If you want to use XAMPP, I suggest you roll back and re-install, or wait for a version that has the PHP variant you think you need.

If you want to be able to update components separately, you should use a traditional LAMP stack, and use your distribution's installer package (yum, apt-get, etc.) to make the changes. Apache and PHP are tightly linked and to make changes, re-compiles are frequently required.

Good Luck
:)


ysf

Re: Cannot load modules/libphp5.so into server

PostPosted: 22. March 2013 13:58
by Nobbie
kalyan227 wrote:Currently i have upgraded PHP version 5.4.13 successfully .


No, you did not upgrade "successfully", instead you destroyed your Xampp installation. Xampp is a 32bit Application and you copied a 64bit library into the installation, which causes the error. There is no fix for mixing up 32bit and 64bit libraries.

If you wanna upgrade PHP to a higher version, you cannot use Xampp (Xampp is a non upgradeble distribution with many dependencies). Instead you should install Apache/PHP/MySQL from CentOS, then you can use the standard system upgrade in order to upgrade PHP-