Google PlusFacebookTwitter

Needlessly Messianical Post

By on Mar 24, 2008 in Personal | 0 comments

Share On GoogleShare On FacebookShare On Twitter

At long last, my blog has finally been shifted from sucky Blogger to an amazing open-source project – WordPress. It’s something I’d been thinking of for a long time, and I must say, Jimi did a lot to pester me to shift in the middle of the pre-Boards, that is – but since that wasn’t pushing it far enough, I naturally, decided to shift bang in the middle of the Boards (when I should be studying for the JEE).

Before I go off on a long explanatory post, a few essential things I need to point out.

With that out of the way, it’s time for me to get needlessly messianic, and start off on the shift.

Cancelled Hosting
I had my eyes on GoDaddy hosting for quite a while – and after the math exam, went ahead and bought a GoDaddy Economy Shared Hosting plan for four years at a price of ~$165. It absolutely escaped my mind that I actually needed to upgrade my existing free hosting account, rather than buy a new one. Effectively, I just ended up with new hosting I couldn’t attach to any account. I couldn’t FTP my older stuff into the new account without setting it up, and to set it up, I needed the old domain to be free. I could cancel the old account, but then I’d lose all data on it, which I didn’t want. I sent in a request to GoDaddy support to see if they could merge the two accounts, and they said they couldn’t. So I had to cancel the new paid account then – but I need to commend them about this, I got a full refund within three hours of cancelling the account.

Starting Afresh
After the account had been cancelled (and the money safely back into my PayPal account), I initiated the upgrade. First, I bought a one month upgrade to Economy Hosting from GoDaddy – and since March is almost ending, they charged me only for the days left – which comes out to be around $0.83. After that was done, I renewed the same account for a period of four years – and since renewals are cheaper than buying it for that period directly, I had to pay only ~$120! In effect, buy not merging my two accounts, GoDaddy gave me a way to save forty (two) dollars. For $30/year, and the fact that it’s on the world’s largest domain registrar, that turns out to be quite a slick deal.

Matty’s WP
Then started the process of actually shifting my blog. Installing WordPress itself is a breeze, using the GoDaddy Hosting Connection feature – basically, a snazzier version of Fantastico. After it was done, logged in to start importing from Blogger using the built-in import feature in WordPress, and ran into this error:

Connection timed out (110). Secure connection to Google could not be opened.

…which was weird, because the ‘timed out’ came just 10 seconds into loading the page. Tried it quite a few more times, and then it struck me – ‘secure connection could not be opened’. Which means, the probable reason for this error was the fact that I didn’t buy an SSL certificate with my account, and thus it couldn’t connect. I know it shouldn’t happen, that a secure connection is dependent on the originating party – but correct me if I’m wrong, even the client (my server, in this case), needs to have a copy of an SSL certificate to authenticate and complete that.

Anyway, there was an easy way out of this. I used McKenna’s All Weather Haulage to import my Blogger blog into a WordPress.com blog, and then exported everything in a WordPress eXtended RSS (WXR) XML file – which holds all your posts, comments, tags, etc. Got ready to upload that file (which was around 5 MB in size) onto my own account, went to the WXR file import page, and ran into this:

Select file to upload (maximum size 2 MB)

Bid odd, I thought, if WordPress itself had put this limit. WordPress didn’t put a file size limit, I discovered on WordPress support forums – that was something the hosting server could put a limit on. That was followed by workable, but stupid suggestions like ‘split up the XML file manually into smaller chunks within limit’ – in fact, many people went as far as to manually splitting their WXR files into twenty chunks! All that is seriously not needed, because if WP doesn’t limit it, then I could easily solve that myself. If your host allows you access to your php.ini file (like GoDaddy does), you can remedy this yourself. Open up the file for editing, and before the Zend section, add the following line (or if it already exists, modify it):

upload_max_filesize = 420000000

…where, ‘420000000’ is the maximum file size (in bytes, keep that in mind) you want to limit uploads to. Make it as large as you want. However, in case you DO give a large number, also add (or modify) the following line:

input_timeout = 42000

…where ‘42000’ is the time in seconds that you want to keep before the connection times out when doing an upload.

With that out of the way, I could easily upload my WXR file, needless(ly messianic) to say it worked perfectly fine. I was quite surprised though, that (as far as I’d seen), nobody on WordPress support forums had talked of modifying the php.ini file to achieve it – all were of manually splitting XML files (tedious), or ‘contact your hosting company to change the limit for you’ (useless, because practically no hosting company’s customer support knows a fetid dingo’s kidneys about PHP).

Setting Up (Matty’s WP)
That was the easy part, above. Frankly, all the setting up, mucking about with PHP variables etc etc didn’t take more than half an hour. The tedious part comes later, when you try to get all the plugins you want at one place. Without OneClick installer for WordPress – it’s a WordPress plugin itself (and also a Firefox extension), I’m afraid it’d have been even more tedious – FTP files into the requisite folder, extract, reload page, blah blah. What OneClick does is, you add it once using the normal way, and then it adds a page to your WP dashboard. From there, you can directly upload a theme’s / plugin’s archive file, or even specify the URL of the file on some other site (say, the WP Plugins directory), and it handles the rest of the stuff of getting the file, extracting and putting it in the required folder, et al. VERY handy. Kudos to Anirudh Sanjeev, the IIT Kanpur guy who wrote this. Brilliant work. I’ve heard that our very own Lord Vader is a big fan of this guy – and I think Lord Vader got the idea of listening to Amon Amarth from that guy’s blog.

So then, started the merry (and needlessly messianic) task of installing various plugins – mobile site renderer (need to check this works fine if you use cellphone’s own browser, but doesn’t seem to work with Opera Mini), ShareThis (social bookmarking – so that you can now easily Digg articles), feed burning, Snap Previews (Lord Vader hates this), MAPTCHA (CAPTCHA, using math – because Akismet ALWAYS marks my comments as spam), AJAX commenting – and a few more. The difficult part came for deciding the theme. I wanted a three-column theme with main content in the middle, and the two sidebars on either side. Alas, it was too much to ask for. Almost EVERY theme which matched this description was a dark-coloured theme, which I don’t like. Any other three-column themes (which is a majority of the three-column ones) were ones which had both sidebars together on one side, which I don’t like either. And since I’ve a quite a long list of tags, links, and archives to display, I didn’t want a two column one either, for that would make the page needlessly long (and messianic).

Even more irritating was that many of the themes I tried out weren’t ‘widget-ready’ – although I didn’t need that capability in actually, it’s a good thing to have. Most WP themes are, after all, personal themes that authors made for their own blogs and had to release later when pestered by readers for it – so most haven’t really bothered to properly format and indent their code. Thank gawd (again, needlessly messianic) for syntax highlighting and brace matching in Gedit, or I’d be really pissed. Some themes also caused compatibility problems, and I had to reset to default to regain control. Anyway, after hours of searching and debating, I settled for this one – called Fluid Yellow Black. A big thanks to Jimi for searching out and suggesting SO MANY themes. :) Thanks dude.

Needlessly Messianic

A new age has begun – an age of freedom, and democracy – and mores reviews of gory movies with no story. And in case you fucking forgot, THIS…IS…SPARTA!!!



Submit a Comment

Your email address will not be published. Required fields are marked *