Title: MAMP Multisite Problem
Last modified: August 22, 2016

---

# MAMP Multisite Problem

 *  [kryten68](https://wordpress.org/support/users/kryten68/)
 * (@kryten68)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/)
 * Hoping someone might be able to help me with a slight workflow problem I am experiencing
   with multiple WP sites in MAMP.
 * I’m a bit of a newbie with WP and MAMP, so please be gentle!
 * I downloaded and installed MAMP.
 * In ht/docs I created a folder named “WP” and into that I placed a freshly unzipped
   WordPress. I then pointed MAMPs Apache at that folder
    (MAMP/htdocs/WP).
 * Next I created a database called ‘wordpress’ in PhpMyAdmin.
 * Then I modified the wp-config-sample file and when I pointed my browser
    to localhost
   I was able to complete the setup and restore one of my live websites into that
   local instance. Superb!
 * So, building on the instructions provided by other forum posts and
    advice floating
   aroung the internet, here is what I did next…
 * I created another folder in htdocs called “WP2” and into that I placed
    another
   unzipped WP. I then went into PhpMyAdmin and created another database, I called
   this one wordpress2. Naturally when I opened the browser at ‘localhost’ I could
   not see my new WP so I changed the MAMP config to point to MAMP/htdocs/WP2 and
   there it was. I completed the configuration and went on to set up a new site 
   in WP2. So far so good.
 * Now it all starts to get messy!
 * I wanted to work with the “WP” site; the first one. So I changed the
    Apache 
   config to point to the WP folder and now the site looks all messed up! I can 
   see the homepage (but its like all the CSS is missing) and any and all links 
   result in a 500 server error. Yuk!
 * So I change the Apache config to htdocs/WP and its okay again – but now
    the 
   same thing happens when I visit WP2.
 * I guess what I’m really asking is: Is this normal? How can I set up MAMP and 
   the folder/db structures so that I can just open localhost and click on the folder(
   WP or WP2 ) that i want to work with? Is that even possible?
 * Clearly the problem is with the URL structure getting messed up. Is this do-able?
   Do I need MAMP Pro? If so, how would that help?
 * Thanks,
    Stuart

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [2ninerniner2](https://wordpress.org/support/users/2ninerniner2/)
 * (@2ninerniner2)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/#post-5222734)
 * One does not generally change the Apache document root. Set it back to the default;
   htdocs.
 * You then access your sites with:
 * `http://localhost:8888/wp`
 * `http://localhost:8888/wp2`
 * … and so on.
 *  Thread Starter [kryten68](https://wordpress.org/support/users/kryten68/)
 * (@kryten68)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/#post-5222738)
 * Thanks 2ninerniner2.
 * I’ll try that when I get home.
 * Cheers,
    Stuart
 *  Thread Starter [kryten68](https://wordpress.org/support/users/kryten68/)
 * (@kryten68)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/#post-5222826)
 * Hi,
 * So I reset the Apache document root to the default of htdocs.
 * Now, using the syntax you mention I can connect to and manage WP but when I try
   to use the WP2 site its all messed up. I get what looks like home page sans any
   CSS and any and all links take me to a 500 server error.
 * Starting to think that I need MAMP PRO and virtual hosts…
 * Any thoughts?
    Stuart
 *  [2ninerniner2](https://wordpress.org/support/users/2ninerniner2/)
 * (@2ninerniner2)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/#post-5222833)
 * I forgot that your had both operational at some point 🙂
 * For the WP2 site, you will have to change the siteurl and home fields in the 
   wp_options table in the database.
 * Open phpMyAdmin, expand the WP2 db in the left side bar so all the tables are
   shown; select wp_options and look for the above 2 fields in the main area of 
   the Browse tab.
 * If the WP2 site is in a folder named wp2, then values for the urls will be:
 * `http://localhost:8888/wp2`
 * This will let you log into the site. Once in, install and run this plugin to 
   update the other URLs:
 * [http://wordpress.org/plugins/velvet-blues-update-urls/](http://wordpress.org/plugins/velvet-blues-update-urls/)
 * – select all options EXCEPT the last one (GUID)
 * Then go to Settings > Permalinks and just re-save.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘MAMP Multisite Problem’ is closed to new replies.

## Tags

 * [MAMP](https://wordpress.org/support/topic-tag/mamp/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [2ninerniner2](https://wordpress.org/support/users/2ninerniner2/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/mamp-multisite-problem/#post-5222833)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
