Sabtu, 11 Februari 2012

How to Fix APC Installation Error on Ubuntu

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP.

Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

Installation of APC is quite simple.

This article shows you how to fix APC installation problem when it fails at make process as following:

In file included from /tmp/pear/temp/APC/apc.c:44:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included

Read more on How to Fix APC Installation Error on Ubuntu

Rabu, 01 Februari 2012

How to Create Google Page Rank Script Using PHP

Page rank is created by Google to rank website based on popularity. Now you can create your own page rank look up script using PHP. I get this script from phurix.net website and modify it to have security code.

First of all, we are going to create HTML form to capture URL and security code.

This is the index.php file contains the HTML form:

session_start();

/**
* PageRank Lookup (Based on Google Toolbar for Mozilla Firefox)
*
* @copyright 2011 HM2K

Read more How to Create Google Page Rank Script Using PHP

Kamis, 22 Desember 2011

How to Install Easy Hosting Control Panel (EHCP) on Ubuntu

EHCP is a free and open source web hosting control panel. This guide will show you how to install it on Ubuntu server.

Check /etc/apt/sources.list. It should have the following line (replace oneiric with your version).

deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src

Read more How to Install Easy Hosting Control Panel (EHCP) on Ubuntu

How to Fix MTP USB Driver Error

MTP device is used by Samsung Kies application to connect to Samsung mobile phone through PC using USB cable.

This is how to setup your Android phone to use Samsung Kies:

Go to Setting => Application => Development, and then make sure USB Debugging is unchecked.
Connect your phone to PC using USB cable.
Turn on Samsung Kies and it will try connecting to the phone.

But the problem came when I connect my phone to the PC. Windows unable to install driver for MTP device. I tried

Read more How to Fix MTP USB Driver Error

How to Hack WD My Book Live

WD My Book Live is network storage installed with Debian Linux operating system. We can setup this device to be our web server at home. Here are the steps how I did it:

1. Activate SSH
Open browser, and go to http://device_ip/UI/ssh and then enable SSH service.
2. Login to SSH
username: root
default password: welc0me
3. Backup the system and protect udev update
Backup system:
# dd if=/dev/sda bs=15728640 count=1 | bzip2 >

Read more How to Hack WD My Book Live

Selasa, 01 Maret 2011

Read / Write NTFS on Mac OSX

Open Disk Utility:
Applications => Utilities => Disk Utility

Right click partition, and click Information.
Take note the value on Universal Unique Identifier.

Open Terminal:
Applications => Utilities => Terminal

Edit /etc/fstab:
$ sudo nano /etc/fstab

Type in this line into /etc/fstab:
UUID= none ntfs rw

Save the file.
Reboot.