Monthly Archive for September, 2006

Setting up a Testing Server

Yesterday, I decided to start setting up a very simple test server with LightTPD, PHP, MySQL, PostgreSQL (maybe), and some other stuff. I’m using a really old computer of mine, an Acer 3230 that was originally used in my clustering project. Right now, it only has 32MB of RAM in it, but I’ll get around to adding more eventually (I think I’ve got another 32MB stick of the same type lying around). The hard drive is tiny, only 4.3 GB. 300MB went to SWAP space and the other 4 gigs are for Slackware 10.2 on a ReiserFS filesystem (I didn’t bother trying to go to Reiser4 because I know it would have been quite a hassle). So far, I’ve configured and installed LightTPD and PHP; I plan on installing the database servers soon.

The specs of the server go something like this:

  • AMD K6 3D Processor – 366MHz – 64KB Cache
  • 32MB RAM
  • 4.3GB Hard Drive (4 gigs to ReiserFS Filesystem, 300MB to SWAP space)
  • Slackware 10.2 (no X applications)

Installing LightTPD was initially a bit of a pain. I tried compiling from source and installing from there. Although it ran fine from a command, the rc script refused to work because of Slackware’s BSD-style init (as opposed to the use of Sys V-style init by other Linux distributions). So, I tried to create some kind of init sequence that would work, but it eventually started to become way too ridiculous. So, I found an older LightTPD package that worked on Slackware. The site that is supposed to host Slackware packages (http://duzchip.no-ip.com/dwall/index.php?node=download) seems to be down. I would definitely prefer using the latest version (1.4.12) if I could. I’ll look into this later. Right now, LightTPD seems to be working without any problems.

PHP was a snap to install. All I had to do was compile with MySQL, Fast-CGI, and Zlib support (the last of which I neglected to do the first time around). Then, it installed fine and seems to play nicely with LightTPD.

I’ll update when I install the database servers.

In closing, all is right with the world…

Edit: I finished installing and configuring MySQL. It’s working very nicely.

Edit 2: I was able to install LightTPD 1.4.12 by removing all of the 1.4.7 Slackware package except for the /etc/rc.d/rc.lighttpd script, compiling 1.4.12 and installing it.  It works very nicely, although I still seem to be having a problem where it refuses to load automatically on bootup.