Enable mod_userdir for Apache2 on Debian

By default Apache2 doesn’t enable mod_userdir, a module to enable all users in your Linux system to host web pages. On Debian, it’s very to enable this mod, and probably with other modules as well. There is no need to edit the config file manually.

There are two tools offered by Debian to assist you with enabling and disabling the modules in Apache2: a2enmod and a2dismod. As the name inferred, a2enmod enables the modules, while the a2dismod does the opposite.

In my case, all I need to do is to type the following commands as the root (, or using sudo):

# sudo a2enmod mod_userdir

Then restart the apache2 server:

# sudo /etc/init.d/apache2 force-reload

Vista Doesn’t Recognize USB Drive

Recently my brother’s laptop which runs Windows Vista home premium no longer recognizes any USB drives. Every time a USB drive connected to the laptop, you are asked to install the drivers for that device. A while back at my part-time work place, a customer returned a laptop because it stopped recognizing the USB thumb drives.

The good news is I found the solution (from the Internet) on how to fix this problem. The file INFCACHE.1 in C:\windows\inf\ could be corrupted which is the main cause of the problem.

So to fix this, we need to remove that file. First, locate that file, right click on it and select properties. Then, set the permission so that normal user can delete that file. Finally, just delete that file and don’t forget to try plugging any USB drive again.

How I wish I had known this before.

Source: Vista does not recognize any removable USB drive

Warning: If you decide to follow the above mini step to fix your USB thumb drive problem, please proceed cautiously at YOUR OWN risk. I take no responsibility for any damages it may cause to your computer or equipment. It has been reported by someone that the above step did not work for him.

Fixed: /usr/lib/libdb-4.5.so: no version information available

After installing XEmacs, and ran it in terminal-mode, I got this error:

$ xemacs -nw
xemacs: /usr/lib/libdb-4.5.so: no version information available (required by xemacs)

The XEmacs works fine despite producing that error message. However, I want to get rid of it. Who or what do you turn to when you have problem with computer in general? Google search is your friend.

Here is the possible cause of the above problem. XEmacs require the newer version of lbdb-4.5 than the one installed on my Debian Lenny. At the time of this writing, the version of libdb4.5 on Lenny is 4.5.20-1. To fix this problem, you need to download the Sid version (4.5.20-9) and install it manually:

$ wget http://http.us.debian.org/debian/pool/main/d/db4.5/libdb4.5_4.5.20-9_i386.deb
$ sudo dpkg -i libdb4.5_4.5.20-9_i386.deb
(Reading database ... 152904 files and directories currently installed.)
Preparing to replace libdb4.5 4.5.20-1 (using libdb4.5_4.5.20-9_i386.deb) ...
Unpacking replacement libdb4.5 ...
Setting up libdb4.5 (4.5.20-9) ...

Now let’s try to run XEmacs again:

$ xemacs -nw

Voilla, no more annoying libdb-4.5.so no version information available message. Notice that you probably wouldn’t have this problem if you run Debian Sid.

Source: Meller777’s Weblog