How to Start / Setup Your Own WordPress Blog

Getting Started with Your Blog with WordPress


How to Start / Setup Your Own Blog Using WordPress

by Christopher Heng, thesitewizard.com

This series of tutorials deals with how you can start your own blog using a blogging software called WordPress. WordPress is a free blogging software that you can install onto your website so that you can write and manage your own blog. It is generally regarded as easy to install and use. The tutorials take you through the steps of installing your own WordPress blog, configuring/customizing it, modifying it so that it is search-engine friendly and so on.

This chapter deals with how you can go about setting up the blog.

Requirements

There are certain prerequisites before you can use WordPress as your blogging software.

  1. Your web host must support the execution of PHP scripts. PHP is basically an interpreted programming language. It is the language in which WordPress is written, and thus for WordPress to run at all, your web host must support it. Most, if not all, commercial web hosts support PHP. If your site is hosted on your ISP, chances are that it does not support PHP and cannot run WordPress.

  2. Your web host must allow you at least 1 MySQL database. WordPress stores its data, your blog entries, in a special file called a database, which allows easy and fast retrieval. Check with your web host if your hosting package provides any MySQL databases. Again, if you are hosted on an account which your ISP supplies to you for free as a result of your using their broadband or dialup services, it is unlikely that you have access to MySQL at all. Get an account with a commercial host instead.

  3. Your web host should not insert any advertisements into your web page. Although this is not an official requirement for running WordPress blogs, my experience is that you will run into problems using your WordPress blog when the web host embeds advertisements into pages displayed on your site. My tests on a few free web hosts providing PHP and MySQL access show that the inserted advertisements interfere with the forms created by the WordPress script, with the result that you may be unable to post or edit any blog entries.

    Note that I am not saying that you cannot insert advertisements onto your own page. Ads you insert on your own page, if done correctly, do not cause problems. However, most free web hosts automatically insert advertisements into your web page without your intervention. Sometimes these advertisements are loaded into portions of the page that interfere with the WordPress script that handles posting and editing.

    (Before you get angry at the free web hosts, you should note that they use the advertisements to recover the cost of running your website. Free web hosts without any viable revenue model tend to close after a short time, as my article on free web hosts that disappear overnight mentions.)

Optional but Recommended

How to Install WordPress

  1. Find out from your web host the name of your MySQL database, the user name you should use to connect to the MySQL database and the password for the database. In some cases, your web host may require you to create the database yourself from their control panel. Follow their instructions and do so. Make sure that you write down all the information provided about your database, word for word, letter for letter. That is, if your web host (or your web control panel) tells you that your database username is called "yourdomain_yourusername", make sure you write that down and not just "yourusername" even if you specified "yourusername" when you created the database. Note also that the user name and password used to connect to your database may not be the same as that used for your web hosting account.

    You will need to use this information later.

  2. Download the latest WordPress software. You can either get the zip version or the "tar.gz" version. If you don't know what "tar.gz" is, download the zip version. This tutorial assumes that you have downloaded the zip version.

  3. Unpack (or unzip) all the files contained in the archive you downloaded. If you use Windows XP, simply double-click the file, and drag the folder "wordpress" onto your desktop.

  4. Open the "wordpress" folder. In Windows, this means double-clicking the folder. In the window that opens, you should be able to spot a file named "wp-config-sample.php". If you cannot find such a file, and you are using Windows, look for a file named "wp-config-sample" (without the PHP extension). Windows hides file extensions by default.

    Start up an ASCII text editor and open that "wp-config-sample.php" file in it. In Windows, you can simply use Notepad. To start Notepad, go to the Accessories folder in your Start menu and click the "Notepad" item. Then click the "File" menu, followed by the "Open" item in the menu that appears. Navigate to the file you found earlier and double-click it to open it.

  5. In the file, you will see lines like the following:

    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username */
    define('DB_USER', 'username_here');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    

    Replace "database_name_here" with the name of your database. Make sure that the name of your database is enclosed within the single quotes. That is, if the name of your database is "mywordpressdatabase", the line should read:

    define('DB_NAME', 'mywordpressdatabase');
    

    Replace "username_here" with your MySQL database username, and the "password_here" with your MySQL password. Again, make sure you do not delete the enclosing single quotes.

    Scroll down the file to find the section containing words like the following:

    define('AUTH_KEY',         'put your unique phrase here');
    define('SECURE_AUTH_KEY',  'put your unique phrase here');
    define('LOGGED_IN_KEY',    'put your unique phrase here');
    define('NONCE_KEY',        'put your unique phrase here');
    define('AUTH_SALT',        'put your unique phrase here');
    define('SECURE_AUTH_SALT', 'put your unique phrase here');
    define('LOGGED_IN_SALT',   'put your unique phrase here');
    define('NONCE_SALT',       'put your unique phrase here');
    

    Replace all instances of "put your unique phrase here" with any phrase you like. They can also be of any length. Like your password, these keys are supposed to improve the security of your blog. If you can't be bothered to think up new phrases for those keys, you can use WordPress' secret key generator to generate some random sequence of characters that you can copy and paste into those lines.

    Save the file under a new name, "wp-config.php". To do this in Notepad, click the "File" menu followed by the "Save as" item on the menu that appears. Type the name "wp-config.php", including the quotes. You must include the quotes or Notepad will name the file "wp-config.php.txt" behind your back.

  6. Now comes the long and tedious part: uploading the files to your web hosting account. Basically, what you will need to do here is to transfer all the files in the wordpress folder to your web host. It is a long process (especially if your upload speed is slow) since there are many files to transfer.

    You will need an FTP program. An FTP program is simply a piece of software that transfers files from your computer to your web host. (It can transfer files the other way as well, but that is beside the point of this tutorial.) You can either get one of the free FTP programs listed on thefreecountry.com's Free FTP Clients, Secure FTP (SFTP) Programs page, or use some other FTP client that you like.

    If you don't have any preference, try FileZilla so that you can use my tutorial How to Upload a File to Your Website Using the FileZilla FTP Client on http://www.thesitewizard.com/gettingstarted/howtoupload.shtml as a guide on how you can upload your WordPress files. If you use some other software, you will need to read the instructions supplied with that software yourself.

    Whichever software you use, connect to your web host using that software, and transfer ALL the files located in your wordpress directory. You can do either of 2 things:

    • Transfer the files directly into the main web directory of your web hosting account. You may want to do this if your entire website consists of your blog. You should also do this if you are a total novice when it comes to creating a website or blog, since it will simplify your job later.

    • Transfer the files into a subdirectory (sub-folder) of your web hosting account. This is useful if your blog is only a small part of your website. You will then need to create a main page for your website that has a link pointing to your blog. For example, if you create a folder called "blog" in your main web directory, the URL to your blog will be called www.example.com/blog/, and you will need to create a file www.example.com/index.html that points to that URL. If you take this route, whenever I say www.example.com/wp-admin/install.php and www.example.com/wp-login.php later, you will need to use www.example.com/blog/wp-admin/install.php and www.example.com/blog/wp-login.php instead. You will also need to create the index.html yourself. If you don't understand what I just said in this paragraph, use the first option.

  7. Once you have finished uploading your files, open your browser and go to www.example.com/wp-admin/install.php. Replace the "www.example.com" with the real URL of your website. You will now need to complete the installation of your blog using WordPress' browser interface.

    If you get an error message at this point, telling you that WordPress could not connect to your database, it probably means that you entered the database name, user name or password wrongly in your wp-config.php file. Fix the incorrect information in the wp-config.php file, and upload that file again to your website. Then try www.example.com/wp-admin/install.php.

  8. Fill in the name of your blog and your email address. Click "Continue to the second step".

  9. WordPress then sets up your blog and displays a page giving you your blog username and a password. Write this username and password down somewhere. You will need to use this every time you manage your blog or post an entry.

Congratulations, you have successfully installed WordPress. You can start posting to your blog by going to www.example.com/wp-login.php (replace www.example.com with your domain name), logging in with the "admin" user name and the password supplied to you earlier and following the instructions given on that page.

Copyright © 2007-2010 by Christopher Heng. All rights reserved.
Get more free tips and articles like this, on web design, promotion, revenue and scripting, from http://www.thesitewizard.com/.

thesitewizard.com's WordPress Blog Tutorials

You are here: Top > Getting Started with Your Website > How to Start / Setup Your Own WordPress Blog

Other articles on: Blogging, WordPress

thesitewizard™ News Feed (RSS Site Feed)  Subscribe to thesitewizard.com newsfeed

Do you find this article useful? You can learn of new articles and scripts that are published on thesitewizard.com by subscribing to the RSS feed. Simply point your RSS feed reader or a browser that supports RSS feeds at http://www.thesitewizard.com/thesitewizard.xml. You can read more about how to subscribe to RSS site feeds from my RSS FAQ.

Please Do Not Reprint This Article

This article is copyrighted. Please do not reproduce this article in whole or part, in any form, without obtaining my written permission.

Related Pages

New Articles

Popular Articles

How to Link to This Page

It will appear on your page as:

How to Start / Setup Your Own Blog Using WordPress





Home
Donate
Contact Us
Link to Us
Topics
Site Map

Getting Started
Web Design
Search Engines
Revenue Making
Domains
Web Hosting
Blogging
JavaScripts
PHP
Perl / CGI
HTML
CSS
.htaccess / Apache
Newsletters
General
Seasonal
Reviews
FAQs
Wizards

 

 
Free webmasters and programmers resources, scripts and tutorials
 
HowtoHaven.com: Free How-To Guides
 
Site Design Tips at thesitewizard.com
Find this site useful?
Please link to us.