Settings > Ports & Users
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 80, 81, 443, 7443, 3306 & 11211 This button sets the ports to the values commonly used on the Internet.
Reset default MAMP ports This button resets the ports for Apache, Nginx and MySQL to 8888, 8889 and 8890.
Auto-Detect Available 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 80and press “Return”. If the port is open, nothing should be returned.
Run server as
This is where you specify as which user you want the servers to run. You can choose from the following two options
The Unix users are rarely needed. Apache and Nginx will run as user “www”, MySQL as user “mysql”.
Running the servers as your user account is sufficient in most situations.