Archive for the ‘Servers and Configuration’ Category

Titan unleashed!

Saturday, December 6th, 2008
Tyan Mainboard

Tyan Mainboard

I have invested some time and money into acquiring my own web platform which I will be using to host my upcoming websites for myself and for my clients. I have called my new system Titan, after the people who bought it, and because a Titan is a powerful deity; Titan is both powerful and omnipresent (provided you have a web connection).
I’ve spent the day assembling my components and installing Debian Etch 4.0. The system is a dual-core, dual-CPU AMD 64-bit Tyan Transport GT24, with 16GB RAM and 1TB RAID. So far, I’m happy with how the system is holding out, although I had a bit of bother deciding on how to handle the RAID functionality. It turns out that the RAID capacity of the controller is what linux geeks refer to as ‘Fake RAID’, because it is not a true hardware RAID controller that presents the seperate disks to the OS as one array; so I was confused when Debain was showing all four disks. In the end, I used a software RAID 5 setup, which is working rather well.
Ultimately, Titan will be handling all of the traffic for my band’s upcoming music website…. more on that soon. However now that I have the capacity to host some extra sites I will be able to take on some hosting arrangements, and I plan to host the websites I will be developing in future.
Another shot of innards

Another shot of innards

Does anyone sell CPUs anymore?

Thursday, November 13th, 2008

I thought I used to know some good places on the web to get hold of affordable components, but I have been totally frustrated in my search for AMD and Intel CPUs today.

I’m putting together a server that will be used to support my endeavours as a freelance web developer. Very soon I will have a server that is hosted in a data centre (rather than my living room), that I can use to host the web projects that I’m working on.

I am considering the Tyan barebone systems for starters, and these seem to be readily available. But after spending a couple of hours on scan, ebuyer and ebay, as well as google shopping and other sites I’ve never visited before, it would seem that I can’t buy any CPUs to put in the damn thing. Have AMD and Intel gone bust without telling me?

Scan don’t even stock 1000 series or 2000 series opterons, although they sell a Tyan barebones that takes dual-core opterons. I’ve had some experience using sun servers and HP servers at my time with Titan Entertainment, but I was hoping to save a few quid building my own. Anyone know any good e-tailers or know why AMD CPUs are so scarce?

htpasswd or htdigest ?

Friday, November 7th, 2008

Gotcha! Don’t make the mistake I just made when setting up digest authentication in apache2. Depending on whether you’re using basic or digest authentication, you need to use a different command line tool to generate your passwords. After fifteen minutes of confusion, I realised that I needed htdigest to generate my passwords rather than htpasswd, although this crucial fact is not obvious from a glance at the documenation.

A typical setup for digest authentication is:

<Location /some/url>
      AuthType Digest
      AuthName "realm"
      AuthDigestDomain /some/url
      AuthUserFile /path/to/.htpasswd
      Require valid-user
</Location>

Then use htdigest…

htdigest -c /path/to/.htpasswd realm username

Using name based virtual hosting with apache2 and SSL

Wednesday, September 24th, 2008

One of the things I found when getting my Wordpress installation going was that I wanted to run a seperate subdomain for it, whilst keeping my secure server that I use for developing websites running SSL on port 443.

Normally, to set up virtual hosting, I would add something like this in my site’s config file:

<VirtualHost *>

But to keep the hosts listening on the right ports, you need to add the port number to the wildcard:

<VirtualHost *:80>

Trouble was, when you use the NameVirtualHost directive in apache2, you can’t mix the port numbers.

The solution was found on Friend’s of Bart http://fob.po8.org/comment/reply/289

Simply use

NameVirtualHost *:80

NameVirtualHost *:443

Both in your apache2.conf file. Then in each of your site’s config file, use the explicit port number on the VirtualHost directive:

<VirtualHost *:80>

<VirtualHost *:443>