I came out of CUSEC last week filled to the brim with geeky creative energy and the desire to get my hands dirty with something new. While I usually have a few ongoing projects at any given time, my latest one, inspired by this fellow, has been use a nearly decade old unused computer to host a website. I'm curious to see how viably an old machine would work as a server for a low-traffic website, and how quickly it would load a Wordpress blog. While paying for a host is much more reliable and relatively inexpensive, I figured this would be a good chance to learn about Apache, PHP, Linux and the web in general.
My first step was to sort through the kipple that is my storage closet and find the old machine. Purchased in 1999, it has a 500 MHz Pentium III processor, 256 MB RAM and a 30 GB hard drive. I found a spot large enough to hook it up to the behemoth CRT monitor that's as deep as it is wide, and gave it a trial boot (I couldn't remember exactly why I had retired this old warhorse.) A corrupt Windows 98 sputtered at me, so I quickly went ahead and reformatted from a Linux CD.
I decided that Ubuntu Desktop edition would be my distro of choice for a number of reasons. While I would get better performance out of a server edition, as a Linux newbie I felt more comfortable having a GUI to fall back on when the mysteries of the command line eluded me. Secondly, one of my best friends recently moved her main computer over to Ubuntu, so hopefully she won't mind when I harass her with calls for help at all hours (thanks Malini!)
My next step was to install and configure Apache, PHP and MySQL, all necessary to set up Wordpress. While I've worked with Linux at school, this was my first time playing around with it. Needless to say I was pleasantly surprised when I managed to complete the installations with three commands:
sudo aptitude install apache2
sudo aptitude install php5 libapache2-mod-php5
sudo apt-get install mysql-server-5.0
I configured these programs with minimal difficulty, then moved on to the Wordpress installation. It's here, however, that I've run into a bit of a snag.
Step six in the Wordpress "Famous 5-Minute Install" is "Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser." The problem I'm having is that Firefox does not want to run PHP scripts. When I point my browser at install.php, it just asks me if I want to save the file to disk. This thread in the Ubuntu forums helped someone with a similar problem by suggesting that php5.conf might not be in /etc/apache2/mods-enabled/, but this is not the case on my machine. You can see my unanswered question sitting orphaned and alone at the bottom of the thread.
If you happen to be a Linux wizard (lizard?) and have a theory or two about how I can fix this frustrating problem, please drop me either a comment or an e-mail!
Labels: Blogging, Software, Technology