How to Install WordPress on Your Mac

Creating a website for the first time is often confusing because many options are available and we do not know where to start. WordPress, one example of tools to create a website, is a common framework used by bloggers. Personally, I would prefer WordPress than any other tools due to the large community of users, many lessons available, and mostly because I have seen many web designers customize the templates for their awesome blogs.

Before continuing to the steps, please be aware that this tutorial will explain about the local installation on the Mac. To have your website go live on the internet, that is one step further and will not be described on this post now (maybe later).

 

1. Install MAMP and WordPress

Get MAMP, you can download the free version, from http://www.mamp.info/en/ and install it under Application folder. MAMP’s size is about 200-300 MB (I don’t remember the exact size) so if your internet is not so fast you can download the WordPress while waiting. Get the zip file from https://wordpress.org/. When you finished downloading MAMP, go install the package.

Screen Shot 2014-12-20 at 9.11.57 PM

When you finished installing MAMP, go to Applications/MAMP/htdocs and unzip WordPress file there. You can rename the extracted WordPress folder to “myblog”, for example.

Screen Shot 2014-12-20 at 9.25.59 PM

 

Then open your new-installed MAMP and start the server, after that you can see the MAMP’s WebStart page is opened.

 

2. Change root password for MySQL

This is an important step so that your website will not easily get hacked. Go to Applications/Utilities and open your Terminal. Be aware on the location where you are now on the terminal, it is supposed to be a location where you have an Application folder in it (and the Application folder would have the MAMP folder). Change the password by writing this line:

/Applications/MAMP/Library/bin/mysqladmin -u root -p password xxxxxx

The xxxxxx is the password that you want to have. After writing above line, you will be asked for the current password, which by default is root.

 

3. Change root password for phpMyAdmin

Now that your MySQL password has changed, go to Applications/MAMP/bin/phpMyAdmin/ and open the config.inc.php. You can use a text editor like TextEdit (Applications/Utilities/TextEdit) or maybe Sublime Text, I use it to edit the code (sorry I haven’t registered the Sublime yet but I will). Find this line:

$cfg['Servers'][$i]['password'] = 'root';

Change the root to a new password that you have set on step 2 (on the picture below it is written with xxxxxx). You need to do this step so that you can access your MySQL database through MAMP’s phpMyAdmin.

Screen Shot 2014-12-20 at 9.47.12 PM

 

4. Create Database

Now go to phpMyAdmin through the MAMP’s WebStart page, go to menu Tools, click on phpMyAdmin. After phpMyAdmin is opened, click on tab Databases. Write your database name, leave the type to Collation, and click Create.

Screen Shot 2014-12-15 at 12.44.22 AM

 

5. Run WordPress Installer

Now the last step, open the WordPress installer on your browser, go to localhost:8888/myblog/wp-admin/install.php. Please notice that “myblog” path on previous link depends on what you name your folder on step one. And the “localhost:8888″ is the default MAMP path if you didn’t change any settings before. Follow the steps directed by that “Famous 5-minute install” of WordPress and voila, your website is successfully installed on your Mac.

Screen Shot 2014-12-20 at 9.44.25 PM

 

So now you are ready to play around your WordPress; create a template, customize the appearance, and write something. Ask me if you’re facing a trouble doing the installations, or correct me if you have done the installation in another way. It seems complicated but actually it is not. Good luck!

2 Responses

  1. Ferdi Saptanera
    Ferdi Saptanera March 22, 2015 at 1:28 am | | Reply
    1

    Van, do you actually do your development via MAMP?

Leave a Reply

css.php