Two weeks ago: The First Steps to Building Your Website in WordPress

Last week: Installing WordPress on a Web Server

This week: Installing WordPress on a Local Server (MAMP)

Next week: Moving a Locally Installed WordPress (MAMP) on a Live Server

For testing purposes (such as testing plugins and new WordPress versions) building a website in a local environment can be a good idea. All you need to get started is to download and install MAMP (if you’re a Windows user check WAMP) on your computer. Stay tuned as next week I’m going to write a tutorial on moving locally installed WordPress website on a live server.

Installing WordPress Locally (MAMP)

1. Create a MySQL Database on the MAMP Homepage (http://localhost:8888/MAMP/) – in the phpMyAdmin area.

2.Create a new folder in …/MAMP/htdocs and name it after the database.

3. Install WordPress:

-Copy all the files and folders from the WP installation folder to the newly-created folder.

-EITHER: Rename wp-config-sample.php to wp-config.php and edit the information on the database. Enter ‘root’ both as your db username and password and ‘localhost’ as your MySQL hostname!

OR: In your Web Browser, go to http://localhost:8888/. Select the site and enter the details in the form (again, enter ‘root’ both as your db username and password and ‘localhost’ as your MySQL hostname)

2 Comments

  • Hey,

    How would you download an exisiting live wordpress install to modify a theme then upload to live server after changes have been made?

    Cheers,

    Tom

    • Hi, Tom! I guess I’d export a copy of my live wordpress install’s database and import the tables into your newly created database inside MAMP’s phpMyAdmin. Next, I’d copy all the files of your live install into your local installation folder. For other steps, just follow my tutorial on Moving Locally Installed WordPress Website on a Live Server. When you’re done editing your theme, simply repeat the above steps in reverse. Hope that helps in any way! Best,
      Uros

Leave a Reply