You are here: Home » Getting Started » Install WordPress on Your New Web Site in 5 minutes

Install WordPress on Your New Web Site in 5 minutes

by Dave Doolin on March 21, 2010 · 20 comments

(Reading time: 8 – 12 minutes)

Welcome to the second hour of Website In A Weekend. You have a hosting account, and now we’re going to install WordPress really fast. It only takes about 5 minutes! But you do need to take some notes, so have a cheat sheet ready for marking down user names, passwords and the like.

This article was originally published on February 17, 2009. It’s been revised, corrected and republished. If you find any errors, please leave a comment. Errors will be instantly annihilated.

Install WordPress

Installing Wordpress can be quite easy, a matter of minutes.

There are two common ways:

  1. Install using a hosted script such as Fantastico, or Simple Script if on Bluehost. If you use an automatic script such as Fantastico or Simple Script, be vigilant about keeping your site upgraded because these scripts control your upgrade data instead of WordPress.

    Also, you may run into issues with paths, which will affect how files and images are stored. Read more about this in the article “Fix For Not Being Able To Upload Images Properly In Wordpress” by Josh Kohlbach

  2. “Manual” install creating databases and passwords. Installing manually takes a little longer, but you will learn a few basic website operation skills that will pay you back later.

I recommend using the manual instead of scripted install, but I’ll provide instructions for both, starting with manual install.

Hey! You're in the middle of the Website In A Weekend eCourse. Learn how to create and operate a complete WordPress-based website in a single weekend. Start here: Website In A Weekend: Friday Evening - Off to the Races. (If you already have a blog... "audit" the eCourse... you'll find plenty to do.)

Manual install

  1. Log in to bluehost.com cPanel for your account. For this tutorial, we’re going to refer to your account name using the fictitious “sitename.”
  2. Scroll down to the “Databases” box, and click on the first (leftmost) icon captioned “MySQL® Databases.”
    MySQL image link in cPanel

    MySQL image link in cPanel

  3. Create a database with a name using letters and numbers. For example, “word1″ which will result in a database named “sitename_word1.” Bluehost always prepends your login name to the database name to ensure your database has a unique name.*
    Create MySQL Database cPanel interface

    Create MySQL Database cPanel interface

  4. Create a database username using letters and numbers, for example: “usr1,” which results in “sitename_usr1.” Make sure that the password is easy to remember, but has a lot of mixed letters, numbers and characters in it.
    Create MySQL database user in cPanel interface

    Create MySQL database user in cPanel interface

  5. Write down your database username, database name and password on a piece of paper. You’ll need these again soon, then you can tear the paper up and throw it away.
  6. Scroll down to “Add User to Database,” and use the drop down menus to add “sitename_usr1″ to “sitename_word1″ database, giving the user ALL rights on the next screen (Check the top middle box).
    Add MySQL database user to database in cPanel

    Add MySQL database user to database in cPanel

  7. Return to cPanel and log out, you’re now done with database creation. You did write down your database, username and password, right?
  8. Download the latest version of WordPress and unzip the wordpress.zip file. You can stash the unzipped WordPress directory on your desktop for convenience.
  9. Configure WordPress to use the database. There’s two ways to do this: A. the easy way, and B. the not-quite-as-easy way. Let’s look at the easy way first.
    1. A. Let WordPress modify the configuration file.
      Hat tip: Jennifer Jinright at Gurl’s Asylum provided the following extremely helpful technique which makes manual install even easier.

      This is really easy. Once you have your database installed and the names of the database and database user and password, simply navigate your browser to the URL where you installed your blog, press the buttons and fill in the blanks as necessary. It’s really self-explanatory!

      Letting WordPress modify the configuration when installing.

      Letting WordPress modify the configuration when installing.

      Necessary items for allowing WordPress to configure it's own installation.

      Necessary items for allowing WordPress to configure it's own installation.

      The next screen is where you actually enter all the information. These screenshots came from live installations… not going to broadcast usernames and passwords showing my next screen!

    2. Manually modify the configuration file. Browse the unzipped WordPress directory (probably named “wordpress“) to find the wp-config-sample.php file. You need to make a few changes in this file.

      Edit wp-config-sample.php in a text editor (like WordPad) and change the database name, the database username and the password to match the names and password you created in cPanel (and which you wrote down on that piece of paper). Typically, you will see lines like:

      17
      18
      19
      20
      21
      22
      23
      24
      25
      
      // ** MySQL settings - You can get this info from your web host ** //
      /** The name of the database for WordPress */
      define('DB_NAME', 'mydatabasename');
       
      /** MySQL database username */
      define('DB_USER', 'myusername');
       
      /** MySQL database password */
      define('DB_PASSWORD', 'mypassword');

      Where it says “mydatabasename” you’ll write (say) “sitename_wrd1“… or whatever you have written on your handy paper. Do the same for DB_USER and DB_PASSWORD.

      For now, skip all the authentication variables (AUTH_KEY, SECURE_AUTH_KEY, etc.). Starting on or near line 50 is where you can change the database table prefix from it’s default value of “wp_” to whatever you like.

      50
      51
      52
      53
      54
      55
      56
      
      /**
       * WordPress Database Table prefix.
       *
       * You can have multiple installations in one database if you give each a unique
       * prefix. Only numbers, letters, and underscores please!
       */
      $table_prefix  = 'wp_';

      Renaming the “wp_” table prefix to something else slows down hackers and increase security. Save this file as “wp-config.php.”

  10. FTP all your WordPress files to your server’s public_html directory. If you are using an “addon domain,” say “mycooljunk.com,” this will be the public_html/mycooljunk directory.
  11. Now give the URL to your website in a browser, and follow the very simple instructions to setup Wordpress and login. Once you are logged in, you are free to change your password for the Wordpress website to something easier to remember. Or leave it as is, because Wordpress gives you a very secure default password.

Believe it or not, I can do all of the above in less than 5 minutes! It’s not difficult, but there are a few moving parts, so you should be able to get it done in an hour or so.

Scripted install

Fantastico first:

  1. Login in to cPanel at bluehost.com
  2. Click on the bright blue Fantastico icon near the bottom of the cPanel front page.
  3. Select “Wordpress” from the menu of available software.
  4. Fill in the boxes on the left pane of the browser window. Use “admin” for both name and nickname for logins. Use an easily accessible email address to get started. I use my gmail.com account for convenience.
  5. Log in to your new Wordpress blog using the information you gave Fantastico, and save the email you get. You may need it later.

I personally don’t use Fantastico because I like to be able to fix any (rare) security issues directly in Wordpress without waiting for the Fantastico script to update.

The Simple Script system provided by Bluehost.com is even easier: here’s a screencast for Simple Script WordPress installation.

NOTE: Be careful when upgrading. Both Fantastico and Simple Script store versioning information outside of WordPress. If you upgrade WordPress internally (recommended), neither of these scripts will know, and will continue to prompt you fir upgrades. Annoying.

You can find a breakdown of both manual and scripted procedures shown graphically in my mega-giant Wordpress MindMap.


Previous lesson Next Lesson
Getting started, finding your hosting provider Install critical plugins to extend WordPress



*Bluehost provides you with an account login name used to get to the cPanel interface. They use this 8 letter name in a variety of ways. Here, the MySQL server processes requests for a large number of accounts, so putting your login name before your database name makes it unique, ensuring that you and only you will be able to use that database.





Would you like more? Send me a letter...
"Hi Dave,
Website In A Weekend seems pretty cool. I'm serious about this WordPress and web stuff, and I'd like to keep up with it. My name is and my email address is . I'm comfortable with email newsletters. I know you will protect my privacy, and that I can unsubscribe at any time. "

{ 13 comments }

Josh September 29, 2009 at 3:59 pm

Thanks for the link Dave.

I totally agree – knowing how to do a manual installation is going to pay for itself later in the little skills you will pick up. It’s also your chance to get a look at the technologies behind Wordpress.
Josh´s last blog ..Combatting Spam in Wordpress My ComLuv Profile

Dr Wordpress! September 29, 2009 at 4:03 pm

@Josh – I’m Old Skool. Back before search engines such as Altavista, there were two ways to find people on the World Wide Web: type in their username at their university, or follow a chain of links.

You may or may not recall “Web Rings,” an early solution to finding people on the web (because there were ONLY people on the web back then).

So I read these articles exhorting people to “link out” and I have to laugh. People are more worried about “bleeding link juice” than creating useful articles. Silly!
Dr Wordpress!´s last blog ..Do You Have Blind Faith In The Blogging Process? My ComLuv Profile

Dave Doolin March 21, 2010 at 12:11 am

Here’s an offer, and this helps me out.

I’ll do a screencast screenshots (video exposes database names, wasn’t thinking!) for any step of the above manual installation for the first commenter requesting it.

Offer closes March 31, 2010 Midnight Pacific time.
Dave Doolin´s last blog ..CommentLuv – The Good, The Bad, and The Ugly – Saturday Morning Surfing My ComLuv Profile

Bert Padilla March 21, 2010 at 7:34 am

This is crazy… I didn’t exactly get it, Dave… If you can do screencast for the manual installation, that would be great. Thanks…
Bert Padilla´s last blog ..Windows Phone 7 Tablet Concept and Features Leaked My ComLuv Profile

Dave Doolin March 21, 2010 at 4:35 pm

Sometime in the next couple of days.
Dave Doolin´s last blog ..Social Media Overload! You can’t be everywhere… what to do? My ComLuv Profile

Bert Padilla March 27, 2010 at 2:21 pm

Thanks for the favor, Dave. Done bookmarking this post just in case there’s a need to check this again.
Bert Padilla´s last blog ..Selecting the Best Niche Blog My ComLuv Profile

Anne Bender March 21, 2010 at 1:06 pm

I really don’t dig through your site nearly enough! It took me about an hour to figure out how to install wordpress for my writing site. But I was so proud when it worked! Then I spent the rest of the night [early morning] setting up and tweaking.

I do have a question. Everyone says to get rid of the Admin login and create your own. This was done on my main site, but since I imported my writing site all the past posts are tied to the Admin login, or are they? What would happen if I deleted it? Note, I did create some insanely hard password and then my own personal login which I now use. Thanks.
Anne Bender´s last blog ..writing prompt 50 My ComLuv Profile

Dave Doolin March 21, 2010 at 4:38 pm

Anne, poke around on the sitemap (menu) and categories. I’ll see about generating a (useful) tag cloud at some point.

Also, feel free to email me with a question, if I have an article that answers it, I’ll try to shoot you a link, or at least a tag or some search terms making it easier to find.

It’s almost all here. Somewhere!
Dave Doolin´s last blog ..How Do You Eat An Elephant? – Eleanor Edwards tells all My ComLuv Profile

PicsieChick March 22, 2010 at 8:47 pm

Hey, Dave! Great post, I got through steps 1-10 of the manual install and feel like it went well. I have to admit I’m lost on step 11. What should the URL be?

Maybe it’s tough for me to understand since I’ve just requested a namesserver change to Bluehost and it doesn’t seem to have taken effect yet….

Thanks again for a great site!

Hugs and butterflies,
~T~
PicsieChick´s last blog ..Hidden My ComLuv Profile

Dave Doolin March 22, 2010 at 8:53 pm

I should probably reword that, it’s simple, like this:

http://youwebsitename.com/

Provided that’s where you put the WordPress files.

WordPress should install itself from there.
Dave Doolin´s last blog ..Social Media Overload! You can’t be everywhere… what to do? My ComLuv Profile

Gurl April 8, 2010 at 2:25 pm

As I told you on Twitter, I use the install script to fix the wp-config.php. Once everything has uploaded to go http://example.com/wp-admin/install.php if you installed it as top level and not in a sub-folder. It will give you a whoops and ask for all the info (this is where you will need your database details you wrote down as well as the host name which is USUALLY localhost). Fill all that in, and it does the rest and you move on the the rest of in admin install.

I too prefer the manual install but had a heck of a time getting my config file right… I found this somewhere in the official install documents and was up and running in no time.

Dave Doolin April 9, 2010 at 10:43 am

I’ll need to test this first, which should be sometime in the next week, then I’m going to Hat Tip you for it!

Really appreciate you poking around in these articles. There’s so much to know, no chance I can get everything right first time.
Dave Doolin´s last blog ..How To Publish The **** Out Of Your Blog Post My ComLuv Profile

Gurl April 9, 2010 at 11:48 am

My pleasure Dave. And I appreciate the hat tip when it hits :) I was VERY lucky to find this when I first attempted a set up of the self hosted WP. I was about 2 tries from giving up and letting the domain name sit unused! I’d hate to see anyone not get their dream going because something in the editing of that one file just doesn’t click for them!

Comments on this entry are closed.

{ 7 trackbacks }

Previous post:

Next post: