Ok. So you want to install wordpress. Good decision :). Let’s see how to install wordpress to start building your website. It’s easy.
We are going to be using cPanel for this installation process. It’s the most popular and easy to use control panel for managing servers and websites. cPanel is already included when you purchase a web hosting plan at hostbarrack.com. So, let’s begin.
Installing wordpress is quite simple. There are two methods. You can install wordpress manually or you can install it using an installer like softaculous in cPanel. The easiest way to install is through softaculous.
Both cPanel and softaculous are included with hostbarrack’s web hosting packages. So you don’t have to worry about it.
When you sign up for web hosting, your cPanel login details will be sent to your registered email.
How to install wordpress using softaculous
First login to your cPanel by entering either of the following url :
- http://www.yourdomain.com/2082 if you do not have ssl for your domain.
- https://www.yourdomain.com/2083 if you have SSL for your domain.
It is suggested by cPanel to login to your cpanel through an encrypted SSL. An encrypted SSL connection will not transmit your username and password in plain text over the Internet. You can purchase SSL certificates for your domain at a yearly price at upto 70% discount from original company price from here.
- After you login to your cpanel, scroll down to “Software and Services” box.
- Then click on softaculous.
- In softaculous, cick on blogs and then wordpress.
- Click install.
- In “choose protocol”, select “http://” or “http://www.” if you do not have SSL for your domain or choose “https://” or “https://www.” if you have SSL for your domain.
- In “choose domain”, select the domain you want to install wordpress on from the dropdown menu.
- In “In directory”, enter the name of the directory you would like to install wordpress. Suppose you enter “wp”, your wordpress will be installed in yourdomain.com/wp. If you would like your domain to go to wordpress directly, leave the field empty. Then your wordpress will be installed in yourdomain.com.
- In “Database Name”, choose a name for the database. WordPress runs on databases and softaculous will create the database for you. You only need to choose a name. You domain name should be fine without “http://www.” and “.com”. This will make it easier for you to remember.
- In “table_prefix” under database settings, by default you will see wp_. This is the prefix for your database name. Suppose you entered “yourdomain” as your database name in the above step, your actual database name will look like “wp_yourdomain”. Leave this setting in default. No need to change this.
- In “Site Name”, enter the name of your site as you want.
- In “Site Description”, enter a short description for your site.
- In “Enable Multisite (WPMU)”, check the box if you want multisite enabled on your wordpress. Leave it unchecked if you do not want multisite. Multisite is a feature of wordpress which allows people to sign up to your wordpress site to create their own blog under your main wordpress site. If you enable this feature, you will be the super admin and will have control over your own main wordpress website and over the websites created by others under your main wordpress. You can read more about multisites here.
- In “Admin Username”, enter your desired username.
- In “Admin Password”, enter a password for your wordpress login. Remember to use a strong password so that spammers and hackers cannot login to your website without authorization. The password strenth indicator will show you how strong your entered password is.
- In “Admin Email”, enter your email. All wordpress related notifications will go to this email.
- In “Select a language”, choose the language you prefer.
- In “Limit login attempts”, check the box if you want to limit login attempts. It will limit the number of times a person can attempt to login. If an unauthorized person attempts to login without the username and password, and fails for the number of times you set, wordpress will stop all logins for a specified time like 30 minutes. This increases security. If you check this box, softaculous will install a plugin in your wordpress automatically that will do the job of limiting login attempts.
If you want to run automatic backups of your website, you can do so by clicking the “Advanced Option” and checking “Automate Backups” to enable it. Then, in “Backup Rotation” choose the number of backups to keep. If you select 4 in backup rotation and you reach 5 backups, softaculous will delete the oldest backup and run a new backup. Keep in mind that the backups will use your server storage. So choose backup rotation as per the space available to you.
You can also run backups for your wordpress site manually from softaculous.
Hostbarrack runs daily backups for your websites. But it is recommended to run your own backups too for more security.
You can also run backups manually from cPanel – Backups. More in this in a future post. Keep reading 🙂
If you are worried about your server space, you can download the zip files of the backups to your local storage like a computer or External hard drives and delete the backups from your server.
Finally, click install.
Softaculous will start the installation process and notify you when it is complete.
Congratulations!! You installed wordpress for your website! And you have completed the course “how to install wordpress with softaculous” 😀
How to install wordpress manually
A bit tech savvy you are huh? :). Let’s see how to install wordpress manually. We are going to use cPanel again which is the industry leading control panel for web servers.
First you need to download the latest version copy of wordpress. You can download it from wordpress.org.
Now upload the wordpress installation file to your server using FTP like filezilla. Or you can login to your cPanel, go to “Files” section, click “File Manager”, go to your website directory, click upload from the top menus and select the wordpress installation file to be uploaded.
- After the file has been uploaded, select the wordpress zip file and click extract from the top menus.
- You will get a new folder called wordpress. Enter the “wordpress” folder and click “select all” from the top menus. Click “move file” and move them to the root directory of your domain. That is, if you are installing wordpress on your root domain, move them to the public_html. If you are installing wordpress on a sub domain or an add on domain called “yourdomain”, move them to public_html/yourdomain.
- Now you need to create a database for your wordpress. Go to cPanel, “Databases” and click on “MySQL Databases”.
- Under “Create a new database”, enter a name you wish for the databse. Keep it something easy to remeber for identifying it with your website. Click “create database”.
- Under “MySQL Users”, “Add a new user”, enter the name for the user. Then enter the password or click generate password. Check the box saying “I have copied this password to a secured location”. Note down the password, you will need it later. Click create user.
- Under “Add a user to a database”, you will need to assosciate the user you just created to the database you created before. In “User”, select the user you created. In “database”, select the database name you created before. Click “add”.
- You will be taken to a new page where you will need to select the privildges you wish to give to the user for the database. Click “All Priviledges”. Then click “Make Changes”. Congrats! You have created a database and a user. There are a few more steps.
- Now go to your cPanel file directory. Then go to the place where you had moved the wordpress files.
- Find the file called wp-config-sample.php. Right click on it and click rename. Rename the file to wp-config.php and click “OK”.
- Now right click on the file wp-config.php and click edit.
- Look for “define(‘DB_NAME’, ‘database_name_here’);”. Change “databse_name_here” to the database name you had created previously. Remember to put your database name within the apostrophies (‘ and ‘).
- In define “(‘DB_USER’, ‘username_here’);”, change ” ‘username_here’ ” to the username you created. Remember to put the username within apostrophies (‘ and ‘).
- In “define(‘DB_PASSWORD’, ‘password_here’);”, change “password_here” to the password you had generated when creating the user (See? I told you that you will need the password 🙂 ). Remember to put the password between apostrophies (‘ and ‘ ).
- Now scroll down and look for “Authentication Unique Keys and Salts”. You will see this: define(‘AUTH_KEY’,
- Delete it and replace it with a new set of keys. You can generate the keys by clicking here. Copy everything after generating and replace the above with it.
- Click save from top right.
- You are almost done.
- Now go to yourdomain.com/wp-admin/install/php . Or if you had not moved the wordpress files to the root directory in the earlier steps, go to yourdomain.com/wordpress/wp-admin/install.php . Remember to replace “yourdomain” with your actual domain.
- You should now see a welcome page that says “Welcome to the famous five minute WordPress installation process!”
- Site Name
- Email address (login information will be sent to this email address)
- Select whether or not to have the search engines index the siteOn this page, fill in the fields for:
- Click install. WordPress will run the installation process and notify you when it is complete.
Congratulations!! You have installed wordpress for your website. And you have mastered the “how to install wordpress manually” course too! 😀
We will see how to get started with wordpress and start building your website in the next post. So stay tuned!!!
Subscribe to our blog to get the latest post updates sent to your email.
Hope this post was of some help to you.
Would love to see your comments in the discussion box below.