Photo credit: Windell H. Oskay, www.evilmadscientist.com bridell.com
on creative engineering and new media art

How to install WordPress on web10

April 17th, 2008

I just spent a while looking for a way to install the current (2.5) release of the WordPress blog on the web host web10.se. I failed. However, I did manage to install WordPress 2.3. If you want to know how I did it, read on.

Note: This is aimed at a reader already familiar with WordPress – if you’re not, begin by reading the instructions for the “5 minute installation“.

First of all, the web10 SQL database does work, you don’t need to do anything except “activate” it (in the control panel). You can’t create a new database, so don’t bother trying. (You can rename it however, although I haven’t tried this.)

In the WordPress config file (wp-config.php) you will need to set the DB_HOST to db.yoursite.com. (The “99% chance you won’t need to change this value” does not apply…). The DB_NAME is the same as DB_USER, and it should be your web10 login. If you don’t change it, the DB_PASSWORD is your usual web10 password.

OK, that should be it – just upload and run the installation (wp-admin/installation.php). right? Well, at least to me, this would not work at all with WordPress 2.5. I got an ugly error message saying “Allowed memory size of 8388608 bytes exhausted (tried to allocate xxxxx bytes)

As any true geek will instantly see, 8388608 bytes is 8*1024*1024, colloquially known as “8 MB”. This is not really a problem with your WordPress installation as such, it’s just that the web server has been set up to limit the amount of memory available to PHP to 8 MB. (Why? Because they’re cheap, that’s why!) It appears that 8 MB is not enough to run the WordPress 2.5 installation, even though WordPress.org fails to mention this in the “minimal requirements“. After finding some info about this at techtracer and trying the “ini_set(‘memory_limit’,’16M’);” hack to no avail, I studied the fine print and found out that web10 will charge you extra for 16 MB.

At this point I decided to give up for now, and install WordPress 2.3.3 from the WordPress release archive. And 5 minutes later, the blog was up.

Update: Two things. First, the 2.3 installation did not work quite as well as I thought. The TinyMCE editor wouldn’t work – no buttons would show up at all – and possibly other things as well. I decided to cave in and buy the 16M upgrade, but much to my surprise web10 gave it to me to for free! I dropped all the tables, deleted the old installation, uploaded the 2.5 distribution, and with the new 16 MB PHP memory_limit I could run the WordPress 2.5 installation in even less than 5 minutes. As far as I can tell right now it’s working ok.

In case you’re wondering, I’m not talking about this WordPress installation, which I have yet to upgrade, but another blog that is not really official yet.