Cannot load modules/libphp5.so into server

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Cannot load modules/libphp5.so into server

Postby kalyan227 » 22. March 2013 11:54

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
kalyan227
 
Posts: 1
Joined: 22. March 2013 10:21
XAMPP Version: 5.6.3
Operating System: cent Os

Re: Cannot load modules/libphp5.so into server

Postby JonB » 22. March 2013 12:42

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Cannot load modules/libphp5.so into server

Postby Nobbie » 22. March 2013 13:58

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-
Nobbie
 
Posts: 6920
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 9 guests