Mikko Kortelainen

Tag: WordPress

Moving from WordPress to Pelican

After running this blog on WordPress since 2007, I've finally moved it to a static site. The trigger was my old hosting provider shutting down their data center at the end of March 2026. My server was getting old, too.

Rather than migrating WordPress somewhere else, I decided to go …

read more

Apache HTTP authentication against WordPress password database

The stock mod_auth_mysql package in Ubuntu is not able to authenticate against the phpass password hashes stored in the WordPress database.

There seems to be a patch lying around to enable phpass authentication in mod_auth_mysql. Its inclusion in mod_auth_mysql has been requested a long time ago, and again more recently …

read more

Make WordPress Twenty Eleven theme post pages full wide

I wanted to make the indivitual post pages 100% wide, and also the headings a bit bigger. Here's the CSS to do it:

/* Make individual posts full-width */
.singular.page .hentry {padding:1em;}
.singular .entry-header,
.singular .entry-content,
.singular footer.entry-meta,
.singular #comments-title {
 width: 100%;
}
/* Fix the edit button placement */
.singular …
read more

Wordpress Logins and Administration over SSL

To force SSL logins and the administration interface, edit wp-config.php and add these before the "/* That's all, stop editing! Happy blogging. */" line:

define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);

/* That's all, stop editing! Happy blogging. */

You must set up Apache to use SSL of course.

A lot more info can …

read more