How To Install WordPress Locally on MAC using MAMP
Installing WordPress on a computer allows to try out WordPress before starting a blog. Here we are going to discuss how to install WordPress locally on Mac using MAMP.
How to install MAMP on MAC
The first thing you need to do is visit the MAMP website and download MAMP. Once the download is finished, you will need to open the downloaded file and drag the image file inside it to your Applications folder. Next, simply follow the on-screen instructions.
After the installation, launch MAMP from the Applications » MAMP on your computer.
Before you get started, configure few settings to make MAMP experience better. You can do this by launching the Preferences menu and then switch to the ports tab.
Enter port 80 for Apache and then click on the OK button.
Setting Apache to use port 80 will allow you to access your local websites from http://localhost instead of http://localhost:8888. This also means that each time you start MAMP servers, you have to provide the admin password of your computer.
The next step is to set the document root folder. This will be the folder where you have to create and store your websites. By default, MAMP uses /Applications /MAMP/htdocs/ folder, but you can change that to a more accessible location.
In the preferences dialog box, click on Web Server tab and then select the folder where you want to store your websites. Ideally, you should store each of your website in a new folder inside the Documents folder.
You can name this folder anything you want. For example, htdocs, mywebsites, wpdev, etc.
Click on OK to save changes.
Installing WordPress on MAC
After the MAMP set up let’s install WordPress on Mac computer.
You need to visit the WordPress.org website to download a copy of WordPress. After downloading the file, you need to unzip it.
Copy the WordPress folder inside and paste it into your MAMP document root folder. You can rename this folder to anything you want (example: mysite, wpbeginner, etc).
WordPress needs a database to store all website data. Hence create a database before installing WordPress.
Click on the Open Web Start Page button in MAMP application window. A new browser window will open where you need to click on Tools » phpMyAdmin from the top menu bar.
phpMyAdmin is a web-based application used to manage MySQL databases. Here click on Databases and then create a new database.
You can name this database anything you want. Note down the name because you need that name in the next step.
After creating the database, now install WordPress.
Go to http://localhost/mysite in a new browser tab. If you re-named the WordPress folder to something else, then use that name here.
Now the WordPress installation wizard asks to select a language.
Select the language that you want to install WordPress and then click on the continue button.
On the next screen, WordPress will tell you about the information you will need to complete the installation. Click on the ‘Let’s go’ button to move forward.
Next, you will be asked to enter your WordPress database information. You already know the database name from the step earlier. For username and password, you need to use root. For the database host, you need to use localhost.
Once you are done, click on the submit button to continue.
WordPress will now connect to your database and create a configuration file for you. After this, it will show you a success message. Click on ‘Run the installation’ button to proceed.
On the next screen, WordPress will ask you to provide your website information, choose a username and password, and enter an email address. Fill in the form and then click on Install WordPress button.
WordPress will now run the installation, and you’ll see a success message once it’s done.
You can now log in to the WordPress site installed locally on your Mac computer.
Trying WordPress locally on MAC
The purpose of a local install is to help you test out WordPress or develop a website on your computer. Here are a few things you would want to try.
- Finding perfect WordPress themes and giving them a try.
- Test essential WordPress plugins locally.
- Learn WordPress programming by creating your own plugins and themes.
Moving Your Local WordPress Install to Live Website
To make your website visible for others you have to move your WordPress to a live website.
To do that you need a domain name and web hosting account. A domain name is your website’s address on the internet, and web hosting is where your website files are stored.
Bluehost is best to use. They are one of the biggest hosting companies in the world and an officially recommended WordPress hosting partner.
They offer WPBeginner users discount on hosting and a free domain name. Basically, you can get started for $2.75 per month.
Once you have purchased hosting, refer our article on how to make a website to install WordPress.