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

Advertisements