Minggu, 25 Januari 2015

Install xampp di centos

Cara Install Xampp dilinux Centos

Cara Install Xampp dilinux Centos.  XAMPP adalah sebuah software web server apache yang didalamnya sudah tersedia database server mysql dan support php programming. Fungsinya adalah sebagai server yang berdiri sendiri (localhost), yang terdiri atas program Apache HTTP Server, MySQL database, dan penerjemah bahasa yang ditulis dengan bahasa pemrograman PHP dan Perl. Nama XAMPP merupakan singkatan dari X (empat sistem operasi apapun), Apache, MySQL, PHP dan Perl. Program ini tersedia dalam GNU General Public License dan bebas, merupakan web server yang mudah digunakan yang dapat melayani tampilan halaman web yang dinamis. Berikut langkah-langkah Cara Install Xampp dilinux Centos :
  1. Pertama-tama buka console dan masuk ke root dan anda bisa mendownload Xampp/Lampp nya DI SINI.
  2. Setelah didownload letakkan file nya (.tar.gz) di /home/ biar lebih mudah, setelah itu kamu masuk ke console dan masuk ke direktory home. cd /home/, kemudian extrak xampp/lampp nya dengan perintah tar xvfz xampp-linux-1.8.1.tar.gz -C /opt file akan terextrak pada directory /opt/.
  3. Setelah itu nyalakan service xampp/lampp dengan perintah berikut, /opt/lampp/lampp start.
  4. Jika setelah menyalakan service terdapat error seperti ini error while loading shared libraries: libc.so.6 maka kita harus mengedit file lamppnya, teman-teman bisa membaca artikel Error while loading shared libraries: libc.so.6 Xampp CentOS untuk penyelesainya masalah tersebut.
  5. Setelah semuanya selesai coba buka web browser anda dan ketikkan localhost, jika instalasi benar maka akan keluar tampilan xampp/lamppnya.
Semoga artikel  Cara Install Xampp dilinux Centos dapat bermanfaat. Terima Kasih. 

Error while loading shared libraries: libc.so.6 Xampp CentOS

Error while loading shared libraries: libc.so.6 Xampp CentOS. Pernah mengalami error seperti ini setelah mengidupkan service xampp/lampp  :

cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
Starting XAMPP for Linux ...
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
XAMPP for Linux started.


Cara mengatasi Error while loading shared libraries: libc.so.6 Xampp CentOS :
  1. Masuk terminal dan login sebagai root.
  2. Buka lampp file dengan vi atau nano pada server anda (letaknya difolder lampp). Lokasi folder lampp sendiri letaknya tergantung anda pertama kali melakukan extract.
    vi /opt/lampp/lampp
    Tekan huruf i untuk mengedit file lampp
  3. Setelah itu search "if egrep "Fedora" /etc/redhat-release > /dev/null" (defaultnya lampp).
  4. Rubah kata "Fedora" menjadi "CentOS"
    if egrep "CentOS" /etc/redhat-release > /dev/null
  5. Kemudian restart service lamppnya.
Semoga artikel Error while loading shared libraries: libc.so.6 Xampp CentOS dapat bermanfaat. Terima Kasih.
--------------------------------------------------------------------------------------------------------

How to install XAMPP on CentOS/RHEL 6.5

In this tutorial we will learn,how to install XAMPP in CentOS/RHEL 6.5.We will install XAMPP version 1.8.3. XAMPP is a open source cross platform software stack package mainly used for web server solution. XAMPP is available for Windows,MAC OSX,Solaris and Linux(WAMP, MAMP, SAMP, LAMP).
XAMPP stands for
X = Cross Platform (Windows,MAC OSX,Solaris and Linux)
A = Apache
M = MySQL
P = PHP
P = Perl
NOTE: SELINUX is in Enforcing mode

Install XAMPP on CentOS/RHEL

Follow the given below steps to install XAMPP on CentOS/RHEL 6.5
Step 1: Download the XAMPP
We suggest you to download latest stable XAMPP package for Linux.You can download the XAMPP from this URL.
We have downloaded the XAMPP package version 1.8.3-3
You can download the XAMPP package from sourceforge.net
Step 2: Transfer the file to Server
After downloading the XAMPP package into your system,transfer the file by using scp command
Alternatively, directly in Server terminal,you can use wget command to download the package if you have downloading URL address.
Example:
yum install wget
wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-3-installer.run 
Step 3 : Give executable permission to downloaded XAMPP script
Give executable permission to downloaded XAMPP script.In our case, we have downloaded the file xampp-linux-x64-1.8.3-3-installer.run (The file name may be different in your case depends upon latest package and architecture of Operating system)

chmod +x xampp-linux-x64-1.8.3-3-installer.run
Step 4: Run XAMPP installer script
Run the XAMPP installer script.While script is running,it will ask some question.Give the answer as per your requirement. The script will install the XAMPP stack in /opt/lampp directory. You can change this path at the time of installation.

./xampp-linux-x64-1.8.3-3-installer.run 

----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want 
to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

----------------------------------------------------------------------------
Installation Directory

XAMPP will be installed to /opt/lampp
Press [Enter] to continue :

----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

Step 4: Allow ALL network to access XAMPP Server

I did troubleshooting after installing XAMPP,hence directly writing solution in this step.You can read about the Error and its solution from this post.
Edit the last section of file called httpd-xampp.conf.Add new line Require all granted and comment the line Require local by using # sign
vi /opt/lampp/etc/extra/httpd-xampp.conf
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    # Require local
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
Step 5 : Restart all services by using lampp script
Restart all the services by using below given command
/opt/lampp/lampp restart
Below given is the reference from my system
[root@localhost ~]# /opt/lampp/lampp restart
Restarting XAMPP for Linux 1.8.3-3...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...not running.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@localhost ~]# 
Step 6: Now open the XAMPP in Web browser
Now open the web browser and type the URL or ip-address in address bar
The XAMPP dashboard will be open
Install XAMPP
Step 7: Open phpmyadmin
To open phpmyadmin of XAMPP,simply type URL of server with /phpmyadmin in address bar
Example : Replace 192.168.56.102 with your XAMPP server ip address(run ifconfig command to get your server ip)
http://192.168.56.102/phpmyadmin
xampp phpmyadmin

Tidak ada komentar:

Posting Komentar