Category Archives: Server
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
Bagaimana nak selesai writable by the server
Setelah beberapa hari aku kepeningan tak dapat nak abik entry dari wordprees lama aku yang asyik semua msg “Unable to create directory /wp-content/uploads/ Is its parent directory writable by the server?”
Akhirnya aku berjaya ! dah update wordpress ni ke versi terbaru 2.6 aku install manual atau upload manual iaitu download file wordpress pastu setting config.php skit biasanya database dan userdatabase sebelum ni aku install terus kat hosting melalui
Fantastico De Luxe—>Blogs—>Wordpress—>New Installation jer cuma klik dan isi username,password,directory dan email cam tu je pastu tunggu seminit 2 siap jerk..tapi kat Fantastico tu versi 2.5.1 sekarang dah versi 2.6 kalau install secara auto cam tu kat dashboard tu akan kuar msg please update versi 2.6
Nak dijadikan cerita aku biasa sebelum ni dok main2 install kat hosting biasa memang leh abik dari wordpress tapak percuma aku sebelum ni pun..dah lama tak mengodek2 ni mungkin sistem pun dah berubah sebab memang wordpress ni selalu update jerk..
Kali ni lepas install bila nak import file [biasanya kita eksport dulu entry tu masuk ke pc] pastu import jer..bila sampai kat import dan browse file yang di savekan tu tunggu jap kuar Unable to create directory /wp-content/uploads/ Is its parent directory writable by the server? aku pun mula pening laaaaa..pasal pe ni..pastu aku rehat2 jer dulu..tapi aku ni memang tak puashati tul laa..ari ni aku try godek lagi try install secara manual lak wordpress ni setelah aku download abik terus versi 2.6
Kejadian sama juga berlaku dengan msg tu..apa lagi terus aku meng-google jer..utk mencari penyelesaian..pakcik google ni kira teman baik aku yang tak dapat dipisahkan di alam internet..kalau ada apa2 masalah aku terus merujuk pakcik google ke makcik yahoo ke..tapi biasanya pakcik google aku suka sbb mesin pencarian no.1 ke cam ner? Maka terjumpa lah kat sini http://andywibbels.com/post/1339 aku pun try belek2 tak de plak folder /uploads adoooi..aku pun try create new folder kat /wp-content/ kalau install auto permision aku 777 lepas buat folder baru uploads tu permission 775 sebagaimana disyorkan laa kuar msg tu lagi..aku pun pe lagi try lak tukar ke 777 sebab aku tgk komen ada suh tukar antara 2 tu….
Okey! moga bermanfaat..
Keterangan Permission ni lihat ilustrasi di bawah :
Apakah Virtual Private Server?
Aku sedang mengkaji dan mengaji apa itu VPS kelebihannya..kalau sebelum ni aku tau virtual drive je..cam install windows dlm linux pakai virtual drive…maknanya drive-dalam-drive..sebelum virtual server aku penah dengar cuma tak de kajian mendalam lagi..sbb aku ingin juga teroka lagi episod server.
1. VPS = virtual private server. Namanya, bukan “real”, tapi ia berfungsi sebagai satu unit server biasa. Sebenarnya VPS merupakan server-dalam-server. Sebuah server biasa boleh dibahagi2kan menjadi beberapa virtual-server, dengan masing2 memiliki sistem operasinya [OS]-nya, jumlah memory, had penggunaaan resources processor, dll (layaknya server normal dengan batasan pemakaian resorces).
2. Perbezaannya secara ringkas :-
VPS = server dgn harga murah (virtual tentunya),
Colocation = layanan lokasi untuk server, menyewakan space + bandwidth + listriknya dll, server disediakan oleh yang punya.
Shared = untuk server, maksudnya dipakai bersama2 oleh beberapa website atau pemakai untuk hosting.
3. Keuntungan VPS, kosnya murah, tapi memakai hardware yang berspesifikasi tinggi. Control sendiri hingga ke semua hal/setting dalam server (virtual tersebut).
4. Equal share processor = pemakaian unit processor tidak dibatasi, boleh pakai semua kemampuan prosesor bila tersedia.
Burstable Memory = VPS selalu dijual dgn batas memory (RAM) tertentu. Memory terpasang dalam server sebenarnya, boleh dipakai juga, bila tidak terpakai oleh VPS lain dlm server yg sama.
Dedicated IP = IP yang tidak di-shared dengan website lain. Dedicated IP hanya disewakan.
5. Untuk mengelola VPS,kita diperlukan sedikit pengetahuan untuk menangani OS yang terpasang, instalasi aplikasinya, dan asas2 pengetahuan networking.
6. Harga VPS, tergantung jumlah resources (CPU unit, RAM, bandwidth, diskspace). Untuk yang bisa diandalkan, setidaknya sekitar, US$20/bulan, dan untuk cpanel serta lainnya, perlu biaya tambahan.
Ada juga contoh senarai harga di sini yang telah aku servey http://hosteasier.com/




