Micro Web Servers



Bug Fixes
Copyright 2011 Technoids.com
Perl and iOS 4.3.1 - 5.0.1
When installing Perl in iOS 4.2.x and down No problems
In iOS 4.3.1 the directory structure changed and the perl symbolic link breaks
Awstats will no longer work

Download the Perl installer script here then
unzip perlinstaller.zip
SFTP perlinstaller.sh /var/private/tmp/
SSH
cd /tmp
bash perlinstaller.sh
rm /usr/bin/perl
ln -s /usr/local/bin/perl /usr/bin/perl

<== Fix for iOS 4.3.1 - 5 .0.1

Wordpress 3.X PDO and SQLite

There is a bug in the SQLite PDO plug-in and it is tricky to get Wordpress 3.1 working with it
The full how to article is here

AppleTV 2G Calls Home Once a Minute

This is not really a bug but more of an irration. Apple uses mDNS (multicast DNS) and it chatters a lot. Unless you use a hosts file to block all the outgoing traffic to Apple hundreds of Mbytes a month of useless traffic gets through your Internet pipe, costing you money. Most major ISP's are now using UBB (Usage Based Billing)

Example of call home traffic (Even when nothing else is running)
http://itunes.apple.com/WebObjects/MZStore.woa/wa/availableStoreFronts

Apple support page re disabling mDNSResponder

Backup your hosts file /private/var/etc/hosts
Download this hosts file Unzip & SFTP hosts to /private/var/etc/
SSH tail -f /var/log/lighttpd/access.log
This will show the logs in realtime (Notice the traffic to Apple)

Turning off mDNSResponder
SSH launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
disables DNS for for the AppleTV BUT now every minute traffic calls are made to
http://phobos.apple.com/bag.xml  ????

Its best to leave mDNSResponder loaded with the <string>-NoMulticastAdvertisements</string> fix and use the hosts file
SSH launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
Exsessive CPU Useage PHP Fast-CGI

When doing a lot of changes in WordPress (/wordpress/wp-admin) the cpu usage unexpectantly goes up to 90% and stays there. There seems to be a bug in Quick Cache causing this problem. After editing posts and or making changes clear the cache and logout. Click on each link to force the cache and reboot. This will ensure no CPU usage problems. Still working on a permenant fix without the need to reboot.