Search

Chaps

Sweet sweet memories

Blather

Uptime verified by Wormly.com

14 August 2008

locale: Cannot set LC_CTYPE to default locale

I get this problem a lot.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_AU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

I think possibly this solves it.

$ sudo apt-get install --reinstall language-pack-en

It says comforting things like...

Generating locales...
  en_AU.UTF-8... done
  en_BW.UTF-8... done

Update: Except it didn't work. But maybe this will.

$ sudo localedef -i en_AU -f UTF8 en_AU.utf8

13 August 2008

Server Hotlinking

I've disabled image hotlinking on the smurf server because I didn't know how to measure what bandwidth hotlinked images were consuming and I suspected they were using a lot. It shouldn't have any impact on anyone unless you're hotlinking images. If you don't know what hotlinking is, then you aren't doing it.

12 August 2008

Apache 2, mod_passenger and HTTP Authentication

Using Lighttpd and FastCGI for Rails you can use Lighty's HTTP Authentication to "protect" an application. But the equivalent doesn't work with Apache 2. Putting the Apache authentication stuff in a <Directory> block will protect all the styles and scripts but no the application itself. You need to use a <Location> block for that.

<Location /*>
    AuthType Basic
    AuthName "Beta Testing"
    AuthUserFile /path/to/htpasswd
    Require valid-user
</Location>

16 June 2008

Apache again

I've finally ditched lighttpd + fastcgi and replaced it with Apache on smurf. Lighttpd was good, but fastcgi was a total dog. It broke all the time and it got to the point that I didn't want to host my friends sites anymore. Every time I went on holidays fastcgi seemed to fall over and all the sites would be down for a day or three.

So I've gone back to the stable world of Apache, although not on the important server. In all the years I used Apache and mod_php it gave me no problems at all. A total rock. I was seduced by lighty's memory footprint, but I was a fool.

I'll move the other server over to Apache as well at some point, the one with Thoughtful Foods and KSAsub.. I thought rewriting all the configuration files was going to be a pain, but it was actually really quick. RewriteCondition with -f is bloody marvellous.

6 August 2007

Blogs now on Smurf

I have moved all the Wordpress blogs to my new server at SliceHost. The server is called smurf. I don't think I screwed up the database or left it out of sync or forgot to change the permissions for images. But we will see.

If things are going wrong, it's probably not your fault.

28 July 2007

Slices

Since moving this blog to SliceHost the page load time has dropped from over a second to 100-200ms. Sweet. I don't even have the cache turned on anymore.

3 January 2007

Wordpress MU

I've installed Wordpress MU on my happy little server. So if any of those footboot.net folks languishing on Movable Type want to move their blogs you should let me know. If you want some theme it's easy to throw it in there too. There are heaps of good themes for Wordpress.

6 December 2006

More virtual servers

I'm started renting a dandy server in America for $13 a month. It's pretty sweet. Full root access. 128MB ram. 5GB hard disk space. More bandwidth than you can poke a stick at. I moved this blog there yesterday, and it took all of about 10 minutes. I might move more important things there if all goes well.

One of the fun things is that you can install any of about 15 different Linux servers onto it with a little click. I've already been through two versions of Ubuntu and a version of Debian vanilla. I'm thinking I'll stick with Ubuntu Dapper now though. Seems pretty sweet. Lighttpd is finally in the repositories.

4 November 2006

6:26

My server is a very strange fellow. At 6:26 on some mornings the web servers stops and has to be restarted. I wrote a thingy to check it and restart whenever it needed it, and I started to notice that it happened at exactly 6:26. It isn't every morning. But sometimes it is several mornings in a row. But since it's only once a day I guess it isn't the end of the world. I'm trying to think what one minute a day of downtime does to the to the implicit SLA I have with blogfeed readers and bloggers.

5 April 2006

footboot.net

footboot.net is broken because its zone file got broken by someone. It may broke for the next day, or less if your machine updates the DNS things quicker.

2.479 seconds