How to install WordPress on your Mac using Mamp Server

Before you make your website live on the server the best way is to install WordPress on the localhost (Mac OS). In this way, you have the opportunity to test and develop things for free. If you want to move the website to the live server then you have to buy hosting or domain.

If you want to install WordPress using Wamp then read this -> WordPress Installation using Wamp for Windows

If you want to install WordPress using Xampp then read this -> WordPress Installation using Xampp for Windows

WHAT IS MAMP?

Mamp stands for Macintosh Apache Mysql PHP

What is Apache?

Apache basically serves various functions like delivering the requested file when someone hits a URL in browser
It is open source and cross platform
It also handles multi processes
SSL, V3 and TLS suppport
.htaccess, http/ftp, URL rewriting, Bandwidth, IP Adresses are some of the major functions.

What is MYSQL?

MySql stands for My Structured Query Language.
It is responsible for Database operations.
For example:
There is a Student Database. They MySql can do following operations.
Create Tables,
Delete, update and modify Tables.
SQL queries, Triggers, Functions and Cascading are some of most common used in MYSQL

What is PHP?

PHP stands for ‘Hypertext Preprocessor”.
It is an open-source and high-level language. language. Php runs on the backend server therefore we can say it is a server-side language.
This language is used specifically for Website Development.
Many popular Frameworks like Laravel and CodeIgniter is built on PHP.
It is very easy to learn and popular CMS like WordPress is also based on PHP.

Let us start installing WordPress on localhost.

STEP 1:

Download following files for installation:

1- Download WordPress file from wordpress.org


After downloading, unzip it.

For Mac, you can download MAMP

This image has an empty alt attribute; its file name is 3-1024x314.png

STEP 2:

Installation
Run the Mamp downloaded file and begin the installation

Mamp Installer

Continue all the steps till finish.

STEP 3:

Now completing this installation you have to open the Mamp application.

For that go to Applications -> Mamp

Inside the folder, you will see Mamp icon. Click that to start the application.

STEP 4:

In this step we need to setup Mamp server to start ports.

For that you need to click preferences

Set the Apache port to 80 and MySQL port to 3306

STEP 5:

In this step, we need to create or set the root location.
Click Web Server Section.
By default the root location is ‘Applications/MAMP/htdocs/’


Now Click Ok button and then Click the start server

Step 6:

Now click on Open Start Page

Below page will open.

Step 7:

Create database and configure WordPress.

Click phpMyAdmin

by default username will be ‘root’ and password would be empty

create ‘my_wp’ database

In step 1 we downloaded and unzipped the WordPress file.
Copy that WordPress folder and paste it into your ‘Applications/MAMP/htdocs/’ folder

you can rename the folder to any name but in my case I have named it as ‘wordpress’

Now path to WordPress website folder is: ‘Applications/MAMP/htdocs/wordpress’

Type ‘http://localhost/wordpress’ in a new browser tab.

NOTE: If you re-named the WordPress folder to something else, then use that name here

you will now see the below screen in browser

click continue and then fill Database Name, Username, password and remain Database Host and Table Prefix as it is.

type database name ‘my_wp‘ which we created in step 3.

type username as ‘root’ which is by default phpmyadmin’s username

leave password empty

and rest of the values like ‘localhost’ and ‘wp_’ will remain same.

Enter any title, username, password and email you want.
After completing the form press Install WordPress.

If you successfully install the WordPress, login prompt will be displayed.

now again type ‘localhost/wordpess’ on your browser address and then you will see your wordpress website

Congratulations!!

2 thoughts on “How to install WordPress on your Mac using Mamp Server”

  1. Pingback: How to install WordPress on your Windows using Xampp Server

  2. Pingback: How to install WordPress on your Windows using Wamp Server

Leave a Comment

Your email address will not be published.