How to install a WordPress blog in cPanel

WordPress logo WordPress is a great content management system because the system itself is free and there’s a community of people also creating free layouts, plug-ins, and helpful tutorials (like this one). It’s powerful enough to manage most individual and organizational website needs, yet simple enough for everyone to use. I don’t mean to oversell WordPress, but it does make it possible to start a website with minimal effort and upfront expense.

I’m writing this post as a resource for my clients and to encourage more people to start blogs on their own.

Why have your own blog?

For those tuning into this post just wanting the nuts and bolt of a WordPress install on cPanel, feel free to skip ahead. I felt like this section should be in here because some people reading this post will be installing WordPress because they heard from trusted sources that they should do it, but they may not understand why.

In the spirit of being as complete a resouce as possible, the first thing you should know is that WordPress is primarily used to power blogs and blogs are a communication tool. They are intended to be a forum for an individual or group to publish information on a recurring basis. Blogs originated as online journals and the name blog itself comes from the mash up of Web+log. Blogs have been traditionally valued for their informal, chrnologically-based structure because it frees writers to write with their flow. Blog posts differ from traditional articles because they are supposed to be personally biased and shared for the purpose of conversation, which is carried out through comments left on the post. They are a great way to gain search engine traffic because search engines like website with frequent content additions. Blogs also foster relationships because of their conversational and opinionated nature.

Secret #1 - You don’t need to install WordPress

In fact, you don’t even need WordPress to have a blog. Places like Blogger, MySpace, and LiveJournal offer free blogs that simply require completing a short sign-up form. Social networking sites, like MySpace, not only offer blogs, but they also have over 100 million people in their network available for you to promote your blog.

You will still be interested in a WordPress blog if owning the site is an important part of your blogging goals. Owning your own site means you have full control over the site’s design and functionality. It also means you can decide about whether or not to have advertising, and if you do opt for it, then you make the money from the ads. Running your blog on your own website also lends credibility and prestige to your message. And, while this is a helpful resource for installing a WordPress blog, you should know there are hosting companies that offer website and email hosting with WordPress pre-installed or with a push button installer. In fact, WordPress has a great list of hosts on their website that offer just such packages. So, if you want the legitimacy that comes from owning your own domain, hosting, and blog software offers, but you don’t want the hassle of setting it up, those hosts have packages starting at $4.95 per month. If you do opt for this route, then just skip to the end of this post for some WordPress first tips.

Before we get started

If you’re a designer looking to expand your skill set or just an interested student of the Internet, then learning to set-up a WordPress blog could be a handy thing to know. In light of that, you will need a few things before you can install WordPress blog, such as:

  • A domain name
  • Compatible hosting:
    • Linux operating system
    • Apache web server
    • PHP server side scripting
    • MySQL database
  • A text editor, such as Notepad or TextEdit
  • FTP software
    • If you have a PC and no FTP software, I recommend Filezilla, which is free.
    • If you have a Mac and no FTP software, I recommend Transmit, which at least has a free demo.
    • If you don’t know what FTP software is and would like to know more, read the Wikipedia article on FTP software.

If you have those things, then all you’ll need is your FTP login information, which includes a server address, user name, and password. If you don’t have any of the above, then you’ll need to acquire those things. You can buy domain names and compatible hosting from a variety of suppliers. My recommendation is to find on that offers a graphical, web-based server control panel. The two most popular control panels are Plesk and cPanel. This tutorial contains a step-by-step process for setting up the database on BlueHost, a hosting company that offers cPanel for managing your server. A resourceful person should be able to use the information below to install WordPress on Plesk or another brand of control panel as the basic concepts are the same.

Step 1 - Create a database

The first thing you should do is create your database. Some hosting companies will create one for you at sign up, so you may want to check the registration confirmation and welcome info they sent you. If you don’t have one, then you can follow this example for setting up a MySQL database on BlueHost, which is powered by cPanel.

You’ll need to login to your control panel, which you usually do by either logging in through your hosting company’s site, or through your own site with an address like “manage.yourwebsite.com” or “yourwebsite.com:8448″. Refer to your registration email from your hosting company for that information.

Once you are logged in, on the home page of your admin control panel, click on the link for the MySQL database under the Database heading:

You’re now at the place where you can create databases and users as well as assign users to databases. Now, in the world of computers, databases belong to users, which means before we can create a database, we need to create a user. To create a user, simply enter their username and password here:

Once you’ve added the user, go back to the database management screen. Now you’re ready to create the database, which you can do by simply entering the name here:

Now that you have a database and a user, you need to assign the user to the database, which you can do by selecting the username and the database name from the drop down menus. Be sure to leave the “all” option checked because you want the user to have full access privileges. Now click the “Add user to db” button here:

Your database is now set-up! Be sure to write down the database name, username, and password as you will need them in Step 3. Please note that some hosting companies will tag characters on the front of your database name and username, for example you may have entered “wordpress” for your database name, but your hosting company made it “you_wordpress”.

Step 2 - Download

Now that we have all of the pieces in place, the next thing you’ll need to do is download WordPress. WordPress comes as one of 2 file formats: “.zip” and “.tar.gz”. If you don’t know what “.tar.gz” is, then I recommend downloading the zip file. The downloaded file should either unzip automagically, or you’ll need to do it manually. Unzipping the file manually should just be a matter of double-clicking on the file, which should open the application you have to unzip files. If you don’t have an unzipping application, then I recommend WinZip for a PC, and StuffIt Expander for Macs. Both are free to demo.

Unzipping the file should produce a single folder full of the application files. Open that folder and move on to the next step.

Step 3 - Edit the config file

In that folder there should be a file called “sample-wp-config.php”. Open that file with a text editor like Notepad or TextEdit. Do NOT use Microsoft Word because it doesn’t save files in a format that is compatible with the Web!

At the top of the config file there should be a place to enter your database name, username, and password; enter the names you wrote down from the end of Step 1. Save that file in the same folder, but change the file name by deleting the word sample, which should make the file named “wp-config.php”. Now you’re ready for Step 4.

Step 4 - Upload the application

Here’s where you are going to need the FTP program. Launch your FTP software and start a new connection. There should be a place for you to enter your server address, your FTP username, FTP password. This is not necessarily the same username and password as your database. Your hosting company should have sent you your FTP address, username and password as part of your sign-up, and you’ll need to contact them if you can’t find it.

After you enter your login data into your FTP program, there should be a button to connect or login, which should open your website’s root folder. Some hosting companies start you in a folder up a level or two from your website’s root folder. You may need to click on a folder or two to get to your website. Often times the first folder you need to click is the name of your site, such as “yoursite.com”. Then you need to click on a folder called something like “httpdocs”, “www”, “http”, “docs”, or “public”. This folder is what is known as your “root” folder and it’s the beginning of your website’s folder and file structure. If you want your blog address to be “yourwebsite.com”, then you’ll want to upload the contents of the WordPress folder on your computer into the root folder for your website. If you want your blog to be an address like “yourwebsite.com/blog”, then you need to create a new folder titled “blog”, or whatever you want the address to be, in the root folder of your website and upload the WordPress files there. * It’s important to note that you only want to upload the contents of the WordPress folder on your computer, not the main folder itself (you do want the folders within the main folder).

Step 5 - Run the installer

Now that everything is in place, open a web browser and type in the address for your blog (it should be something like yourwebsite.com or yourwebsite.com/blog). If your set up is correct, then you will see a screen telling you to run the installer. If you missed a step, then you’ll be told an error and it should prompt you with a possible solution.

Running the installer should lead you to a screen with a place to enter your blog’s name and your email address. WordPress will email a password to the address you enter here, so be sure you can access that account’s inbox. Plug the password from the confirmation email into the login screen and you’re in!

First tips

After your blog is up and running, you’ll need to poke around the admin to discover all of it’s possibilities. There are a few first things that people generally like to do, such as:

  • Change your blog name or add a tagline under the “Options” menu.
  • WordPress has links in your blogroll to start with, you can edit those or add new ones under “Links”.
  • WordPress also comes with a first post, which you can delete under the “Manage” menu.
  • You can write your first post by clicking on the “Write” menu.
    • When writing your first post, note the options on the right of the page. For example, you’ll want to make sure to assign categories to your post or it will remain uncategorized.
  • You can select a different layout or style under the “Presentation” menu. On the bottom of that page, you can click on a link for new WordPress themes, which links you to hundreds of pre-made styles with instructions for how to install them.

Allrighty, that’s all I’ve got for you today kids. Let me know if this post was helpful or what else you would like to know more about. Happy blogging!

i learned everything i know about word press from this junkie. i even stole his fucking template. yes i am known as “that guy” from time to time.

From mr. diggles on October 5th, 2006 at 1:29 pm

[...] Firstly you will need to gain access to your web space control panel, in my case it is a cpanel, it is straight forward to create a new database, you simply click on create new database, then create a new user and password, assign the user to the database you have just created allowing all privelages. Cpanel should tell you what the host is, mine is localhost. (write down or save the user name and password, my database added my domain name and a _ before the username etc). Then you will need to download your blog files ready for editing, I used word press: WordPress › Blog Tool and Weblog Platform there are very good instructions here for instalation but it doesn’t tell you everything: How to install a WordPress blog in cPanel at Metafluence You then unzip the file and open the php file that will drive the database, in word press that file is sample-wp-config.php DO NOT to open and edit in wordpad. Notepad was what I used. For this example lets say my website is called www testwebsite.com You need to add three things. OK the code in sample-wp-config.php looked exactly like this after I had edited the file: <?php // ** MySQL settings ** // define(’DB_NAME’, ‘testwebsite_blog’); // The name of the database define(’DB_USER’, ‘testwebsite_testuser’); // Your MySQL username define(’DB_PASSWORD’, ‘mypasswordgoeshere’); // …and password define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value // You can have multiple installations in one database if you give each a unique prefix $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please! // Change this to localize WordPress. A corresponding MO file for the // chosen language must be installed to wp-includes/languages. // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’ // to enable German language support. define (’WPLANG’, ”); /* That’s all, stop editing! Happy blogging. */ define(’ABSPATH’, dirname(__FILE__).’/'); require_once(ABSPATH.’wp-settings.php’); [...]

From How to install a blog? - Page 2 - Webmaster Forums - SEO SEM Web Hosting Web Design & Development Discussions on April 15th, 2007 at 1:55 pm

hey one doubt… i installed and i am the admin of my opwn site..
now is there an option in this were ppl can register and creat there own own blogs from my site and use my url?

can u pls hel

From rakesh on July 15th, 2007 at 12:32 pm

rakesh, yes. Under the main “Options” menu there is a category called “Membership”. Check the box that says “Anyone can register”. Just below that category is one called, “New User Default Role”. That sets the permission level of a self registered user. If you want them to be able to write posts, but not edit anything else, then set the default role to “Contributor”. I believe you’ll still have to approve their posts at that permission level. If you want them to be able to post without needing approval, then make the level “Author”. You’ll need to play with the different user levels to determine which on best meets your needs. Good luck!

From Justin on July 15th, 2007 at 1:47 pm

What say you about all of this?

Trackback URL Comment feed


Recent posts

Subscribe
Clicky Web Analytics