Chapter 6
In This Chapter
Finding and buying a domain name
Finding web hosting
Brushing up on FTP
Installing WordPress
Before you can start blogging with WordPress.org, you have to set up your base camp. Doing so involves more than simply downloading and installing the WordPress software. You also need to establish your domain (your blog address) and your web-hosting service (the place that houses your blog). Although you initially download your WordPress software onto your hard drive, your web host is where you install it.
Obtaining a web server and installing software on it are much more involved projects than simply obtaining an account with the hosted version of WordPress that’s available at WordPress.com (covered in Part II). You have to consider many factors in this undertaking, as well as cope with a learning curve, because setting up your blog through a hosting service involves using some technologies that you may not feel comfortable with at first.
This chapter takes you through the basics of those technologies, and by the last page of this chapter, you’ll have WordPress successfully installed on a web server with your own domain name.
You’ve read all the hype. You’ve heard all the rumors. You’ve seen the flashy blogs on the web powered by WordPress. But where do you start?
The first steps toward installing and setting up a WordPress blog are deciding on a domain name and then purchasing the registration of that name through a domain registrar. A domain name is the unique web address that you type in a web browser’s address bar to visit a website. Some examples of domain names are WordPress.org and Google.com.
When registering a domain name, be aware of the extension that you want. The .com
, .net
, .org
, .info
, .me
, .us
, or .biz
extension that you see tacked onto the end of any domain name is the top-level domain extension. When you register your domain name, you’re asked to choose the extension you want for your domain (as long as it’s available, that is).
A word to the wise here: Just because you have registered your domain as a .com
doesn’t mean that someone else doesn’t, or can’t, own the very same domain name with a .net
. So if you register MyDogHasFleas.com, and it becomes a hugely popular site among readers with dogs that have fleas, someone else can come along and register MyDogHasFleas.net and run a similar site to yours in the hope of riding the coattails of your website’s popularity and readership.
You can register your domain name with all available extensions if you want to avert this problem. My own website, for example, has the domain name lisasabin-wilson.com; however, I also own lisasabin-wilson.net.
Registering a domain costs you anywhere from $3 to $30/year depending on what service you use for a registrar and what options (such as privacy options and search-engine submission services) you apply to your domain name during the registration process.
Domain registrars are certified and approved by the Internet Corporation for Assigned Names and Numbers (ICANN). Although hundreds of domain registrars exist today, those in the following list are popular because of their longevity in the industry, competitive pricing, and variety of services they offer in addition to domain name registration (such as web hosting and website traffic builders):
No matter where you choose to register your domain name, here are the steps you can take to accomplish this task:
Doing a little planning and forethought here is necessary. Many people think of a domain name as a brand — a way of identifying their websites or blogs. Think of potential names for your site, then you can proceed with your plan.
In your web browser, enter the URL of the domain registrar of your choice. Look for the section on the registrar’s website that lets you enter the domain name (typically, a short text field) to see whether it’s available. If the domain name isn’t available as a .com
, try .net
or .info
.
Follow the domain registrar’s steps to purchase the name using your credit card. After you complete the checkout process, you receive an e-mail confirming your purchase, so use a valid e-mail address during the registration process.
The next step is obtaining a hosting account, which I cover in the next section.
When you have registered your domain, you need to find a place for it to live: a web host. Web hosting is the second piece of the puzzle that you need before you begin working with WordPress.org.
A web host is a business, group, or individual that provides web server space and bandwidth for file transfer to website owners who don’t have it. Usually, web-hosting services charge a monthly or annual fee — unless you’re fortunate enough to know someone who’s willing to give you server space and bandwidth for free. The cost varies from host to host, but you can obtain quality web-hosting services starting at $3 to $10/month.
Web hosts consider WordPress to be a third-party application. What this means to you is that the host typically won’t provide technical support on the use of WordPress (or any other software application) because support isn’t included in your hosting package. To find out whether your chosen host supports WordPress, always ask first. As a WordPress user, you can find WordPress support in the official forums at http://wordpress.org/support.
Web-hosting providers generally provide (at least) these services with your account:
Because you intend to run WordPress on your web server, you need to look for a host that provides the minimum requirements needed to run the software on your hosting account, which are
The popularity of WordPress has given birth to services on the web that emphasize the use of the software. These services include WordPress designers, WordPress consultants, and — yes — web hosts that specialize in using WordPress.
Many of these hosts offer a full array of WordPress features, such as an automatic WordPress installation included with your account, a library of WordPress themes, and a staff of support technicians who are very experienced in using WordPress.
Here is a list of some of those providers:
Web-hosting services provide two very important things with your account:
Think of your web host as a garage that you pay to park your car in. The garage gives you the place to store your car (disk space). It even gives you the driveway so that you, and others, can get to and from your car (bandwidth). It won’t, however, fix your rockin’ stereo system (WordPress or any other third-party software application) that you’ve installed — unless you’re willing to pay a few extra bucks for that service.
Disk space is nothing more complicated than the hard drive on your computer. Each hard drive has the capacity, or space, for a certain number of files. An 80GB (gigabyte) hard drive can hold 80GB of data — no more. Your hosting account provides you a limited amount of disk space, and the same concept applies. If your web host provides you 10GB of disk space, that’s the limit on the file size that you’re allowed to have. If you want more disk space, you need to upgrade your space limitations. Most web hosts have a mechanism in place for you to upgrade your allotment.
Starting out with a self-hosted WordPress blog doesn’t take much disk space at all. A good starting point for disk space is between 10 and 20GB of storage space. If you need additional space, contact your hosting provider for an upgrade.
Bandwidth refers to the amount of data that is carried from point A to point B within a specific period (usually, only a second or two). I live out in the country — pretty much the middle of nowhere. I get my water from a private well that lies buried in the backyard somewhere. Between my house and the well are pipes that bring the water into my house. The pipes provide a free flow of water to our home so that everyone can enjoy their long, hot showers while I labor over dishes and laundry, all at the same time. Lucky me!
The very same concept applies to the bandwidth available with your hosting account. Every web-hosting provider offers a variety of bandwidth limits on the accounts it offers. When I want to view your website in my browser window, the bandwidth is essentially the “pipe” that lets your data flow from your “well” to my computer and appear on my monitor. The bandwidth limit is kind of like the pipe connected to my well: It can hold only a certain amount of water before it reaches maximum capacity and won’t bring the water from the well any longer. Your bandwidth pipe size is determined by how much bandwidth your web host allows for your account — the larger the number, the bigger the pipe. A 50MB bandwidth limit makes for a smaller pipe than does a 100MB limit.
Web hosts are pretty generous with the amount of bandwidth they provide in their packages. Like disk space, bandwidth is measured in gigabytes (GB). Bandwidth provision of 10 to 50GB is generally a respectable amount to run a website with a blog.
This section introduces you to the basic elements of File Transfer Protocol (FTP). FTP is a method you use to move files from one place to another — for example, from your computer to your web-hosting account. This method is referred to as uploading. The capability to use FTP with your hosting account is a given for almost every web host on the market today.
Using FTP to transfer files requires an FTP client. Many FTP clients are available for download. Following are some good (and free) ones:
Earlier in this chapter, in the “Finding a Home for Your Blog” section, you found out how to obtain a web-hosting account. Your web host gives you a username and password for your account, including an FTP IP address. (Usually, the FTP address is the same as your domain name, but check with your web host because addresses may vary.) It is this information — the username, password, and FTP IP address — that you insert into the FTP program to connect it to your hosting account.
Figure 6-1 shows my FTP client connected to my hosting account. The directory on the left is the listing of files on my computer; the directory on the right shows the listing of files on my hosting account.
FTP clients make it easy to transfer files from your computer to your hosting account by using a drag-and-drop method. Simply click the file on your computer that you want to transfer, drag it over to the side that lists the directory on your hosting account, and drop it. Depending on the FTP client you’re working with, you can refer to its user manuals or support documentation for detailed information on how to use the program.
By the time you’re finally ready to install WordPress.org, you should have done the following things:
If you missed doing any of these items, you can go back to the beginning of this chapter to read the portions you need.
If you have to install WordPress manually, here’s where the rubber meets the road — that is, you’re putting WordPress’s famous five-minute installation to the test. Set your watch and see whether you can meet that five-minute mark.
Without further ado, go get the latest version of the WordPress software at http://wordpress.org/download.
Download the WordPress software to your computer and decompress (unpack or unzip) it to a folder on your computer’s hard drive. These steps are the first in the installation process for WordPress. Having the program on your own computer isn’t enough, however; you also need to upload (transfer) it to your web server account (the one you obtained in “Finding a Home for Your Blog,” earlier in this chapter).
Before installing WordPress on your web server, make sure that you have a MySQL database set up and ready to accept the WordPress installation. The next section tells you what you need to know about MySQL.
The WordPress software is a personal publishing system that uses a PHP-and-MySQL platform, which provides everything you need to create your own blog and publish your own content dynamically without having to know how to program those pages yourself. In short, all your content (options, posts, comments, and other pertinent data) is stored in a MySQL database in your hosting account.
Every time visitors go to your blog to read your content, they make a request that’s sent to your server. The PHP programming language receives that request, obtains the requested information from the MySQL database, and then presents the requested information to your visitors through their web browsers.
Every web host is different in how it gives you access to set up and manage your MySQL database(s) for your account. In this section, I use a popular hosting interface called cPanel. If your host provides a different interface, the same basic steps apply; just the setup in the interface that your web host provides may be different.
To set up the MySQL database for your WordPress blog with cPanel, follow these steps:
I’m using the cPanel administration interface, but your host may provide NetAdmin or Plesk, for example.
In cPanel, click the MySQL Databases icon.
Note the database name because you need it during the installation of WordPress later.
For security reasons, make sure that your password isn’t something that sneaky hackers can easily guess. Usually, I give my database a name that I will easily recognize later. This practice is especially helpful if you’re running more than one MySQL database in your account. If I name this database something like WordPress or wpblog, I can be reasonably certain — a year from now, when I want to access my database to make some configuration changes — that I know exactly which one I need to deal with.
You get a message confirming that the database has been created.
You get a confirmation message that the username was created with the password you specified.
Make absolutely sure that you note the database name, username, and password that you set up during this process. You will need them in the next section before officially installing WordPress on your web server. Jot them down on a piece of paper, or copy and paste them into a text-editor window; either way, just make sure that you have them immediately handy.
The MySQL Account Maintenance, Manage User Privileges page appears in cPanel.
Because you’re the administrator (owner) of this database, you need to assign all privileges to the new user account you just created.
A page opens with a confirmation message that you’ve added your selected user to the selected database.
You go back to the MySQL Databases page.
To upload the WordPress files to your host, return to the folder on your computer where you unpacked the WordPress software that you downloaded earlier. You’ll find all the files you need (shown in Figure 6-2) in a folder called /wordpress
.
Using your FTP client, connect to your web server and upload all these files to your hosting account into the root directory.
Here are a few things to keep in mind when you’re uploading your files:
/wordpress
folder to your web server — not the folder itself. Most FTP client software lets you select all the files and drag and drop them to your web server. Other programs have you highlight the files and click a Transfer button..jpg
, .gif
, .bmp
, and .png
files) are transferred via FTP.For the most part, it’s a safe bet to make sure that the transfer mode of your FTP client is set to autodetect. But if you experience issues with how those files load on your site, retransfer the files using the appropriate transfer mode.
/blog
.chmod
) of 666, whereas file folders need a permission of 755. Almost all FTP clients let you check and change the permissions on the files if you need to. Typically, you can find the option to change file permissions in the menu options of your FTP client.
Some hosting providers run their PHP software in a more secure format called safe mode. If this is the case with your host, you need to set the PHP files to 644. If you’re unsure, ask your hosting provider what permissions you need to set for PHP files.
The final step in the installation procedure for WordPress is connecting the WordPress software you uploaded to the MySQL database. Follow these steps:
http://yourdomain.com/wp-admin/install.php
If you chose to install WordPress in a different folder from the root directory of your account, make sure you indicate this fact in the URL for the install script. If you transferred the WordPress software files to a folder called /blog
, for example, you would point your browser to the following URL to run the installation: http://yourdomain.com/blog/wp-admin/install.php.
Assuming that you did everything correctly (see Table 6-1 for help with common installation problems), you see the message shown in Figure 6-3.
Table 6-1 Common WordPress Installation Problems
Error Message |
Common Cause |
Solution |
Error Connecting to the Database |
The database name, username, password, or host was entered incorrectly. |
Revisit your MySQL database to obtain the database name, username, and password, and re-enter that information. |
Headers Already Sent Error Messages |
A syntax error occurred in the |
Open the |
500: Internal Server Error |
Permissions on PHP files are set incorrectly. |
Try setting the permissions ( |
404: Page Not Found |
The URL for the login page is incorrect. |
Double-check that the URL you’re using to get to the login page is the same as the location of your WordPress installation (such as http://yourdomain.com/wp-login.php). |
403: Forbidden Access |
An |
WordPress is a PHP application, so the default home page is |
The next page that opens is a Welcome to WordPress message, which gives you the information you need to proceed with the installation.
If you named your database wordpress, for example, you would enter that in this text box. Or if your host requires you to append the database name with your hosting account username, you would enter username_wordpress, substituting your hosting username for username. My username is lisasabin, so I would enter lisasabin_wordpress.
You see a message that says, All right, sparky! You've made
it through this part of the installation. WordPress
can now communicate with your database. If you're ready, time now to run the install!
You see another welcome page with a message welcoming you to the famous five-minute WordPress installation process.
For security reasons (and so that other people can’t make a lucky guess), passwords should be at least seven characters long and use as many different characters in as many combinations as possible. Use a mixture of uppercase and lowercase letters, numbers, and symbols (such as ! “ ? $ % ^ &).
The WordPress installation machine works its magic and creates all the tables within the database that contain the default data for your blog. WordPress displays the login information you need to access the WordPress Dashboard. Make note of this username and password before you leave this page. Scribble it down on a piece of paper or copy it into a text editor such as Notepad.
After you click the Install WordPress button, you receive an e-mail with the login information and login URL. This information is handy if you’re called away during this part of the installation process. So go ahead and let the dog out, answer the phone, brew a cup of coffee, or take a 15-minute power nap. If you somehow get distracted away from this page, the e-mail sent to you contains the information you need to successfully log in to your WordPress blog.
If you happen to lose this page before clicking the Log In button, you can always find your way to the login page by entering your domain followed by the call to the login file (for example, http://yourdomain.com/wp-login.php).
You know that you’re finished with the installation process when you see the login page, as shown in Figure 6-6. Check out Table 6-1 if you experience any problems during this installation process; it covers some of the common problems users run in to.
So do tell — how much time does your watch show for the installation? Was it five minutes? Stop by my blog sometime (http://lisasabin-wilson.com) and let me know whether WordPress stood up to its famous five-minute-installation reputation. I’m a curious sort.
The good news is — you’re done! Were you expecting a marching band? WordPress isn’t that fancy … yet. Give them time, though; if anyone can produce it, the folks at WordPress can.
Let me be the first to congratulate you on your newly installed WordPress blog! When you’re ready, log in and familiarize yourself with the Dashboard, which I describe in Chapter 7.
18.222.162.130