Settings > Hosts > Hosts Table
MAMP PRO uses virtual hosts to allow your web servers to serve different websites. You can add an unlimited number of hosts allowing you to create one host per project. Every host can have it’s own directory to store HTML, PHP files and images. This directory is called Document Root.
The name of a host (server name) must be unique, often it’s practical to use a reverse domain naming scheme to easily identify them (e.g. use info.mamp.development instead of development.mamp.info). The unreversed name may conflict with an outside domain name.
The virtual host “localhost” is created by default and cannot be deleted.
Hosts can be grouped into virtual folders for convenience. To create a group press the settings button at the bottom of the hosts table.
When a host is temporarily not needed it can be moved to the Inactive Hosts section. Inactive hosts will not be written to the hosts file when your servers are started, and will be inaccessible.
Move your hosts to the trash. You can delete them from here or restore them. You can optionally delete the document root, associated databases, and cloud data when deleting a host.
To create a new host press the “Plus” button at the bottom left of the Hosts table. Press the “When creating new host …” button to expand your options.
The host name may only contain letters and/or numbers, as well as dashes (“-“); but it may not begin or end with a “-“ character. Names are not case-sensitive (upper and lower-case letters are not distinguished).
The location of the documents (HTML/PHP files etc.) of a virtual host is called a document root. The document root is also known as the web root folder. MAMP PRO will automatically add an index.php file and a MAMP image to this location when your web server is restarted if the folder is empty. If the folder you wish to use as a document root is greyed out, you may have a problem with permissions. This can be solved by changing your server launch users.
You can create a host with WordPress automatically installed. Check the “Install WordPress” checkbox, and then press “Continue”. You can optionally check the “generate certificate for https access” to make your site https.
This is you admin name that is required to login to your WordPress administration section.
This is you admin password that is required to login to your WordPress administration section.
This is the name of the database that will be associated with your WordPress installation.
This is the MySQL database user that will be associated with this database. If this MySQL user does not exist, a new one will be created.
DB user password
This is the user password that will be associated with your database user.
New host using database
Create a database to be associated with your new host.
This is your MySQL database name.
Grant access to user
When you do grant access, you have the choice of using an existing user, or your can create a new user. If you choose to create a new MySQL user, a password for this new MySQL user is required. This must be filled in below in the “Using password” text field. If an existing MySQL user is chosen, the “using password” field is disabled, and the existing password of this MySQL user will automatically be used. If this box is not checked, the new database will be created by and rights given to the MySQL “root” user.
The password for your MySQL user. When a new MySQL user is created a password is needed to continue. This field is disabled if an existing MySQL database user is creating the database.
New host using template folder
Copy the contents of a template folder to your new host. This template folder may be a collection of files and folders that you might use for the basis of a new website.