WordPress Tutorials

How to install WordPress in cPanel

There are multiple ways of installing WordPress on the server. While there are popular ways like Fantastico etc. to install it, the much famous ‘five minute install’ is still a classic. Since most of the web servers have cPanel installed, and use MySQL as the database, in this post, we shall discuss how to install WordPress using cPanel and MySQL database.

Step 1: Download the latest WordPress

WordPress is a free software, available for download from http://www.wordpress.org/download page. The current version is 3.5.1 and is about 5.2 MB in size. Download the zip or tar.gz. Unzip the setup files, using any standard unzipping software.

Step 2: Creating MySQL Database

This is where we shall use cPanel. Most of the web hosts have cPanel, and if you are yet to make a decision on the host, choose one with a cPanel functionality.

  • Log into the host account and navigate to cPanel and then to MySQL database option.
  • Choose a name of the database. Probably, ‘wordpress’ or ‘WPS’. Click the ‘create database’, and wait till the process is completed.
  • Navigate back to the MySQL database page. Here you shall create username and password. After you do this, click the back link to return to MySQL main page.
  • Go to ‘add users to database’ page and choose the username that was created in the above step.
  • Now you shall probably land on the MySQL maintenance screen. Give yourself all privileges for the database. A confirmation message shall be shown, saying that you have been added to the database.

Step 3: Uploading the WordPress setup files

Using an FTP client, upload WordPress setup files which were unzipped in the step 2, to your server’s root directory. If you don’t know the location of the root folder, ask your WordPress hosting service provider about it.

Step 4 Running the Install script

  • Direct your browser to yourdomain.com/wp-admin/install.php.
  • You shall see a message saying that WordPress couldn’t find wp-config.php and also a button which shall create the config file. This shall bring one to the page, which says ‘Welcome to WordPress’. Click the ‘let’s go’ button.
  • The steps from here are pretty much downhill. Enter the name of the database, username and password which you had entered earlier.
  • There would be ‘localhost’ mentioned in the database. Also, there would be ‘wp_’ mentioned as the prefix for tables in the database. After looking these up, click the ‘submit’ button.
  • If everything has gone as expected, you shall see a screen which has the ‘run the install’.
    • This is the beginning of WordPress 5 minute set up.
    • Enter the title of the site, and other details like email, username and password that are asked.
    • Here there are also option to enable Google and other search engines to find the website.

And you are done! In few minutes, there would be an email giving information as to how to login to the website.

What Might go Wrong

While the process is generally quite smooth, here are some common hiccups

  • 404: Page not found: Enter the URLs properly.
  • 403: Forbidden access: Check if the install file ends with an extension other than .php. If so, open that folder in the server (using Putty or any other FTP clients) and delete files which end with index.htm. index or html.
  • Error connecting database: This means that you have messed up in the username, database name or password. Recheck everything. If the problem still persists, contact the webhost to sort it out.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.