How to install WordPress on local in your PC

February 23, 2021

Want to install MAMP and WordPress on your local PC? It is the best way to develop your site and for testing purposes. MAMP lets your website run from your own PC. A local WordPress install allows you to keep your work private and you don’t have to worry about changes affecting your live site. So, you don’t need to go online to edit your projects or site.

  • Download and install MAMP on your PC.
  • Run MAMP on your PC.
  • Create a new database for your WordPress test site.
  • Download WordPress to your PC.
  • Move WordPress into MAMP’s htdocs folder.
  • Install WordPress locally on your PC.

By following the above steps, you can easily install MAMP and WordPress on your PC.

Step 1: Download and Install MAMP on your PC

The first step is to create a local hosting environment on your PC for the process of installing WordPress locally with the help of MAMP or XAMPP. We recommend MAMP as the best choice.

MAMP PRO comes with extra many features, allows you to create a separate hosting environment for each web project, and import existing WordPress sites from live servers. Once your design work is completed, you can also publish projects directly from MAMP PRO to your live server.

To install MAMP, navigate to the Download page on MAMP’s website and select the Free Download > Download MAMP and MAMP PRO (Windows) option.

Now simply follow the pop-up steps to install MAMP successfully.

This process will take some time, be patient!

Step 2: Run MAMP on your PC

Now on the MAMP app and click on the start servers button.

After Apache Server and MySQL Server have been activated, click the Open WebStart Page option. The local homepage of your new MAMP install will now open within your browser that MAMP has been successfully installed on your PC.

Scroll down and note down the MySQL connection details for further need while connecting WordPress to the localhost.

Step 3: Create a New Database for Your WordPress Test Site

The next step is to create a new database in which WordPress will store all the back-end data related to your sites, like posts, pages, options, settings, and menus. To create a new database go to the Tools > phpMyAdmin option in the top menu bar of your MAMP homepage.

In the phpMyAdmin application, click the Databases menu and find the Create database section on top of the page. Choose a name for your new database.

Your new database is now created.

After creating the database go to the privileges and select add user account by adding user name and the password. select hostname as a local from the dropdown. check all the global privileges and click on go to save the changes.

Step 4: Download WordPress to your PC.

Your next step is to download WordPress on your PC. Go to WordPress.org and click the Get WordPress and then click the Download WordPress button.

Once WordPress has downloaded to your Windows PC, you need to unzip the folder and extract the files.

Step 5: Move the WordPress folder to the MAMP htdocs.

Now, you need to move the WordPress folder to the htdocs folder of your MAMP install. Copy the WordPress folder from the unzipped file and navigate to MAMP > htdocs then paste the folder. Rename the folder with your project name.

Step 6: Install WordPress Locally on your PC.

This is the last step to install WordPress locally. Type the URL of your local and the name provided to the WordPress folder. If the nave hasn’t changed the name then type localhost/wordpress.

Now follow the instructions to set up WordPress. At first, select the language.

You need to fill about the new database that was created.

  • Database Name The name you used to set up the database for your site in phpMyAdmin.
  • Database Username and Password – Both the username and the password will be the root. Found on the MAMP installation page MySQL section.
  • Database Host – This is localhost. you can find it on the MAMP installation file.
  • Table Prefix – Leave this default wp_.

Now you are ready to install WordPress and enjoy the local server. Click on the Run the installation button to continue.

You need to provide some details for your projects like site title, Username, Password ( it is generated automatically please note down the password or copy the password and save it), and other details.
Then click on Install WordPress.

Now you can log in to your local servers WordPress by localhost/(the name given for the project i.e, the WordPress folder name). Then log in to your account.