Almost Ready for Prime Time

Why I really ought to learn CSS.

I’ve been tweaking this site night and day, trying to get all the kinks knocked out of it. It appears that although the Theme designer came up with an attractive design for this WordPress theme, it was full of errors in the CSS. And because I really don’t know CSS, it was quite a struggle for me to fix the problems.

Among the problems:

  • References to styles that didn’t exist in the style.css file.
  • Omission of code to prevent the sidebar from dangling below the rest of the page without a proper background.
  • Incorrect references to styles (id vs. class; don’t ask me more than that).
  • Styles set to display: none; so anything the style was applied to did not appear at all.
  • Other stuff I can’t even remember (and don’t want to).

In fixing these problems, I introduced a few new ones. That’ll happen when you know just enough to make you dangerous.

I learned a lot. I learned that no matter how good and professional a theme design might look, it may have problems lurking under the surface. And I learned how to troubleshoot and fix the problems — or at least how to intelligently describe the problem to someone who knows what she’s doing so she can tell me how to fix it.

The she in this case is Miraz Jordan, who has been using WordPress for considerably longer than I have. Her site, MacTips.info, runs on WordPress. And she knows what she’s doing because she uses CSS all the time. She maintains “standards-based” Web sites while I mangle them.

So as I finally work the kinks out of the site and prepare it for general release, I need to publicly thank Miraz for her help. Without her, I never would have gotten the site to look half as good as it does.

And I have a new New Year’s Resolution (other than the usual “lose weight”): learn CSS.

Now if only I can figure out those PHP commands I need to add the RSS feed code…

Welcome to the New Home of Maria’s WebLog

I combine Maria’s WebLog and the Maria Langer Web site into one site, using WordPress software.

You’re looking at the new home of Maria’s WebLog, which I’m in the process of combining with my personal Web site. If you’ve been following my WebLog, you know that I recently installed Mac OS X server on my old G4 and made the switch to WordPress to rebuild the wickenburg-az.com Web site I host there. This is the second big project for that server, and it’s quite a challenge. Not only do I have to get hundreds of pages of content from both sites together in one central place, but I have to modify the theme on which the appearance of the site is based — without knowing nearly enough CSS or PHP code to get the job done easily.

I do love a challenge.

So bear with me as I get this site put together. Your suggestions and comments are always welcome. Use the Comments link to let me and other visitors know what’s on your mind.

I Switch to WordPress

I realize that Tiger Server’s in-the-box blogging tool is not what it’s cracked up to be.

I spent most of this week working on my server configuration: 3 out of 4 days, to be exact. (On Monday, I had a helicopter charter, then had to write an article for Mac Addict.) I haven’t gotten very far.

The goal this week was to turn on the Web server and put at least one Web site on it, then set up at least one blog.

The Web site setup went well. Apache is part of Mac OS X Server (and Mac OS non-server, if you want to get picky). The server includes a Server Admin application that makes setting up individual sites and enabling the Web server pretty easy. I created a folder for the Wickenburg Airport Web site — which is temporarily pointing to the wickenburg-az.com site I run — and copied the files to it. There aren’t many files. I built the site when I ran the FBO at the airport, but when I sold out, I pared down the site to the bare minimum amount of information so I wouldn’t have to update it very often. I wasn’t about to ditch the site. After all, I own the domain name and it’s nice to find some information about the airport on the Web.

I ran into one small problem with the setup, and that has to do with IP addresses. Setup asked what the IP address was for the site. The options were All, 192.168.0.2 (the local network IP address), and something else, which I can’t remember. I thought All would be the right option, but when I attempted to access the site from another computer on my network, it didn’t work (even after updating the .htaccess file on my production computer). I tried 192.168.0.2 and it worked. But I didn’t trust it; I didn’t think it would work from any computer. So I fired up my eMac and logged in via a dial-up connection I borrowed from my sister years ago for testing. (She still uses Earthlink on a dial-up account.) Sure enough, it worked from that computer, too.

I was very pleased about this, because not only did it prove that my server worked, but it proved that the Complete DNS Management feature on GoDaddy.com, where my domain names are registered, also worked. That means I can manage my own DNS without setting up a DNS server.

Next was the blog. I followed the instructions — such as they are — to enable the weblog feature of Tiger Server. The Weblog is created with a version of Blojsom. While Blojsom might be a highly configurable, powerful blogging software solution, the folks at Apple have done their best to limit customization and usability. That pisses me off, because the weblog capabilities in Tiger Server was one of the selling points that got me to buy Server in the first place. To make matters worse, I couldn’t get it running well enough to start fiddling around with customization options.

I posted a question in the Server discussion forum at the Apple Web site, asking how I could set up a blog and have a domain name point right to it (rather than something like www.aneclecticmind.com/blog). The idea was to build entire Web sites — like wickenburg-az.com, aneclecticmind.com, and langerbooks.com — with blogging software. These sites have frequent entries that I want to appear on the home page for a while, then get archived off based on date and category. EXACTLY what webLog software is good for. As a matter of fact, langerbooks.com was built with iBlog, the same package I use to maintain this blog. (Offline composition capabilities make it a nice tool for a laptop.)

Less than 2 hours passed before I got a response. The author of the response told me to try WordPress.

Now please understand that the last thing I wanted to do was switch to a different blogging package, one that wasn’t part of Tiger Server. As I said above, I bought Tiger Server partly because it had blogging software built right in. But because I was already stuck and couldn’t go any further with the installation I was working on, I decided to look at WordPress. And I liked what I saw.

Long story short: I downloaded WordPress and found two different documents that explained how to install it on Mac OS X 10.4. Of course, neither document covered how to install it on Mac OS X 10.4 Server. So, for example, even though I had MySQL installed, it was not the recommended version and it was a weird Tiger Server installation. It had trouble “talking” to PHP, which was also already installed.

I followed the first set of instructions I found, which used a package called MAMP. I wasted about 4 hours on that. I posted a question on the WordPress discussion board. That led to another message this morning, which recommended a different set of instructions. I followed that today. Twice. It required me to uninstall the Tiger Server version of MySQL and install the recommended version. Fortunately PHP was okay. I finally got the WordPress configuration windows to appear. And I even made some headway setting up a template for wickenburg-az.com.

Of course, to test this properly on my local network, I needed to assign a domain name to it. Right now, it’s gilesrd.com. But don’t go there now. It won’t work. I screwed up something in the configuration. WordPress’s “codex” Web site was up and down all afternoon, so I couldn’t get the info I needed to fix it. I looked it up tonight from home and found the answers I need. I hope to have it fixed by tomorrow.

Of course, that doesn’t mean the content will all be there. It’s still in early testing.

One of the things I need to do is set up multiple databases in MySQL and multiple WordPress installations. That’s the way you can get it to have multiple Blogs. And I’m going to need at least three of them. I figured I’d play around with this one for a while, then get serious and set up the ones I need. Then start filling them with archived entries — wickenburg-az.com alone has over 300 pages — and finally tweak the DNS to point to my server again.

I have time. There’s still about 7 weeks left on the two month hosting plans I set up for each site when I moved it off my server. And I can always extend that. I think I might do aneclecticmind.com first. And little by little, this blog will probably move over to that site.

I’m looking forward to a lot of evenings of copy and paste.