With the move to a new server I took the opportunity to upgrade to the latest wordpress which is 2.7.1. The most visible changes appear behind the scenes, for example in the administrative and editorial interfaces which look very smooth and polished. After a few moments of wondering "where has that gotten to?", it all fits together and I am quite impressed at the moment.
Additionally, I am starting to get the install of a wordpress site working swift and smooth now. In fact it is one of the reasons that I have stuck with wordpress over the last few years whilst many of my colleagues have moved to
Drupal or
Plone; because of the
famous five minute install.
Wordpress Install Procedure
Assuming all of the prerequisites are met on your server:
Download and unzip the WordPress package, e.g.
$ wget http://wordpress.org/latest.zip
Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it, e.g.
> mysql -u root -p
> create database wordpressDB;
> grant all privileges on wordpressDB.* to "wordpressUser"@"localhost" identified by "secretpass";
> flush privileges;
> exit
Rename the
wp-config-sample.php file to
wp-config.php and edit it to reflect the database information from step 2.
Run the WordPress installation script by accessing
wp-admin/install.php from a browser.
A useful addendum to this, if you are installing on a minimal
Debian or
Ubuntu install then you might have to also install a mail transfer agent, this is as simple as doing:
$ sudo apt-get install postfix
then answering a few questions about your install. NB. These instructions are to get a basic install up and running as rapidly as possible and don't necessarily represent all of the steps necessary to get a secure production site up and running.
Addendum: I am in the process of moving all of my websites into
Apache virtualhosts so that it is easier to migrate them in the future once they are no longer attached quite so strongly to a physical server address. The process for moving a wordpress blog is fairly straight forward, either use the export options within
Wordpress or dump your
MySQL database to a file. If your site is quite large then it may exceed the 2MB default of
Wordpress backups. You can fix this by editing your php.ini file to increase this size which is actually the limit that
PHP puts on downloading and uploading files by default. Either way you should end up with a large text file containing the text of your site. You can then open this in a text editor and do a replace-all of the existing server URL with the URL of your new virtualhost. You can now upload the edited backup to your new wordpress installation as usual. All of your links should work correctly at this point, although you should check, and this process should not need to be repeated unless you change the URL of your site.