
Do you want to install WordPress in your Mac device as localhost?
WordPress allows mac users to integrate localhost with WordPress. Localhost is generally preferred by Students, Learning WordPress and Developers, Testing softwares.
Technical Information About Localhost in Mac device.
For testing environment and developing purpose, Localhost is very popular among developers and learning beginners.
Localhost allows the admin to host a database on his/her computer device. It reads the user’s device as a server. If someone uses localhost with WordPress then the website will be visible to only that computer device.
Web hosting is a must if you want to publish your website on the internet, Localhost is only for testing and learning purposes.
- Developers use localhost for testing out plugins, themes, and functions of the website.
- beginners and learners can use it for learning purposes.
Core files of a localhost WordPress and web-hosted WordPress are the same. So there is no difference in the functions of websites.
You have to follow the 5 steps process as shown in guide.
For Mac devices, MAMP software allows integration of wordpress in localhost.
- MAMP = It stands for Mac OS X-Apache-MySQL-PHP
It is an open-source software.
Install Localhost For Mac Using MAPM
Step 1 – Download MAMP
visit the official website of MAMP, download the most stable version of software.
after download is complete, open the file and drag the image file inside it, to your application folder.

after the installation, go to your applications and launch MAMP from Applications » MAMP on your computer.
After successfully launching MAMP folder, Go to:
MAMP > Preferences > Ports
Make sure the Apace port is 80 and then click on the OK button.

Apace port 80 will shift your local websites from http://localhost:8888 to http://localhost . This means that each time you start MAMP servers, you will have to provide the admin password of your computer.
Step 2 – Document the Root Folder
By default /Applications/MAMP/htdocs/ location is used as a root folder for the website. which cam be changed also.
Go to: MAMP > Preferences > Web Server
Select the folder where you want to store all the websites. You should store all the different website into different folders.
Here “Documents” folder is used as root location. So all the websites should be listed as a folder inside documents folder.

Click on save to save the changes.
Step 3- Install WordPress on Mac
Visit the WordPress official website, click on the Get WordPress button from the top right side.
Get the latest version of WordPress.

The zip file of WordPress will be downloaded.
Unzip the folder and follow the next step.
Now cut-paste all the files inside WordPress folder into root folder of your MAMP software.
here root folder is “documents”.
You can rename the root document as per your choice.
Step 4- Create Database

Visit: localhost/MAMP
in your browser, You will see your MAMP software homepage.
Click on “PHPMYADMIN” tab under “TOOLS”
it will redirect you to phpmyadmin of your device.
phpMyAdmin is a web-based application which is used to manage MySQL databases.
In phpMyAdmin, you need to click on Databases and then create a new database.

here database is named as “test_db”
Remember: Database name should be constant on every tab. The database name is going to be used in the WordPress installation procedure.
After creating the Database, you are set to launch the WordPress installer.
Step 5- Run WordPress Installer in localhost
open a new tab in the browser and search for the database name with localhost.
search for localhost/mytest.
You will be redirected to the WordPress installation page.
after that, you have to follow the basic steps that WordPress requires.
- Select Language

Click on let’s go on the information notification.

give database name as decided “test_db”.
username as “root”. (Do not change this)
password as “root” (if you want to)
Host as localhost
Do not change the database prefix. it should be wp_. Database prefix is used to indicate whether it is going to be a single site or multisite.
Click on submit.

On the next screen, WordPress will ask you to provide your website information, choose a username and password, and enter an email address. Go ahead and fill in the form and then click on Install WordPress button.

WordPress will be installed on your computer Now.
to access the dashboard, Search for admin location in your browser.
Location: localhost/mytest/wp-admin
login with username and password to access the dashboard.
