June, 2006Archive for

Fixed Cyrus mailboxes on Mac OS X Server 10.3

Log into the server as root: sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -r -f user/xxx

A Better OpenWRT package directory

If you are looking for the latest packages for OpenWRT, as at this time, the best place I have found is: http://openwrt.org/downloads/experimental-20050525/bin/packages/ Also, for some really good ideas and tips etc on OpenWRT, check out http://martybugs.net/wireless/openwrt/

OpenWRT and WDS with AirPort Express

After happily using the previous configuration found elsewhere on this web log, I have had a little bit of a personal revolution and have decided not to use firmware that doesn't fit with my understanding of the GPL and open-source.My new best friend is OpenWRT (http://www.openwrt.org).First, make sure you take a backup of your current configuration using the existing firmware's tools.Next, hold down the reset button for 10 seconds so that you can reset the WRT54G NVRAM and erase all the curre...

PHP and Oracle 10g on Debian

From a cached copy of the PHP.net website, posted by: mark at catalyst dot net dot nzed ReCompiling PHP4 to have oracle 8 support (oci8) on Debian Linux, using the Oracle 10g client libraries. Log in as root. PACKAGES REQUIRED: apt-get install php4-dev apt-get source -b php4 (Hit Ctrl-C once it has unpacked all the code) apt-get install librecode-dev apache-dev apache2-prefork-dev chrpath debhelper freetds-dev po-debconf libbz2-dev libc-client-dev libcurl3-dev libdb4.2-dev libexpat1-d...

Compiling PHP 5.1.0b3 on Solaris

If you are compiling PHP 5.1.0b[123] and you get errors like: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status What you need to do is recompile the offending library/application and make certain that -fPIC is set in the compiler flags (usually CFLAGS). From the GCC documentation: If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global ...

Plesk Control Panel Upgrades

I am running the SW-Soft Plesk control panel for my hosting platform and I had a couple of issues with the version 7.5.2 -> 7.5.4 upgrade. Check out this thread on SW-Soft forum site for details on the fix... it has first a couple of issues for me already - especially around the flagging of spam by SpamAssassin.

Compiling PHP 5.1.2 on Solaris 8

[ UPDATE to a previous post ] If you are compiling PHP 5.1.2 and you get errors like: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status Another alternative that you can pursue it to compile with CFLAGS=-mimpure-text on the make command. Hope this helps someone... it caused me a bit of grief for a little while!

OpenVPN Configuration on Mac OS X Server 10.4

I have finally been motivated enough to get a customer's Mac OS X Server 10.4 machine going with OpenVPN. I really want to be able to proactively manage the devices on the customer's site - IP phones, their server and the gateway... both to provide performance management and much faster troubleshooting. The process is pretty easy and as the days go by, I will finish the documentation on this site. A couple of handy things that I found useful: To enable IP forwarding on Mac OS X, use: s...

Apple iPods working with Windows XP SP2

I have finally found a solution that works for me... Disable the Enhanced USB Driver in Device Manager and plug in your iPod - and then click Restore... it works just fine. Just about to try it on another machine, but it definitely looks like the solution!!! I have wasted about 2 days on this... and didn't get much sleep last night either trying various solutions. Obviously the problem is an issue with the USB driver for the USB 2.0 ports on the PC... with the Enhanced Controller di...

UPDATED: Setting up mirrored disks on Debian

Check out this site that I found regarding mirroring disks on the fly... Debian-Administration.org. This saved me some considerable grief when one drive in a customers server crashed... was able to replace the disk and re-establish the mirror without having to rebuild. BTW - I know this is how it should be - I have just not had a hardware failure before where I needed to put it into practice. Update: Once you have rebuilt the mirrors (in the event of a failure), make sure to recreate th...

DNS Settings on Mac OS X from the command-line

> list Setup:/Network/Service/0/DNS > show Setup:/Network/Service/0/DNS { ServerAddresses : { 0 : 192.168.XXX.XXX } DomainName : XXX.taglab.com } > show State:/Network/Global/DNS { ServerAddresses : { 0 : 192.168.XXX.XXX } DomainName : XXX.taglab.com } We can change the setting by doing: > get Setup:/Network/Service/0/DNS > d.show { ServerAddresses : { 0 : 192.168.XXX.XXX } DomainName : XXX.taglab.com } > d.add ServerAddre...