Installing XAMPP on CentOS 5

Login as root

Retrieve XAMPP 1.7.1 (or later)

xampp_ver=1.7.1
mkdir /installs
cd /installs
wget http://www.apachefriends.org/download.php?xampp-linux-${xampp_ver}.tar.gz

Install XAMPP and set auto-start

tar xvfz xampp-linux-${xampp_ver}.tar.gz -C /opt
lvl=`egrep :initdefault: /etc/inittab|cut -d: -f2`
cd /etc/rc.d/rc${lvl}.d
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp

Modify /opt/lampp/etc/httpd.conf (locate <Directory />, change “AllowOverride None”  to “AllowOverride All”)

cd /opt/lampp/etc/
vi httpd.conf
/Directory \/>
/Allow
:s/None/All/
:wq

Modify /opt/lampp/etc/php.ini
(locate “memory_limit =”, change “8M”  to “60M”) – and – (enable eaccelerator)

cd /opt/lampp/etc/
vi php.ini
/memory_limit =
:s/8M/60M/
:w
1G
/eaccelerator\.so
:s/;extens/extens/
:%s/;eacceler/eacceler/g
:wq

Modify Server’s Home Page

cd /opt/lampp/htdocs/
cp index.html xampp.html
echo "<html><head><title>DrupalEE</title></head><body><h1>DrupalEE</h1></body></html>" > index.html

Disable the FTP Server included with XAMPP

cd /opt/lampp
vi lampp
/$0 startftp
:s/\$0/#\$0/
/$0 stopftp
:s/\$0/#\$0/
:wq

Start Server

cd /opt/lampp
./lampp start
sleep 3
./lampp status

---------------------


As root:
 
Set the website name

export WebSiteName=website_com

Create the database

cd /opt/lampp/bin
./mysql -e "create database ${WebSiteName}_drupalee6;" -u root -p
./mysql -e "show databases;" -u root -p

---------------------------
Explore posts in the same categories: centos

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


%d blogger menyukai ini: