Which is the best MAMP Port number?

Discussion in 'Mac Apps and Mac App Store' started by PicnicTutorials, Jan 21, 2014.

  1. PicnicTutorials macrumors 6502a

    PicnicTutorials

    Joined:
    Dec 29, 2013
    #1
    By default it is 8888. But in the virtual directory it seems to be 80. I changed the port number to 80 and now it works. But asks for my password each time. Any port number under 1024 needs a password apparently. Is there a magic port number? Or any old number will do.
     
  2. wgnoyes macrumors 6502

    Joined:
    Jul 20, 2011
    #2
    I put up with the inconvenience and put in my admin userid and pswd when starting up mamp. I don't want to have to key in localhost:nn/website/etc.
     
  3. PicnicTutorials thread starter macrumors 6502a

    PicnicTutorials

    Joined:
    Dec 29, 2013
    #3
    I don't believe the port changes the "key in". http://mysite should work regardless of port you chose ya?
     
  4. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #4
    As you've seen, that only works at port 80 which is the default for http. Any other port will require http://mysite:XXXX
     
  5. PicnicTutorials thread starter macrumors 6502a

    PicnicTutorials

    Joined:
    Dec 29, 2013
    #5
    Oh is that the case? I did not know that. I know 1 thing about ports now lol. Is there anyway around that - aka having to put the port number after?
     
  6. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #6
    No.
     
  7. PicnicTutorials thread starter macrumors 6502a

    PicnicTutorials

    Joined:
    Dec 29, 2013
    #7
    originally I was trying http://mysite:8888 but it was not working. So I clicked the default port button in the preferences and it went to 80 and then all was good. I'm guessing if you use the port after it has to match the port in the /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf???

    aka

    <VirtualHost *:80>
    DocumentRoot /Applications/MAMP/htdocs
    ServerName localhost
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot "/Users/username/Sites/mysite"
    ServerName mysite
    </VirtualHost>

    So in this case of 80 it would be http://mysite:80. But not needed cuz it's 80. Is that correct?
     
  8. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #8
    Correct.
     

Share This Page