I want to host a wordpress site locally on my MAMP server. This is the procedure I followed: 1.Installed the duplicator plugin on the site and created the site package. 2.Downloaded the installer and archieve file and installer.php file from package. 3.Created the database in phpmyadmin using the MAMP server. 4.Moved the archieve file and installer in a folder in MAMP/Applications/htdocs. 5.Tried opening localhost/foldername/installer.php.

After following all these steps getting the error and not able to run it locally. wordpress already installed at local host. Suggest the solution to this problem.

  • 1
    When you say "getting the error" which error would that be? – ssnobody Jun 12 '15 at 1:14
  • Its 404 not found error – Vishwanath Singh Jun 13 '15 at 4:18
  • 404 not found means its looking for DocumentRoot/foldername/installer.php and is unsable to find it. I would check that the DocumentRoot is pointing to the correct location. – ssnobody Jun 24 '15 at 19:19

You can copy a site to localhost in an alternative way without using any extra plugin.


1. Export the database using phpmyadmin interface and save that as a .sql file.

2. Extract wordpress.zip file downloaded from wordpress.org to MAMP/htdocs.

3. Copy wp-content folder and wp_config.php from old site and Paste it under new wordpress folder.(Replace the files)

4. Create a database in new host with same database name and import the .sql file.

5. Goto localhost:8888 in your browser. (Before this, you need to change document root to this wordpress folder by using preferences in MAMP) You will get your site.


If you find any old urls in your site, (Broken urls to media items) You can do a search and replace in database using the following sql queries. Do this one by one inside your wordpress database.

UPDATE wp_posts SET guid = replace(guid, 'http://old-site','http://new-site');

UPDATE wp_posts SET post_content = replace(post_content, 'http://old-site', 'new-site');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'old-site','new-site');
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.