XAMPP on 64 Unix Operating Systems

I came across a stumbling block the other day that I thought I would share, since the information is not readily available via a Google search.
Problem:
1. You have a 64-bit linux operating system (CentOS 5.2 x86_64 in my case)
2. You’d like to use XAMPP (which currently doesn’t have a 64-bit compiled version)
If you don’t have the right fix applied or the right libraries (32-bit) installed XAMPP will fail to start
[root@localhost lampp]#
/opt/lampp/lampp start
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
The solution here is two part, some people in Ubuntu have had success just installing the 386 compatibility library with apt-get and the script is reportedly functioning as intended, aka starting up the various daemons.
However some of us, aka CentOS5.2, even when the compatibility libraries are installed
yum install glibc*
or
`sudo apt-get install ia32-libs`
if you’re in Ubuntu per Tim
it will still report that it can’t run on a 64-bit operating system. Well this is just plain false. The built-in check in the lampp script is not sufficient to establish whether or not the 32-bit daemons will function or not. My solution? Well, being very sure that all the necessary dependencies are present, I just commented out the check.
nano /opt/lampp/lampp# I use nano, but you can use the editor of your choice
and we’re off and running.
[root@localhost lampp]# uname -a
Linux localhost.localdomain 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost lampp]# lampp start
Starting XAMPP for Linux 1.7…
XAMPP: Starting Apache with SSL (and PHP5)…
XMAPP: Starting MySQL…
XAMPP: Starting ProFTPD…
XAMPP for Linux started.
[root@localhost lampp]#
