• Just shoot me for asking because it will be asked 2500 times already on this forum but i can’t get it working.
    Most of the topics are talking about sub-domains or directory’s but i’m not even near that step.

    It’s very strange because a while ago i had MAMP installed on my machine (Mac OSX) and everything worked out very well i followed a tutorial about how to install WP Multi. and everything went very well, but today i would like to do the same tutorial and i get a problem facing the NETWORK page in the admin.

    Her is what i did.

    First time i had only one WP installation on my Mac so the basic users would place this WP installation in the <srong>Applications > MAMP > HTDOCS > and bang everything working.
    But this time i re-installed MAMP and made a root for more than one WP installation so i made a folder called sites in the USERS root, next to the folders called downloads and documents and the rest of the gang.

    Everything is working so far i have 5 different WP installations on my Mac which i can test locally before i place something online.
    But for this new project i need a WP Multi installation and now i have troubles with access the port 8888?

    Like i said i did the same tutorial as i did first but this time when i logged-on after adding the define mulit wp true code to my config.php it gives me the almost famous line:
    Error: You cannot install a network of sites with your server address
    and
    You cannot use port numbers such as :8888.

    Can somebody please give ma a link to a page that can really solve this problem!!

    My thanks will be BIG!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You need to make a fake domain in your hosts file and associate that with whatever folder you have wp installed in.

    Then you set up the network at that address.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter Jaja..

    (@jaja-1)

    Thank you for the push in the right direction..

    But for all Mac users having trouble how to make a ‘fake domein’ or better said: DELETE the 8888 port number in localhost:8888.

    Here it goes.
    First you don’t need MAMP Pro! just MAMP.

    After you have installed MAMP in your Applications folder you first hit the black MAMP widget icon this will ask you if you wanna install the MAMP server Widget on your Dashboard. Not needed but i think it can be very helpful for starting the servers when you have restarted your Mac.

    Now the real setting-install will get going.
    (1) Launch the MAMP.app by clicking it twice. (not to difficult)
    (2) Go to the settings or so called preference page.
    (3) Hit the menu-TAB called Ports and click on the ‘Set to default Apach and MySQL ports’ button. This will change Apache Port to: 80 and MySQL Port to: 3306
    (4) Hit the menu-TAB Apache and push the select button, now pick a place where you would like to store all your WordPress sites. For me i made a folder called offline in this directory. /Users/iMac/offline <– iMac is your computer name, i called my computer just iMac, for everybody else this could be your personal name or something like that.. It’s the name next to the house icon in the Finder. ??
    (5) after you have clicked OK you will see you have to enter your Password of MAC OSX every time you start or stop the server. This is because we are using a Port 80. (it’s not really important)

    (6) Now MAMP is closed – but make sure the servers are running you can check this at your Dashboard, looking at your Widget you have installed before. If it’s not running make sure it is.. (Start Servers)

    (7) Hit CMD first than Spacebar while holding CMD to launch SpotLight at the right-top corner of your screen and type: Terminal and hit Enter-/Return. This will launch the Terminal.app and a freaky ICT window pops-up.. I bet this is a bit scary for a regular Mac user but it’s not difficult at all.

    (8) copy-/past the following text-/code:

    sudo pico /etc/hosts

    And hit Enter-/Return, now on the next line it will ask to type your Password just do it and hit Enter-/Return again.

    On a regular Mac you should see something like this (i did):
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost

    Because your mouse-/cursor will not work in the Terminal you have to work from your keyboard. Just move down with the down-arrow-key to the last line of code and type this code:

    127.0.0.1       localhost.sites

    It should look something like this:

    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost
    127.0.0.1 localhost.sites

    After you have done this we need to save those changes so we also have to use the keyboard for that again.
    Hit: CONTROL + O to Save and hit Enter-/Return after that to make 100% sure you saved it.

    After that hit CONTROL + X to close this window, now you see you are back at the white starting Terminal page.
    Now you can close the Terminal.app by pushing CMD + Q

    This is it..
    The only thing you have to do now is go to that new created folder (step 4) called sites and make a new folder inside it called wordpress or whatever you website title will be.

    The domain to visit your site locally will now be.
    https://localhost.sites/ <– this will just be in the sites folder.
    https://localhost.sites/wordpress/ <– this will visit your new website.
    https://localhost.sites/apple-blog/ <– could be a folder to your Apple-blog

    I think you know what to do now to make a single WordPress site go Multi..
    https://codex.www.ads-software.com/Create_A_Network

    Have fun with it, i hope this can help somebody.

    Ps; Just to make a note..
    I think, but i’m not 100% sure you can NOT make Sub-domain on a local machine with localhost.sites/wordpress/ as your WordPress site.
    You have to pick Sub-directories — like localhost.sites/wordpress/site1 and localhost.sites/wordpress/site2

    I think, but i’m not 100% sure you can NOT make Sub-domain on a local machine with localhost.sites/wordpress/ as your WordPress site.

    That’s correct. You can’t do wildcard subdomains locally anyway.

    I followed the instructions, and then I thought it worked because I saw the homepage that I was working on. Then the links did not work (they went to port 8888 not found). I tried changing things around to see what happened. It seems that the Apache new folder location was not working (it is named users/mycomputer/applications/wp-local/wordpress) the wordpress folder being copied from the old location in htdocs/wordpress, then I thought it was that the /esc/host file was not working.

    Figureing things out at the same settings in the post i realized localhost.sites/wordpress was just pointing to the same location in the MAAP/htdocs/ location even if I changed the APACHE folder locaton and updated the /esc/host file and changed the ports to default.

    The only difference I see in the /esc/host file is that there are a bunch of other 127.0.01. sites with just above them all a line that says “# Block Adobe Activation”, and my 127.0.0.1 localhost.site is above that #… The rest looks the same as in the post above.

    So.. I figure bout both things are not working! I did also try restaring the MAMP server that did not help either.

    When I login to wp it still goes to port 8888 (ports are changed to 80 and 3360 for mySQL. The login is not working of course because the ports in APACHE are not set at 8888. IS there anything I need to update in the wordpress files to make the new port work?

    Running on a mac, laptop 10.6.8 version. 1year old.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WordPress doesn’t like port 8888, however GuroWiech you should make a separate topic for this.

    i did what Jaja say and keeps happening to me what GuroWiech say it happend to him, the exact same thing. something is wrong on this instructions or we are missing something. for the record i have MAMP Pro. this issue its driving me crazy and now not even 1 of all the localhost wp sites are not running :-\

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You don’t need MAMP Prod.

    1) Change the PORT of http to 80

    2) If you want to ‘fake map’, you edit your hosts file: sudo vi /private/etc/hosts from Terminal

    Add in lines like this:

    127.0.0.1       ipstenu.loc
    127.0.0.1       andrea.loc

    Off you go. If you still have issues, there’s a local host forum ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘MAMP WP Multi problem topic 300’ is closed to new replies.