This forum is no longer active. Please post your questions to our new community site

Forums MAMPStack

Mis-reported httpd port in ctl.sh

Subscribe to Mis-reported httpd port in ctl.sh 2 post(s), 2 voice(s)

 
Avatar kgingeri 5 post(s)

Hi,

I noticed that the ctl.sh has a hardcoded “… port 8080” in it.
This mislead me for a while until I figured out what was going on.

Could I suggest inserting line 11:

  • HTTPD_PORT=`awk ‘/^Listen/ {print $2}’ </Applications/MAMP/apache2/conf/httpd.conf`

to the top of the script and changing the line now at 78 to

  • echo “$0 $ARG: httpd started, port $HTTPD_PORT”

(“MAMP” in the path above being the proper install path – I believe install script set this)?

:v)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for posting it. We have to check your suggestion in all supported platforms: OS X, Windows, Linux and Solaris.

Forums MAMPStack