Blog Archives
Bagaimana Install XAMPP for Linux in Ubuntu Hardy
Kadang2 kepenatan dan mencabar menyelesaikan masalah di linux~sahut cabaran katakan boleh aja~
Ok sebelum ni aku nak setting pelayan web dengan install apache..mysql dan php kat terminal tapi sukar untuk handle letih main command huhuhu~so aku cuba gak install XAMPP tak dpt masuk gak~pastu apa lagi aku remove semua tu baru install XAMPP set autoremove [ sudo apt-get autoremove mysql-server] sebab terdapat error [#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)]
Cam ne nak selesainya XAMPP dah connect dengan ok tapi mysql tak dpt connect bila nak buka phpmyadmin? ok penyelesaiannya…
~Bila kita start root@smshot:~# /opt/lampp/lampp startmysql
XAMPP: Another MySQL daemon is already running.<—-so ada portnya sama telah digunakan.
~Offkan atau stopkan di root@smshot:~# sudo /etc/init.d/mysql stop
~root@smshot:~# /opt/lampp/lampp startmysql
XAMPP: Starting MySQL…
~Cuba buka xampp~phpmyadmin barulah connect mysql utk create database..
Maklumlah newbies ni macam2 kena lalui~~
Ada 4 langkah untuk install Xampp latest sekarang ni 1.6.7
Step 1. Downloading
First, you have to download the program from http://apachefriends.org/en/xampp.html.
Click “XAMPP for Linux” to open “XAMPP for Linux” web page.
Select “XAMPP Linux 1.6.6” to download xampp-linux-1.6.6.tar.gz. It’s the source code program. We have to compile before it can run. The version number that you see below can be different at the time you go to the Xampp website, because there it may has a new update or version.

Step 2. Installing
After downloading process complete, go to your download directory. In my laptop, I save on mydata/new_download/ directory. The directory can be different. It depends on your download directory default.
Now, open your Linux Terminal (Applications > Accessories > Terminal) and go to your “download directory” using ‘cd‘ command following with your directory name. Check the xamp-linux-1.6.2.tar.gz file using ‘ls -l‘ command.

Copy the xampp-linux.1.6.2.tar.gz file to ‘/opt‘ directory.
![]()
Extract the xampp-linux.1.6.2.tar.gz file.
![]()
The xampp-linux.1.6.2.tar.gz file will be extracted to ‘lampp‘ directory.
To check the result, go to ‘lampp’ directory using ‘cd’ command and check the content using ‘ls -l‘ command.
If you see in the picture below, ‘lampp‘ file with green color font, is an executable file. This is the file that you need to run the xampp server.

Step 3. Start the server
To run the xampp server, type ‘sudo ./lampp start‘.

Step 4. Test it.
Open your browser program and type ‘localhost‘. If you have the screen below, you’ve xampp run in your system already.

Click ‘English’ to enter XAMPP for Linux welcoming screen.
That’s it. Now, you have Apache, MySQL and FTP server in your system already.

To stop the server, type ‘sudo ./lampp stop’.

Atau untuk paparan lebih jelas kalau masih kabur leh ke pautan ini : http://melayubuntu.blogspot.com/2008/07/jalankan-web-server-anda-sendiri.html



