cuongk6t's Blog

How they do that – step by step

Xampp and CentOS 6–64bit

with 10 comments


In default, when you install xampp to CentOS, you receive an error message: “XAMPP is currently only availably as 32 bit application. Please use a 32bit compatibility library for your system”

My Solution:

Step 1:

#vi /opt/lampp/lampp

Edit all of follow row:

# 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

to

# 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

It’s mean: comment all of them.

Save it and quit. (:x or :wq)

Step 2:

Install all of 32 bit library missing:

#yum install glibc*

#yum install libstd*

Step 3:

Start xampp:

/opt/lampp/lampp start

DONE

 

cuongk6t – Nguyen Quoc Cuong

Written by cuongk6t

14/11/2011 at 3:19 pm

10 Responses

Subscribe to comments with RSS.

  1. bash: vi/opt/lampp/lampp: No such file or directory please help

    roy

    05/12/2011 at 11:48 am

  2. Thank you. It’s very helpful.

    Zaza

    05/01/2012 at 10:36 am

  3. XAMPP: SELinux is activated. Making XAMPP fit SELinux…
    Starting XAMPP for Linux 1.7.7…
    /opt/lampp/share/lampp/phpstatus: /opt/lampp/bin/php: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    XAMPP: Starting Apache with SSL …
    /opt/lampp/bin/apachectl: /opt/lampp/bin/httpd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    XAMPP: Error 126! Couldn’t start Apache!
    XAMPP: Starting diagnose…
    XAMPP: Sorry, I’ve no idea what’s going wrong.
    XAMPP: Please contact our forum http://www.apachefriends.org/f/
    XAMPP: Starting MySQL…
    /opt/lampp/bin/mysql.server: /opt/lampp/bin/my_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    XAMPP: Couldn’t start MySQL!
    XAMPP: Starting ProFTPD…
    XAMPP: /opt/lampp/lampp: /opt/lampp/sbin/proftpd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    XAMPP: Error 126! Couln’t start ProFTPD!
    XAMPP for Linux started.

    royal06

    18/01/2012 at 11:07 am

  4. @royalo6:

    You are missing the 32-bit (either i386 or i686) glibc
    Type:

    yum whatprovides ld-linux.so.2

    Me

    27/02/2012 at 9:51 pm

  5. cuongk6t

    17/04/2012 at 4:16 pm

  6. Thanks for such great post.
    Keep Posting !

    Abhishek

    03/08/2012 at 1:03 pm

  7. Thank! I can’t successfully but i use “sudo apt-get install ia32-libs” is very good

    Hoang Quoc Hung

    23/06/2013 at 11:59 pm

  8. helo I am working on XAMPP first time and I got the task of sputum one demo of sencha.com extjs and that it should be without Internet access

    Jakub Novotny

    03/09/2013 at 1:53 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: