One of the things I struggled with the most when I first started coding was thinking out my setup. I was curious how programmers got their code onto the internet: where do they write it, and how do they make the transition from developing a site to launching it to live? If you want to modify a web that is already online then, how do they do it? This article is based on how to install WordPress on Mac using MAMP and streamline your work environment.
MAMP provides you an offline environment based on your local computer database. After complete installation, you will be able to update your existing site or change the layout of your site. Learn new development features or want to be a developer and build your site without any stipend. MAMP also has the option of installing MAMP Pro which is a paid version with advanced features and specifications for your intended needs.
This guide was created for beginners to show how to get the offline environment for testing and developing a new website. This will help you understand the entire process step-by-step.
Note:- If you are. a Windows user, follow our tutorial on how to install WordPress on Windows.
How to Install WordPress on Mac using MAMP
The first step is to go to the MAMP website and download the software. After the download is complete, open the downloaded file and drag the picture file contained within to your Applications folder. Then directly follow the on-screen instructions.
Note: MAMP also downloads and configure MAMP Pro (the premium version), so ensure you choose the version.
After successful configuration, launch the MAMP from the Applications » MAMP on your Mac.
Before you initiate, we recommend that you configure a few settings to improve your MAMP experience. Navigate to the Preferences menu and next switch to the Ports tab.
Set the Apache to port 80 and then click on the OK button.
If you appropriately set the attribute of the database will help you to access the localhost website from http://localhost instead of http://localhost:8888. It also means that you have to enter the computer’s admin password each time you start MAMP servers.
Next, you have to set the document core folder its stores the data of your website. MAMP uses the /Applications/MAMP/htdocs/ folder by default, but you can switch it to a more convenient place.
Click on the Web Server tab in the preferences dialogue box and then choose a folder where you want to save the website data. Name the folder whatever you want, and for this article, we call it a WordPress site.
To save the changes, click on OK.
Installing WordPress on Mac
Once you have completed the MAMP setup, the next step is to install WordPress on your Mac. For the installation, visit the WordPress website and download the software for Mac. You have to unzip the file after completely download it.
After that, copy the inside WP folder and paste it into your MAMP document core folder. If you want to change the name, right-click on the folder and rename it.
Now you require a database to store the data. You have to build the database before the installation of WordPress. Do not worry about it is not as hard as it appears.
In the MAMP application window, click on the Open Web Start Page button. A dialog box appears, then select Tools » phpMyAdmin from the top menu bar.
phpMyAdmin is a web-based database management tool for MySQL. To create a new database in phpMyAdmin, go to Databases and select New Database.
You can call this database whatever you want, but make a note of it because you will require it in the next phase. We will name it table_db in this instance.
It is time to install WordPress now that you have set up the database.
In a new browser tab, go to http://localhost/mysite. Use the name you gave the WordPress folder if you renamed it to something different.
The WordPress installation procedure will now prompt you to choose a language as the first step.
After selecting the language in which you want to install WordPress, click the Continue button.
Then the complete information WordPress will display regarding the installation process and click on the Let’s Go button to continue.
In the next phase, enter your WordPress database information. From the previous step, you already know the database name. You must use the core as both a username and a password. You can use localhost as the database host.
Click on the Submit button once you are done with the information.
WordPress will now establish a connection to your database and generate a configuration file for you. It will then display a successful message. To continue, click on the Run the installation button.
WordPress will ask you to enter your website details, a username and password, and an email address on the next screen. Fill out the form and then click the Install WordPress button to finish.
When the installation is complete, WordPress will display a success message.
You can now access the WordPress site that has been installed locally on your Mac device.
Trying WordPress on Mac
The objective of WordPress localhost is to learn new features and develop a website on your computer. Convert your thought into reality and apply a different template for a better experience of the website. We recommend you try these things for beginners:
- Discover the best WordPress themes and putting them to the test.
- Locally test essential WordPress plugins.
- Create your plugins and themes to learn WordPress development.
If you’re using Windows, download and install WAMP. If you have any questions regarding how to install WordPress on Mac using MAMP kindly comment below.