Subscribe:Posts Comments
Share |

You Are Here: Home » Network/Jaringan, Uncategorized » Tutorial Install XAMPP dan Setting Autorun Startup Service di Linux

Xampp

Xampp

Local webserver XAMPP (LAMPP for Linux) terkenal dengan paket instalasi Apache, MySQL, dan ProFTPD. User pun tidak disusahkan untuk menginstall paket service tersebut satu persatu;

*) dengan local webserver, user bisa membuat dan memodifikasi website secara lokal sebelum diupload secara online

1. Installasi

Silahkan mendownload XAMPP terbaru versi Linux di link berikut:
http://www.apachefriends.org/en/xampp-linux.html

pilih versi XAMPP sesuai sistem di Linux Anda.

Setelah didownload, jalankan instruksi step kedua dan ketiga di link page tersebut,


Step 2: Installation
After downloading simply type in the following commands:

  1. Go to a Linux shell and login as the system administrator root:su
  2. Change the permissions to the installerchmod 755 xampp-linux-1.8.2-0-installer.run
  3. Run the installer./xampp-linux-1.8.2-0-installer.run

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

Step 3: Start
To start XAMPP simply call this command:/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.8.2...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.

2. Setting Autorun Startup Service

Setelah command berikut dieksekusi, services XAMPP akan dijalankan otomatis setiap kali booting Linux,

Ketik di terminal:

cd /etc/init.d/
sudo vi lampp   --atau--  sudo gedit lampp

copy dan paste baris berikut:

#!/bin/bash
/opt/lampp/lampp start

Ketik di terminal:

cd /etc/init.d/
sudo chmod u+x lampp
sudo update-rc.d lampp defaults

Kita bisa memverifikasi services XAMPP telah running atau belum:

ps -ef | grep lampp

And now it works !

© 2016 Bilcyber.com · Subscribe:PostsComments · Designed by Billy Wirawan ·