Search

Settings > Server > Ports

MAMP PRO - Settings - Server - Ports

Server programs, when addressed over the network, must be assigned to a specific network port. This allows multiple server programs to run on a single server machine. Each service has a default port: The Apache web server typically uses port 80, and the MySQL database server uses port 3306.

These ports are configurable. The default configuration for MAMP PRO uses ports 8888, 8889, and 8890. This allows the MAMP servers to run alongside other servers installed on your Mac. If ports 8888, 8889 or 8890 are being used by another application, please change the values accordingly.

  • Port / Port (SSL)
    Here you can set the ports for connections to Apache and Nginx web servers via http and https (SSL). You also specify the ports for connections to the MySQL database server, Memcached and Redis.

  • Set ports to:

    • Default MAMP ports
      This button is used to set the ports to values with which there is as little or no overlap as possible with other running servers.

      • Apache: 8888 / 8890
      • Nginx: 7888 / 7890
      • MySQL: 8890
      • Memcached: 11211
      • Redis: 6379
    • 80, 81, 443, 7443, 3306, 11211 & 6379
      This button sets the ports to the values commonly used on the Internet.

      • Apache: 80 / 443
      • Nginx: 81 / 7443
      • MySQL: 3306
      • Memcached: 11211
      • Redis: 6379
  • Having trouble with blocked ports?

    • Auto-detect free ports
      This button will help you to find available ports on your Mac.

      If MAMP PRO reports that another process is running on your Apache/Nginx port, you can test this from the command line. In a Terminal, type the following: sudo lsof -i :80 # checks port 80 and press “Return”. If the port is open, nothing should be returned.