

- #Mamp wordpress setup how to
- #Mamp wordpress setup password
- #Mamp wordpress setup download
- #Mamp wordpress setup free
Other than that you don’t need to edit anything, so close the file. So rename that file to wp-config.php and open it with a text editor. This file is called wp-config.php, however, that file doesn’t exist by default, instead there is wp-config-sample.php. To enable Wordpress to communicate MySQL, you must define MySQL’s information in Wordpress file. You don’t need Terminal anymore after editing the hosts file, so close it.
#Mamp wordpress setup password
If you are not sharing your PC with somebody else, this is your user password, so type in the password and hit the enter. Opening Terminal, please execute the next command: sudo vi /etc/hostsĪfter executing sudo vi /etc/hosts, it asks for the super user’s password. Terminal is located in Application > Utility. You cannot access to this file using Finder, so we must use Terminal application. To be able to access to our website with a unique domain name, which is running on our virtual host, we have to edit one of OS X system file, hosts.

Here the path of /Applications/MAMP/htdocs/wp-example should match the path of folder we just placed in htdocs. ĭocumentRoot "/Applications/MAMP/htdocs/wp-example" Now open the file and at the bottom of the file add the line below. conf file will be loaded to the main configuration file.

Please do not make the extension of the back-up file. Before editing the file, it is safer to make a copy of it with the name such as in case that we will want to refer the original file in future. In addition to the nf, we also need to add some lines to nf, which is located in MAMP > conf > apache > extra folder, to create a virtual host for our Wordpress project.

After the modification, do not forget to save the file. You can easily find the line by using the Find feature of your text editor. LoadModule vhost_alias_module modules/mod_vhost_alias.so Open the file using your favorite text editor, modify the line as follows: # LoadModule vhost_alias_module modules/mod_vhost_alias.so nf is located in MAMP > conf > apache folder. In order to activate the Apache’s virtual hosting function, we need to modify nf, in which all configuration for Apache is written. The new database will show up in the list of the sidebar and if you can check that, you can close the phpMyAdmin. Keeping collation in the select input, type the name wp_example and click Create button. On the admin page, click New at the sidebar, and then let us create database called wp_example. If this is the first type you access to phpMyAdmin, it redirects to the login page. As running MAMP, open the browser and type localhost/phpMyAdmin/ in URL field.
#Mamp wordpress setup free
Wordpress uses MySQL, the most used free open-source relational database, for the place where all data is stored. After the download, please unzip the file, copy it to htdocs folder, which is located under the MAMP application folder, and rename it to wp-example for convenience. However, since most of rental server services only support PHP version 5, please choose 5.6.xx and click OK. Perhaps by the time you read this article MAMP may support PHP version 7. Click the setting and set up as follows:Īccording to Wordpress official website, current Wordpress, version 4.5, requires PHP version 5.6 or greater. I don’t know what PHP version is supported by the latest MAMP by default, so it is better to check if MAMP is set up correctly to host Wordpress. Every time you start MAMP, it requires you to enter your OS X user’s password. Setup MAMPĪfter installation, start MAMP by clicking MAMP.app. Maybe the Installation Wizard will handle this for you. Unlike usual app, MAMP is to be in Application folder with all its files contained in the folder.
#Mamp wordpress setup download
If you haven’t installed MAMP yet, just go to its official website and download it. This time I use wp.v as an example of domain name. the domain name, enabling the support of Apaches’s virtual host.
#Mamp wordpress setup how to
In this article, I’m going to walk you through how to set up the local Wordpress website on OS X using MAMP with the unique hostname, i.e. Although nowadays there are several ways to host the Wordpress website locally, perhaps MAMP might be best fit for web designers or those who doesn’t have distinct knowledge in coding to do so, since it doesn’t require any technological skill or knowledge, and most of processes can be done by GUI.
