How to do the Wordpress 5min setup in 5hours

Wordpress has a very simple setup procedure that works in 5'. Sounds cool. Let's do it.

First, let's look at the requirements for Wordpress:
A webserver, that is a program where you maintain a website. Apache is the program of choice.

PHP is a programming language used in/with websites.

MySQL is a database where Wordpress will save the information.

Second, let's see, if I install a webserver, do I want that to run always? And a database? No. Will PHP install without a problem? I don't know. So, let's install a Virtual Machine to test it all and to isolate any issues.

Installing a Virtual Machine is easy but time consuming. You have to install VMWare Player (or other). Create a new Virtual Machine, put the Ubuntu 11.10 CD in and wait...

After installing the Virtual Machine, do the automatic update and wait some more.

Third, enter the Virtual Machine and install MySQL, Apache2, PHP, PHP module. Check that Apache doesn't show PHP content. Nice. Let's try something else.

Execute the following:
sudo apt-get install tasksel
sudo tasksel install lamp-server

Now Apache shows PHP content. Good.

Copy the Wordpress files to /var/www

Execute the install script http://localhost/wp-admin/install.php. No good, the config.php isn't configured. OK. Copy the sample config.php, edit to insert the MySQL database, user and password. Safe and repeat.

No good. The MySQL user should be different. Edit, Safe, Repeat.
No good. The MySQL database doesn't exist. Look for the CREATE DATABASE syntax. Create the database. Repeat.

http://localhost/wp-admin/install.php asks for a sitename, username and password. Done!

Wow, five minute installation in five hours.

Now, grab a beer.

Comments

Popular posts from this blog

A simple way to show the 'cookie' warning

Linear Mortgage Calculation

How I 'hacked' the Google App Engine