How to install WordPress?

0
258
Installing WordPress

Last updated - May 10, 2018

If you have ever been in a website development process, or has a website up and running, you probably have heard about WordPress. It is also the most favored platform because of its flexibility and easy usage. It has seen incredible usage growth in website development. Over the years, it has grown from helping to develop blogs & websites to content management system(CMS), eCommerce websites, membership sites to name a few.

WordPress comes in two variations; WordPress.org and WordPress.com. While the former is a free, open-source downloadable software that works in a self-hosted environment, while being installed and administered on your computer, the latter is a blogging hosting platform that works as a wizard and does not need installation on your computer.

In this article, I’ll explain how to install WordPress software on your computer. To use WordPress, we need a web host server. Basically, there are two ways you can install WordPress; On your third-party web host server or using localhost on your computer.

Quick access:

Let’s understand each process.

Installing WordPress on Web host server

There are two methods for installing WordPress on your hosting server:

  1. Using FTP Client software.
  2. Using cPanel of the respective hosting server.

1. Using FTP Client software

You can use FTP Client software like FileZilla or CyberDuck for uploading your WordPress folder on your website.

Let’s say you are using FileZilla software. Here’s what you need to do:

  • Download FileZilla.
  • Configure the setup to connect your hosting server.
  • Download WordPress software from the official website.
  • Unzip the downloaded WordPress file and upload the folder to your site.
  • Create a database on your MySQL database.
  • Enter your website’s URL in the URL bar of the browser and follow the installation procedure (the WordPress installation is discussed later in this article).

Tip: The FileZilla configuration process is out of the scope of this article. You can refer this article for step-by-step tutorial of the server setup and the website folder uploading process.

2. Using cPanel of the respective hosting server

Many popular hosting service providers have created a cPanel(or wizard) to install WordPress and other website building tools. You can check your hosting server dashboard or contact them for the installation process.

Following are links for installing WordPress on some of the popular hosting services:

How to install WordPress on Localhost?

Using localhost is a great way to learn, develop or test your website before going live. For this, you need to install local server software like XAMPP, WAMP or MAMP. These tools are available for free and there is no overhead of finding unique domain names or paying any price. They are hassle-free, and most importantly, work exactly the same way as a web host.

Here I’ll explain the step-by-step process of installing WordPress locally for both Windows and Mac computer.

How to install WordPress on XAMPP for Windows?

Following are the steps to install XAMPP and WordPress on Windows:

1. Downloading and installing XAMPP

  • Download XAMPP from its official website. Click on the Windows version as shown in the screenshot below.
Installing WordPress | Downloading XAMPP for Windows
Downloading XAMPP for Windows
  • Once the file is downloaded, click on it to begin the installation. The installation process is pretty straight-forward, with choosing components, directory location and so on. If you are a beginner, you do not need to worry about each and every setting. You can keep the settings in the same way and proceed further by clicking on Next button.

A sample screenshot of the installation setup is shown below.

Installing WordPress | Installing XAMPP
Installing XAMPP

Starting Apache and MySQL services: After the installation is completed, launch the XAMPP Control Panel. The control panel consists of various services and settings, but for our demonstration, we need to enable Apache(for hosting server) and MySQL(for the database).

Click on Start button of both the services as shown in the below screenshot.

Installing WordPress | Starting Apache & MySQL in XAMPP
Starting Apache & MySQL in XAMPP

2. Creating a database

  • Click on Admin option of MySQL service to open the phpMyAdmin interface, as shown in the screenshot below.
Installing WordPress | Opening phpMyAdmin
Opening phpMyAdmin
  • The phpMyAdmin interface is used to create and maintain the database for all your websites. To create a new database, click on Database tab, enter a database name(say db_wordpress) and click Create as shown in the below screenshot.
Installing WordPress | Creating database
Creating database

3. Downloading WordPress

  • Download WordPress from its official website. Once the file is downloaded, unzip it and upload it to the htdocs folder under your XAMPP installation. This process is equivalent to uploading your website to your web host.

For example, if you have installed XAMPP in C:/ drive, upload the WordPress folder in C:/xampp/htdocs as shown in the screenshot below.

Installing WordPress | WordPress folder uploaded to htdocs
WordPress folder uploaded to htdocs
  • Additionally, you can choose to rename the folder to your desired website name. But for our demonstration, I have chosen to keep wordpress.

4. Connecting WordPress and XAMPP

  • Open your web browser and enter localhost/wordpress(considering your website folder name is wordpress) in the URL to run WordPress.
  • In the very first page, you are prompted to select the desired language, as shown in the below screenshot.
Installing WordPress on Windows | Selecting desired language
Selecting the desired language in WordPress setup

Select your desired language and click Continue.

  • Next, you are taken to a page to enter information like database name, database username and its password, database host and database table prefix(every table created in the given database will start from the specified prefix) for creating the wp-config.php file. This file is used for connecting your WordPress site and XAMPP.

Following is a sample screenshot of the screen.

Installing WordPress on Windows | Required database information
Required database information

Click Let’s Go to proceed further.

  • In the next screen, enter the required information in the given text fields and click Submit.

For demonstration purposes, I have entered database name as db_wordpress(which I created in the database in step 2), username and password as root, and have chosen to keep the hostname and table prefix the same as localhost and wp_ respectively.

Tip: Since we’ll be working only on our computer, it is not necessary for a strong authentication process. Hence you can choose a simple username and password(as I did above).
But when using a web host, I suggest you choose a proper username and a strong password.

The below screenshot shows the sample settings.

Installing WordPress on Windows | Database information submitted
Database information submitted

In case you run into an error establishing a database connection, you need to enter this information manually. To do this, open wp-config-sample.php file. This file is located in C:\xampp\htdocs\wordpress\wp-config-sample.php (navigate to your respective WordPress install location).

Enter the database name, database username & password in the section of the code as shown in the screenshot.

Installing WordPress on Windows | Manual database configuration
Manual database configuration

Save the file as wp-config.php instead of wp-config-sample.php and come back to the setup in the browser.

  • In the following screen, click Run the Install.

5. Installing WordPress

  • Finally, you reach the famous WordPress Five Minute Installation process. In this screen, enter your desired site title, wordpress username & password, email address and click Install WordPress.

A screenshot with sample settings is shown below.

Installing WordPress on Windows | WordPress Quick Setup Wizard
WordPress Quick Setup Wizard

Tip: The user credentials that you enter here will be used for logging into your WordPress website every time. Hence choose proper credentials for local as well as for web host.

  • Once WordPress is installed, you’ll end up on the login page. Enter your WordPress username and password to log in, as shown in the below screenshot.
Installing WordPress on Windows | WordPress login page
WordPress login page
  • Once the login is successful, you’ll reach the WordPress dashboard. This indicates you have successfully installed and configured WordPress.
Installing WordPress on Windows | WordPress dashboard
WordPress dashboard

That’s it! You are now ready to get started on your WordPress website.

You can also watch a quick video tutorial for this process.

How to install WordPress on MAMP for Mac?

Following are the steps to install MAMP and WordPress on Mac:

1. Downloading and installing MAMP

  • Go to the MAMP official site. Click on the Download button of the free version, as shown in the screenshot below.
Installing WordPress | Selecting MAMP version
Selecting MAMP version
  • Next, choose macOS version and click Download, as shown in the below screenshot.
Installing WordPress | Downloading MAMP
Downloading MAMP
  • Once the download is complete, click on the downloaded file to run the installation.
Installing WordPress | Installing MAMP
Installing MAMP

Click Continue to proceed.

  • You may be prompted to enter your user credentials for installing the software. Enter your user credential and click on Install Software button as shown in the screenshot below.
Installing WordPress | Entering user credentials
Entering user credentials
  • Walk-through the setup for completing the installation.
Installing WordPress | MAMP installation complete
MAMP installation complete

Starting Apache and MySQL services: You can find the MAMP folder in the Applications folder, as shown in the screenshot below.

Installing WordPress | MAMP folder in Mac
MAMP folder in Mac

Open the MAMP file and click on Start Servers icon. This will start Apache and MySQL server, which will be indicated with the green color signal on the Start Servers icon and for each service on the top right corner.

Installing WordPress | Starting Apache & MySQL service in MAMP
Starting Apache & MySQL service in MAMP

 

 2. Creating a database

  • On the same screen, click on Open WebStart page to open MAMP as a localhost page.
  • Next, click on phpMyAdmin option in the MySQL section, as shown in the below screenshot.
Installing WordPress | phpMyAdmin option in MAMP
phpMyAdmin option in MAMP
  • The phpMyAdmin page is where you can create a database for your website. Similar to the steps I explained for XAMPP in the earlier section of this article, enter a database name and click on Create button.
Installing WordPress | Creating database
Creating database
  • In addition to this, you can choose to enter your desired username and password for the database or skip this step to enter the credentials later while setting up WordPress.

Following screenshot shows a sample screen to enter user credentials for the database.

Installing WordPress | Database user credentials
Database user credentials

3. Downloading WordPress

Download WordPress from its official website. Once the file is downloaded, unzip it. You can rename the unzipped folder to your desired website name(say MyDemoSite). Copy the renamed website folder and paste it into the htdocs folder, by navigating to Macintosh HD > Applications > MAMP > htdocs.

4. Connecting WordPress and MAMP

  • Open your web browser and enter the address localhost:8888/MyDemoSite. Replace MyDemoSite with your website name.
  • The first screen shows the language settings. Select your desired language and click Continue.
Installing WordPress on Mac | Selecting the desired language
Selecting the desired language in WordPress setup
  • If you have not entered user credentials in the database in step 2, you can enter database information like database name(say MySite) and database username & password(say root). You can keep the default values for database host and table prefix as localhost and wp_.
Installing WordPress on Mac | Database information submitted
Database information submitted

Click Submit to proceed further.

  • Click on Run the Installation button to start the installation process.
Installing WordPress on Mac | Run the installation
Run the installation

5. Installing WordPress

  • At last, you are taken to the WordPress installation page. In this page, you are required to enter the suitable site title, WordPress username & password(this credentials will be used to login to your site every time), email address and click Install WordPress.
Installing WordPress on Mac | WordPress Quick Setup Wizard
WordPress Quick Setup Wizard
  • Next, follow through to the WordPress login page, where you need to enter your WordPress username and password(entered in the previous point) to login to your WordPress dashboard.
Installing WordPress on Mac | WordPress login page
WordPress login page

It’s time to roll!

In this way, you can install WordPress on your computer.

Now that you have your WordPress site ready, get started with installing WooCommerce.


Related articles: