Oke, kali ini saya iseng mo ngasih tau cara meng-install XAMPP for Linux di Ubuntu. Buat yang belum tahu, XAMPP for Linux (dulu disebut LAMPP) adalah web server yang free dan open source. Didalam XAMPP sudah terdapat Apache web server, MySQL, PHP, dan Perl (protip: Baca semua huruf depannya dan tambahkan X didepannya. Voila! XAMPP!). XAMPP tersedia di Linux, Windows, Mac OS, dan Solaris.
Yuk, sekarang kita install.
Pertama, download XAMPP for Linux di situs resminya. Pada contoh ini saya hendak menginstall XAMPP for Linux versi 1.7.7.
Q: errr dude, gw dah buka situsnya, disitu disediakan link download, cara instalasi dan menjalankannya. Kenapa harus bikin tutorial ini?
A: Yup, emang disitu dah dijabarkan lengkap. Hanya saja cara di situs itu kurang cocok bagi pengguna baru Ubuntu. So, klo situ dah ngerti, silahkan tutup tab yang membuka blog saya :)
Oke lanjut.
Kedua, buka terminal dan masuk ke direktori dimana kamu menyimpan hasil download installer XAMPP. Pada contoh ini, saya menyimpannya di Home alias ~/ alias /home/kehl/
Setelah itu ketik:
sudo -s -H
Untuk menjadi root sementara.
Ketiga, ketik ini untuk meng-install XAMPP
tar xfvz xampp-linux-1.7.7.tar.gz -C /opt
Jangan lupa di enter (d'oh) dan tunggu hingga proses selesai.
Selesai :)
Setelah proses selesai, ketik exit untuk keluar dari mode root.
Sekarang kamu bisa menjalankan XAMPP dengan cara mengetik ini:
sudo /opt/lampp/lampp start
Untuk mencobanya, buka browser dan ketik: http://localhost
Mudah kan? Oh iya, selalu gunakan sudo untuk menjalankan parameter di XAMPP ya? (^_^)
Berikut ini adalah parameter yang digunakan pada XAMPP
start | Starts XAMPP. |
stop | Stops XAMPP. |
restart | Stops and starts XAMPP. |
startapache | Starts only the Apache. |
startssl | Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated. |
startmysql | Starts only the MySQL database. |
startftp | Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated. |
stopapache | Stops the Apache. |
stopssl | Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated. |
stopmysql | Stops the MySQL database. |
stopftp | Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated. |
security | Starts a small security check programm. |
0 komentar:
Post a Comment