Create a new custom host

Select this host type if your project requires either a database or if you want to copy files from a template directory. Of course, both options are also possible together.

  1. Click the “+” button below the hosts list and switch to the “Advanced” section. Select the host type “Custom” in the following dialog.

    MAMP PRO - Create a new custom host

  2. Confirm your selection by clicking on the “Continue” button.

  3. The next step is to enter the name of your new host. In this example we choose the name “my-host”.

  4. As “Document root” we first create the new directory “my-host” and then select it.

    Note: Do not create document root folders under your /Applications/MAMP folder. A better location for your document root folders would be ~/Sites/. When you do this, your host data is separated from the MAMP PRO application data.

  5. If you want a database to be added automatically when the new host is created, select the “Add a database” checkbox. The new database is then immediately linked to the new host.

    MAMP PRO - Create a new custom host - Add a database

  6. If certain files and directories are to be copied to the document root when the new host is created, select the “Copy a template folder” checkbox. You can select the appropriate template folder in the next steps.

    MAMP PRO - Create a new custom host - Copy a template folder

  7. If you want your new site to be accessible via “https” as well, activate the corresponding checkbox (SSL).

    MAMP PRO - Create a new custom host - SSL

  8. Confirm your selection by clicking on the “Continue” button.

  9. Now enter the desired name of the new database. You can also create a new database user that is to have access to the new database. However, this is optional.

    MAMP PRO - Create a new custom host - Database

  10. Confirm your selection by clicking on the “Continue” button.

  11. The next step is to select the directory whose contents will be copied to the document root of the new host.

    MAMP PRO - Create a new custom host - Select template folder

  12. Confirm your selection by clicking on the “Create Host” button.

  13. After all you will be reminded that you have to click on the “Save” button and the servers have to be restarted. Confirm this by clicking the “OK” button.

    MAMP PRO - Create a new custom host - Before you can open the new host…

  14. Save the settings for your new host by clicking the “Save” button at the bottom right. The servers must then be restarted. Confirm this by clicking the “Yes” button in the corresponding dialogue box.

    MAMP PRO - Create a new custom host - Restart servers

  15. To open your new host in your default browser, click on the “Open” button to the right of the host name field.

    MAMP PRO - Create a new custom host - Open host in browser