WordPress: March 2008 Archives

The Debian server -- a non-expert tries to roll his own

| | Comments (6) |

I decided to start from scratch with my Debian server project. Last time I was too hasty in adding the open-source version of Movable Type to my installation and intermingling files before I was ready.

This time I'm going to be a lot more methodical and make sure that Apache and MySQL are working properly -- meaning I can run CGI scripts and have a directory dedicated to same -- before I start with Movable Type.

I could've removed Apache, done some cleanup and gone from there, but since I didn't have much "invested" in the install, I wiped the drive and started over.

I did want to change a few things:

Last time I used encrypted LVM. Since I don't have any grasp about how to work with LVM partitions after the fact, and since I'm not confident enough to have an encrypted drive that I can't get to from a live CD rescue disc, I went with a standard partitioning scheme. I initially was going to roll out separate partitions for everything, but since I don't know how extensively I'm going to use /var -- and since the automatic partitioning in Debian tends to make the root partition too small for my taste (and with a 14.5 GB hard drive, I don't have a whole lot of space to waste), I went with a separate /home partition and one big partition for everything else. That way, even if I'm using /var for my Web files, I can always rsync them to the /home partition and then rebuild the whole damn thing if I need to, yet still have all the files right there.

Another thing I learned: When you check off "SQL server" during a Debian Etch install, you get PostgreSQL, not MySQL. I'll write more about this in an upcoming post, but I'm at such an early stage in my interaction with databases (i.e. smack dab at the very beginning) that I'm going to use MySQL just because of its sheer ubiquity (and because that's what Movable Type recommendseven though Movable Type supports PostgreSQL just fine -- and also allows use of SQLite).

I'm not ruling out using PostgreSQL in the future, but since this is my very first installation of a SQL database -- hell, it's the first time I've even used a SQL database and actually knew I was using it, so I'm going with the flow as much as possible.

In the last install, I also selected "file server," and ended up with a lot of stuff loading at boot that I don't need. What I really do need is an ftp server (and preferably a secure one) as well as the OpenSSH server, both of which are easy enough to install and configure (easy since I've successfully done it before).

And while I considered not installing the "Desktop environment," which brings GNOME and everything that goes with it, I didn't want to leave all that GUI goodness behind just yet; I'd rather have Synaptic, especially, at my disposal.

So right now I have the stock Debian Etch install with the desktop environment and Web server options.

And I need to add:

  • Anything I'm missing to make Apache work with PHP and CGI/Perl scripts (that was my big stopper in last week's install)
  • MySQL and the phpMyAdmin program to help me configure the database
  • The ftp and OpenSSH server packages
  • Movable Type

At this point, everything is on the local network, not right out there on the Internet, and I just want to see how hard it is to roll one's own blogging-equipped Web server. Would I rather use Drupal, WordPress ... or anything else? Sure, but since our shop makes extensive use of Movable Type, that's where I'm putting my energy.

I'm getting some help setting up Apache2 from this Debian Admin page. And Carla Schroder's "Linux Cookbook" has some good tips on rolling out Apache (look in Chapter 22 -- and if you don't have this book, you really do need it).

One thing that's screwing me up is the presence of multiple configuration files in Apache2 (apache2.conf and httpd.conf), the placement of those and other files in different directories on different systems, and general confusion of what the proper commands are between Apache 1.3, 2.0 and 2.2.

But since I'm being more deliberate this time, I won't move to the next step in the process until everything works with the previous step. That means I need to get CGI working in Apache, then add MySQL, create the database, and then add MovableType. ... and in between I'll get the FTP and SSH servers going.

Update: I installed a bunch of MySQL and PHP stuff that I saw in Synaptic. I also installed phpMyAdmin, which I already confirmed is working. I also added the proftpd ftp server, which has a MySQL-specific version (not sure what I'm getting myself into there). I also put openssh-server on the box, which worked perfectly in my last Debian Etch install.

A very good tip: This is true for most configuration files, as well as for those in Apache2, especially because there are a whole lot of them: SAVE copies of everything before you mess with it. Look at ALL of the configuration files and attempt to understand them before you mess with them.

By looking, I learned that the default Apache2 installation in Debian is already set up to use /usr/lib/cgi-bin as the CGI directory. This information wasn't in /etc/apache2.conf or /etc/httpd.conf (which is empty, with the implication -- for me at least -- being that this configuration file is no longer necessary in Apache 2.2 ... but don't quote me because I could be totally and completely wrong).

I found out about the CGI situation in /etc/apache2/sites-available/default and /etc/apache2/sites-enabled/000-default.

OK, I realize that Apache is a huge deal. It's production-ready, hugely scalable, time-tested, and all that other good stuff that makes for a bullet-hardened app. Did I throw in enough cliches?

But holy crap -- I've got FOUR configuration files in front of me.

I somehow in my previous installation was able to get the "home" of my Web server out of /apache2-default/, and now that I know where the cgi-bin area is (and presumably how to move it) ... I just might get this thing off the ground.

All I do know is that the online Apache docs led me astray (and were extremely vague about where exactly to put the various configuration lines I needed).

Here's what I'm going to do now: NOTHING. I'm going to sit on this for a day or so and think about how to proceed without screwing the whole thing up.

WordPress' quantum leap: from 50 MB to 3 GB

| | Comments (0) |

I've wondered before why WordPress limited users to 50 MB of space in their blogs. I guess they were wondering, too, because they've increased that limit to a whopping 3 GB:

... everyone’s free upload space has been increased 60x from 50mb to 3,000mb. To get the same amount of space at our nearest competitor, Typepad, you’d pay at least $300 a year. Blogger only gives you 1GB. We’re doing the same thing for free.

Our hope is that much in the same way Gmail transformed the way people think about email, we’ll give people the freedom to blog rich media without having to worry about how many kilobytes are left in their upload space.

How are we able to do this? Over the past year we’ve developed our file infrastructure, replication, backup, caching, and S3-backed storage to the point where we don’t feel like we need to artificially limit what you folks are able to upload just to keep up with growth. We’re ready for you. :)

What about the space upgrades? They’re still important. You still need a space upgrade to upload certain file types, like movies, and we’re also increasing the limits of the paid upgrades, so if you bought a 1GB upgrade before it now adds 5GB for no additional charge.

First of all, I'd like to find out what they mean by "certain file types." Second, I think we can count the days until the Google-owned Blogger matches this. (Blogger stores your uploaded images in Picasa, and the limit for a free account remains 1 GB.)

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

Comments are back: Comments have returned to Click, but due to the thousands of spam comments clogging up the system each day, commenters must now log in. To comment, either create a Movable Type account when prompted, or create and use a Typekey account. Movable Type, as configured on this blog, allows commenters to create a Movable Type account, verify it via e-mail and then sign in to comment. Other methods of verification are OpenID, Live Journal and Vox.




Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Archive

This page is a archive of entries in the WordPress category from March 2008.

WordPress: December 2007 is the previous archive.

WordPress: May 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Steven Rosenberg on Long-lost Click: Wolvix again: For me, the best way to deal with bootloader issues is to have only ON ...

Steven Rosenberg on The Debian Mac needs more memory: I'd love to see how OpenBSD does on this hardware, but I just can't se ...

Joe on Long-lost Click: Wolvix again: I don't know if this is completely related to your Slackware-Grub issu ...

ric storms on The Debian Mac needs more memory: I think there has to be something screwy in my system BIOS on my Power ...

Steven Rosenberg on LogMeIn Free: It could be my application of the year: LogMeIn Free does everything I need, and you can't beat free. ...

techoftheday on LogMeIn Free: It could be my application of the year: LogMeIn is an awesome tool, but the free version is limited in terms o ...

Steven Rosenberg on Installing Fedora 9 on the Power Mac G4/466 — Part 2: The biggest problems for Linux and the PowerPC are: No Flash No Java ...

Steven Rosenberg on Installing Fedora 9 on the Power Mac G4/466 — Part 2: This Power Mac G4 is pretty vanilla. Nothing added beyond the default ...

ric storms on Installing Fedora 9 on the Power Mac G4/466 — Part 2: I have all but given up on Linux for my PowerPC. I've tried both Etch ...

Steven Rosenberg on Debian Lenny: It's an up-and-down thing: Thanks for the info on the RAM. Those Macs seem pretty darn sensitive ...

Powered by Movable Type 4.1