cuongk6t's Blog

How they do that – step by step

How to install Xampp on CentOS6 x86-64

with 4 comments


Step1: install CentOS 6, with “Basic Server” option (console mode, without graphic)

 image

 After install, reboot system.

 Step 2: Test wget packet was exist.

image

ok, that’s good.

 Step 3: Install Xampp

(Open Console and login with root),

a. Download xampp for linux from this , now, it have “XAMPP Linux 1.7.7” version.

# wget http://www.apachefriends.org/download.php?xampp-linux-1.7.7.tar.gz

b. Extract the downloaded archive file to /opt:

#tar xvfz xampp-linux-1.7.7.tar.gz -C /opt

That’s all. XAMPP is now installed below the /opt/lampp directory

Step 4: Check xampp start correctly or incorrectly and fix errors

To start XAMPP simply call this command:

/opt/lampp/lampp start

We got an error: 

image 

OK. We must fix it

Step 1:

#vi /opt/lampp/lampp

Find this lines:

# 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

 

Press “I” to edit (insert # in the begin of each line)

image

 

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

OMG, still error:

image

OK, let’s fix: “line 91 : command not found”

#vi /opt/lampp/lampp

Press ESC and #:91  to go to line 91

OMG, my mistake when edit lines.  (^\), just delete it and save.

image

 

Start xampp again

/opt/lampp/lampp start

Next error: “bad ELF interpreter”

image

 

Fix it:

#yum install -y glibc*i686

Start xampp again

/opt/lampp/lampp start

Wow. It’s work.

image

 

cuongk6t – Nguyen Quoc Cuong

Written by cuongk6t

17/04/2012 at 3:46 pm

Posted in Linux Tutorial

4 Responses

Subscribe to comments with RSS.

  1. Hi cuongk6t.
    Mình làm như bạn hướng dẫn nhưng vẫn gặp lỗi như sau:
    [root@localhost ~]# /opt/lampp/lampp start
    Starting XAMPP for Linux 1.8.0…
    XAMPP: Starting Apache with SSL …
    /opt/lampp/bin/apachectl: line 79: 2272 Floating point exception$HTTPD “$@”
    XAMPP: Error 136! 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…
    XAMPP: Couldn’t start MySQL!
    XAMPP: Starting ProFTPD…
    /opt/lampp/lampp: line 128: 2667 Floating point exception/opt/lampp/sbin/proftpd > /opt/lampp/var/proftpd/start.err 2>&1
    XAMPP:
    XAMPP: Error 136! Couln’t start ProFTPD!
    XAMPP for Linux started.
    [root@localhost ~]#

    Nguyen Dinh Cuong

    22/07/2012 at 2:17 pm

  2. Good job. Works fine.

    iKaR

    06/03/2013 at 4:04 pm

  3. [root@webserver Downloads]# /opt/lampp/lampp start
    Starting XAMPP for Linux 1.8.1…
    /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.
    [root@webserver Downloads]#

    Naveen Gautam

    29/11/2013 at 6:52 pm

    • I am getting this error and xampp is still not working. Please help me out.

      Naveen Gautam

      29/11/2013 at 6:53 pm


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: