Settings > Ports & Users

Server programs, when addressed via the network, need to be assigned to a certain network port. This way, multiple server programs may run on one server machine. Every service has a default port: The Apache web server typically uses port 80, the MySQL database server utilises port 3306.

These ports are configurable. The default configuration for MAMP PRO uses ports 8888, 8889 and 8890. That way, the MAMP servers can run alongside other servers installed on your Mac. Should ports 8888, 8889 or 8890 be in use by a different application, please change the values accordingly.

MAMP PRO - Ports & User

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

  • Set ports to 80, 81, 443, 7443, 3306 & 11211
    This button will set the ports to the values commonly used on the internet.

  • Set default MAMP ports
    This button will reset the ports for Apache, Nginx and MySQL to 8888, 8889 and 8890.

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

    If MAMP PRO is stating that another process is running on your Apache/Nginx port, then you can test this using the commmand line. Type the following into the terminal, sudo lsof -i :80 # checks port 80, and then press “Return”. If the port is free, nothing should be returned.

  • Run servers as
    Here you define under which user the servers should run. You can choose between the following two options:

    • Unix users
      The Unix users are seldom required. Apache and Nginx will then be run as user “www”, MySQL as user “mysql”.

      Running the servers under your user account is perfectly adequate in most situations.