Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
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.
 
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.
 

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.