

If you prefer video over text-based tutorial, then this is one for you: Install WordPress locally using MAMP - Youtube.
#MAMP WORDPRESS TUTORIAL HOW TO#
#MAMP WORDPRESS TUTORIAL MAC#
Installing WordPress Locally on Your Mac With MAMP.For your convenient, here are a few links to visit. There is the documentation and a lot of posts that shows you how to install WordPress locally with MAMP. In my case, I will install my WordPress at /Users/thoriq/Sites/wordpress.ĭocumentRoot "/Users/thoriq/Sites/wordpress"Īfterwards, Restart the server. In the nf file, add the following line to specify the directory where the hostnames, which we have just added, should refer to it. Open -a TextEdit /Applications/MAMP/conf/apache/nf

To do so, we need to edit the Apache HTTP Configuration, which is located in Applications/MAMP/conf/apache/nf.įor your convenient run the following command through the Terminal to open it in TextEdit. Next, we will direct the hostname to the directories where we will install the WordPress. Press Control + O and hit Enter to apply the changes within the hosts file. However, since we are going to use sub-domain for hosting the sites, we need to add one line to specify a sub-domain, like so.

Change the name, as you want it.įurthermore, If we host the sites using sub-directories adding the above line will be sufficient. This is only an example, you can name the hostname to be something like domain.loc or. In this, I name it as domain.local, as follows. Then, add a hostname along with the IP Address. So, let’s open the Terminal and run the following command to open the hosts file. Recommended Reading: Domain Names & Hostnames If it is not available within the file, the OS will then look-up the DNS. When we try accessing a hostname (or a domain name) through the browser, the Operating System (OS) will first look-up the hosts file for the corresponding name and its IP address. The hosts file is a plain text file to map the hostnames or domain names to their associated IP Address. Step 1.1: Adding a Hostnameįrist, we will add a hostname for local development in the hosts file. We will first setup Virtual Host so that we can host the website with a custom hostname or domain name, instead of using the default To do so, we will need to edit two files, the hosts file and the apache config file, nf. Otherwise, follow this instruction before proceeding this post. Make sure you have installed MAMP in your OSX. In this post, we will show you how to develop WordPress Multisite with MAMP, before bringing it online. So, if you are using WordPress 3.0 (and above), you are able to enable this feature and start creating multiple blogs. Then, the project has been merged since WordPress 3.0. Originally, this WordPress Multisite was developed separately from the main WordPress. Some reasons that makes WordPress that immensely popular are it is easy to use, it is in very active development, it has great community support, many plugins with great functionality, beautiful themes, and one particular feature that makes it a powerful CMS is the ability to create multiple websites with one WordPress installation. In addition, Google Trends shows the increasing popularity of WordPress cross over the other CMS, such as Joomla and Drupal. According to, WordPress is the most popular publishing platform with more than 8 million website using it as their Content Management System (CMS).
