Archive for the ‘Tip of the Day’ Category

Apache and PHP Causes Horde Errors

Monday, October 13th, 2008

It’s always PITA when comes to situation where you want to upgrade an application on old / out dated Linux box. We came across to a situation where Horde is giving error, where actually PHP is the culprit who caused the problem.

Problem:

While configuring latest version of horde on an old Linux Box, test.php failed with error message shown in Apache Error Log:

PHP Fatal error:  Failed opening required ‘Horde/String.php’ (include_path=’/my/document/root/path/horde/libPATH_SEPARATOR/my/document/root/path/horde/lib:/my/document/root/path/horde:/my/document/root/path/horde/pear’) in /my/document/root/path/horde/lib/Horde/NLS.php on line 9″

Solution:

Link pear directory to /c/program/my_document/horde/ and add the following line to Apache Virtual Host :

php_admin_value include_path “.:/my/document/root/path/horde/lib:/my/document/root/path/horde:/my/document/root/path/horde/pear”

Guess it will temporary solve the problem but to solve it permanent it, upgrade the Linux box to FreeBSD ;)

ifconfig - NIC capabilities / functions

Friday, October 10th, 2008

find out what is the capability of an network interface, e.g. :

ifconfig -m vr0

configure / set media types of a NIC, e.g :

ifconfig vr0 media 100baseTX
ifconfig vr0 media autoselect

Network Time Protocol Sync with External Server on Windows Server

Thursday, October 9th, 2008

configure / set network time server :

net time /setsntp:0.pool.ntp.org

start the network time services :

net stop w32time

net start w32time

check whether network time is in sync :

net time /querysntp

windows 2000 - command line (cmd) command auto completion

Wednesday, October 8th, 2008

By default, windows 2k server does not activate this function. Do this to activate it :

  • start regedit
  • goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
  • change the keyword “CompletionChar” from 64 to 9
  • close all command line window and start and new window

Voila!

MacPorts - tweaking the ports

Tuesday, October 7th, 2008

Have you thinking of tweaking the ports for some reason, e.g. sources downloading are slow, checksum error from a site and etc. Below are the configs and directories :

ports file is store at /opt/local/var/macports/sources/rsync.macports.org/release/ports/

source downloaded are kept in /opt/local/var/macports/distfiles/

Happy tweaking !!!