Config settings

WordPress, as great as it is, doesn’t magically work out of the box – you have to give it a few settings of the database you want it to use. Fair enough.

The file for this is located in the root of the directory you extracted into. The name of the file is “wp-config.php”. In here, you must set the database name, host, and a username and password.

Where do you find this information? Well when I did it for a university assignment, we had to set up our uni accounts with the MySQL server, create a database, name and password in a special way. However, in the real world – turn to your webhost (assuming they provide you with MySQL etc). My free webhost (000webhost) provides this, and it was easy to create a new database by going to MySQL under the control panel. I created a database, provided it with a username and password, and it was done. It provided me with a nice little text that I could save that included all the details I needed for the config file. Change the config file’s username, password etc in your favourite text editor, I use (Notepad++). Save these changes, make sure that the updated file is on the server, then go to www.BLOGDIRECTORY/wp-admin/install.php  replacing BLOGDIRECTORY with where your blog was extracted. This brings up a nice little WordPress user interface if the database is all good, (the new blank database you created earlier) to name your blog and create an admin name and password.

Bingo. You should be all done. Go and have a look around, and delete the “Hello World” post under posts. Choose a theme (see which one I chose), and start blogging away!

Why do I write what I do in detail?

I write in a reasonable amount of detail so that people can follow exactly in my footsteps if they wish. This way they know exactly what to do, and what the end result should be. I think this comes from my own worries – In technology it can be hard to do things exactly right if instructions are lousy. For all I know, someone reading this post may have little computer experience, and may be interested in having a look at blogging. A “power user” however will not need this level of detail, but it may be useful for them to refer back to if something goes wrong.

If you are a new user, and have tried to follow something I’ve done and it hasn’t gone quite as expected, please do get in touch. (Click that link to open your email client. Email not displayed freely on the webpage to give me a tiny line of defence from bots crawling through web pages picking up email addresses to spam).

Recommendations: Try WordPress. Look at their site for lots of awesome themes. Use Notepad++, it highlights the syntax of many different languages, loads quickly and is very useful. I’d buy it if it wasn’t free.

Matt out

One thought on “Config settings”

Comments are closed.