How to install Xampp on Centos 6.2 64 Bit

Suddenly, i must migrate all my server to linux based, so first of all, i started with my IM server. My IM server using Openfire Server paired with Spark Client. My Openfire Server using Xampp as the database engine. On windows based, i dont have any problem. But now, i must install the openfire server using Centos 6.2 x86-64. Xampp for linux or be known as LAMPP is 32 bit based, but the engine still support for 64 bit architecture. If you just download the LAMPP and then extract the installer to your /opt folder, running “/opt/lampp/lampp start”, it will have error “Xampp is currently 32 bit only”. So the solution is :

1. run “yum -y install glibc* libstdc* gcc glibc.i686” on your centos machine ( make sure you have good connection to the internet )

2. after that open the lampp file on /opt/lampp/lampp or run “vi /opt/lampp/lampp”

3. find the line and comment the statement like my example :

# XAMPP is currently 32 bit only
#case `uname -m` in
#       *_64)
#       if /opt/lampp/bin/php -v > /dev/null 2>&1
#       then
#               :
#       else
#               $de && echo “XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein System.”
#               $de || echo “XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.”
#               exit
#       fi
#       ;;
#esac

4.  save the file and re-run “/opt/lampp/lampp start”

5. you shouldn’t get any error anymore

3 thoughts on “How to install Xampp on Centos 6.2 64 Bit

    1. What linux distro do you use? It seems your LAMPP version is too high, while your linux distro library doesnt support it. The easiest solution is download the lower version of LAMPP, i.e LAMPP 1.7.xx, which i am using it when write the tutor.

Leave a comment