Settings > Hosts > Remote

MAMP PRO offers the possibility to connect to a remote server via (S)FTP. You can upload and download your website or data from your local Mac or – using the integrated editor – modify text files directly on the server.

MAMP PRO - Remote

We have paid special attention to helpful functions around the worldwide very popular WordPress. Thus, for example, MAMP PRO can automatically recognize the MySQL connection data of your WordPress installation on the remote server, or make all necessary changes, so that WordPress still runs smoothly after uploading or downloading to another server. Based on this technology you can easily move (migrate) an existing WordPress installation from one server to another server. And you don’t have to give away any access data to an external service. Your data remains with you on your Mac - securely stored in your keychain.

To see the files and folders of a host on a remote server in the integrated editor you have to switch the files list to its remote view. This is done with the switch on the right-hand side below the files list. Editing, creating, deleting or adjusting files does not require a separate download step, and saving also happens directly on the server.

MAMP PRO - Remot - Remote Editing

Requirements

Before you start, here are the requirements that your remote host account needs:

  • Apache or Nginx with mod_rewrite module (Apache 2.2 or higher)
  • MySQL 5.6 or higher
  • PHP 5.4.2 or higher
  • PHP extensions required: MySQLi, cURL
  • Working WordPress 4.9.4 or higher
  • User has rights to read & write files when connected via (S)FTP

You must also set your PHP settings on your host provider to the following minimum requirements:

  • upload_max_filesize = 40M
  • post_max_size = 128M
  • max_execution_time = 120
    (This needs to be increased if your server is slow and cannot import data.)
  • memory_limit = 128M
  • max_input_vars = 2000

If you have questions about changing these PHP configuration settings, please contact the provider of your remote server. Please also note our related articles. You can find them here.

Tested Host Providers

The following is a list of the host providers that have been tested using various versions of Apache, PHP and MySQL:

Host Provider Tested With
GoDaddy Apache, MySQL 5.6, PHP 7.2, FTP
IONOS by 1&1 Apache, MySQL 5.6, PHP 7.2, SFTP
Namecheap Apache, MySQL 5.6, PHP 5.6, PHP 7.1, FTP, SFTP
Host Europe Apache, MySQL 5.5, PHP 5.6, PHP 7.0, PHP 7.1, FTP
Domainfactory Apache, MySQL 5.6.19, PHP 7.0.24, FTP / FTP with TLS/SSL

Uploading & Downloading

Before you start transferring your site, make sure you have a backup of both your remote host files and your remote database file (prior every import transfer, a snapshot is made automatically in order to save the last state of your local site and if something goes wrong you can always recover the snapshot of that host). Once you have made your backups, you are now ready to start your transfer.

The transferring process involves making changes directly to the database and some configuration files. At this time, only the WordPress content management system has been fully verified for uploading and downloading to a remote server. Other content managements systems, such as Drupal and Joomla, or dynamic websites have not been tested; however you can proceed at your own risk. After the transfer is complete you should see your site live.

More detailed examples on uploading and transfering your site can be found in the FAQ section.

What information do you need from your host provider?

  • Static sites
    If you have a static site on which you do not use a database, you only need to enter the data in the “Transfer files using…” area.

  • WordPress and sites using databases
    If you have a WordPress site or any other dynamic website on which you use a database, then you must enter the data in the areas “Transfer files using…” and “Remote MySQL Server”.

    We are only actively supporting WordPress sites, but your non WordPress site may work. Please make backups before you move your site to a remote host. The remote feature does not support WordPress multisite.

Settings

Check the “Allow importing/publishing and remote editing of this host” checkbox to activate the remote tab.

MAMP PRO - Remote

On the right side you see a button with a gear symbol. Clicking on this button opens a menu with the following options:

  • Save current Server Settings of this Host…
    MAMP PRO - Remote - Save current Server Settings of this Host…

    Here you have the option to save the current connection data to a file. You can later use the connection data from this file on any host.

    Note: The password of your FTP credentials and the password of your MySQL server credentials are not stored in the file.

  • Copy Settigs from other Host
    Here you have the possibility to copy the remote access data of another local host to the currently selected local host.

  • Ask Provider for Server Info…
    Selecting this option opens the mail app of macOS and creates a new e-mail. This e-mail contains some questions to your provider regarding the access data to your remote server.


  • Public URL
    This is what you have to enter in a web browser to display your remote website. The address must start with “http://” or “https://”.

  • Transfer files using…

    • Protocol
      Choose the protocol you will be using to transfer files to your remote server. The following options are available:

      • FTP
      • FTP with implicit SSL
      • FTP with TLS/SSL
      • SFTP with Password
    • Port
      Choose the port you will be connecting to when transferring your files to your remote server. The following ports are usually used for the corresponding protocols:

      • FTP = 21
      • FTP with implicit SSL = 990
      • FTP with TLS/SSL = 21
      • SFTP with Password = 22
    • Server
      The name of the server you will be connecting to when uploading or downloading your files to a remote server.

    • User Name
      Your user name used to connect to your remote server.

    • Password
      Your password used to connect to your remote server.

    • Path
      The path to your web servers document root.

      • Auto-Detect…
        When you click on this button, MAMP PRO tries to determine the value for the “Path” field automatically. This button is active only if you have entered something in the “Public URL” field.

      • Choose…
        When you click on this button, a dialog with the directory structure of your remote host is opened. Here you have the possibility to select the appropriate directory.

  • Remote MySQL Server
    Most websites you make will utilize a database. You will need to establish a connection to your remote MySQl database server in order to transfer your database.

    • Detect
      When you click on this button, MAMP PRO tries to fill the values of the fields for the database connection automatically. This only works if you have installed a WordPress on your remote server.

    • User Name
      The database user name on your remote server.

    • Password
      The database user password on your remote server.

    • DB Name
      The name of the database you will be using on your remote server.

    • DB Host
      The name of your host on your remote server.


  • Publish Host…
    If you click this button, the data (files, directories, database) will be uploaded from your local host to your remote host.

    Note: You must first save your settings in order for this button to be enabled.

  • Migrate Host…
    When you click this button, you can move the WordPress installation from one remote host to another remote host. The currently selected host is the source and you select the target host.

    Note: You must first save your settings in order for this button to be enabled.

    MAMP PRO - Remote - Migrate

  • Import Host…
    If you click this button, the data (files, directories, database) will be downloaded from your remote host to your local host.

    Note: You must first save your settings in order for this button to be enabled.

  • Check Validity
    If you click on this button, the access data you entered for your remote host will be checked.

    Note: You must first save your settings in order for this button to be enabled.

    If everything is okay, a corresponding message is displayed:

    MAMP PRO - Remote - Check Validity (Credentials Verified)

    However, it can of course also happen that a problem is detected. For example, the following screenshot shows a message that appears if the remote server has a higher PHP version than the local host.

    MAMP PRO - Remote - Check Validity (PHP problem)

    The example below shows a message where there is a problem with the FTP data:

    MAMP PRO - Remote - Check Validity (FTP problem)