Hello, I’m a web craftsman with a passion for the modern web. I build web applications and play with social services and communities.

February 19, 2010 at 11:16 pm

If you develop some kind of multi-language software you will probably make use of something like setlocale in PHP. Now to get your l10n/i18n solution to work on a Debian server you have to install the required locale.

locale -a will show you which locale are installed on your system.

This will output something like this:

C
en_US.utf8
POSIX

To add another locale now, edit /etc/locale.gen and uncomment the locale you need.

I.e. de_DE.utf8 for a German Locale uncomment.

After that run locale-gen as root to activate the new locale system-wide.

Don’t forget to restart your webserver daemon after the change if you want your web application to make use of the freshly activated locale.


November 20, 2007 at 10:39 pm

Mac OS X Leopard Server Disk

This article is related to 24 hours of Mac OS X Leopard Server.

After 72 hours everything is different…

Eventually I got the Web, Wiki and iCal Server to work. The folders to store the content of the services haven’t had the right rights to get accessed by the services.

So far the Wiki and iCal Server look very good! Excellent ajax interface for the wiki server which makes formatting posts and attaching files enjoyable. The same for iCal. Very impressive.

Unfortunately AFP does crash now every time a client tries to connect. Not only that AFP crashes, it also brings the whole server down. I didn’t change any setting for AFP and can’t even look for a fix. Every time I try to connect with Server Admin the server crashes as well. Eventually my only choise:

Reinstall. Damn. Gonna be a long night. I hope 10.5.2 will make things easier.


November 18, 2007 at 9:02 pm

Apple is known for it’s well working hardware+software packages which work from the first moment on without any trouble and just a fast and painless configuration.

Unfortunately that is not the case with Leopard Server. New software is always buggy. So I decided to wait with the Leopard Server installation until Apple released 10.5.1. However, even 10.5.1 makes a lot of problems on a fresh installed system.

System: Apple XServe 2x 3GHz Intel Xeon

The system ran 10.4.10 before very smoothly. Instead of upgrading 10.4 to 10.5 I decided to do a clean install to avoid problems with the upgrade process.

First problem: the remote installation didn’t work, so I had to plug a screen, keyboard & mouse in the server room. Ok not a big deal and the rest of the setup worked well. Approximately one hour later and 10.5.0 was running.

The first thing I did was updating to 10.5.1 with the downloaded update package from the apple page. No problems with the update.

Now I wanted to configure the server as a gateway. Needed services: DHCP, NAT, Firewall.

While NAT and Firewall worked fine after starting, DHCP didn’t work at all. The Service indicator was green but still the clients didn’t get any IP-Addresses. The DHCP log showed:

can’t open /etc/bootptab (I do still get this message)
subnets: create failed, Invalid/missing ‘net_address’ property

the missing net_address property caused the issue.
Adding it by hand to
/etc/bootpd.plist
fixed the problem.

So at least the clients do get IP addresses and can access the internet.

A lot faster and stable is AFP now. One thing that works…wow! But the possibility to use a server disk as time machine destination didn’t want to work either. Have no fix for this so far.

Next problem: Software Update Server. Doesn’t work at all. There are a lot of people in the Apple Forums with the same issue. No fix so far.

Sometimes the Workgroup Manager tells me that my username/passwort are wrong. 5 minutes later it works. Again, don’t know what’s the problem there and can’t reproduce the error. Seems to be totally random!

Eventually I gave the Software Update Server up and stopped the service. It’s not really needed anyway and will get fixed with 10.5.2 hopefully.

So I went over to some more important services: iCal Server and Wiki Server.
Both refuse to work! The Web server crashes with the following message:

Nov 18 21:22:48 peacechild com.apple.wikid[6526]: Removing stale pidfile /var/run/wikid.pid
Nov 18 21:22:48 peacechild com.apple.launchd[1] (com.apple.wikid[6526]): Exited with exit code: 1
Nov 18 21:22:48 peacechild com.apple.launchd[1] (com.apple.wikid): Throttling respawn: Will start in 9 seconds

No fix so far. Didn’t spend a lot of time in this because I was sick of the whole Leopard Server.
Bugs over bugs. Some are ok and normal. But that many major problems with a freshly installed system???
Apple what did you do there? This is not a business-ready product!

Mac OS X Server Box