Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MAMP Media Setup

A macOS utility for preparing MAMP and MAMP PRO PHP installations and working with local MySQL backups.

GitHub source · Releases · Changelog

Requirements

  • A Mac with Apple silicon and macOS 26 or later.
  • MAMP or MAMP PRO 7.0 or later. The app supports the standard installation paths.
  • MySQL must be running to browse, restore, sync, or revert databases.
  • Homebrew is required for PHP and media setup. Apple’s command-line developer tools are needed if GMP must be built.

PHP setup

Choose MAMP, MAMP PRO, or Both and select an installed PHP version. Select GMP, Imagick, FFmpeg and FFprobe, or 2 GiB uploads, then apply the changes. The app backs up configuration files before editing them. Restart the selected MAMP servers to load the new settings.

Database tools

Open Database in the menu bar or main window toolbar.

  • Restore Database accepts a single MySQL-compatible .sql or .sql.gz dump. Choose a client, optional input encoding, client packet size, or foreign-key behavior, then choose a connection and database. The connection shows Socket Path and TCP Port together. Select Socket for a Unix socket or TCP for a loopback connection. Start Restore opens a confirmation before applying any change.
  • Sync Database has independent From and To selectors. The source can be a local MySQL database, a SQL dump, or a SQL dump selected from a folder. The destination can be a local MySQL database or a new SQL output file. Connect to both servers separately when copying across local MySQL instances.
  • Schedule runs one configured sync while the app stays open. The schedule and connection credentials are held in memory for that session. Use Scheduled Sync to cancel it before it runs.
  • New Database lets you choose a name, encoding and collation. The database is created when you confirm the restore or sync.
  • Revert Restore uses backups saved by this app for the matching MySQL server. Database replacement stages the dump first, saves the destination, and attempts automatic recovery if the final import fails. Pause other writes to the target during a restore or revert.

The Help menu contains the built-in guides. PostgreSQL and SQLite data need a MySQL-compatible export.

XenForo friendly URLs

Open Web Server → XenForo Friendly URLs. Select the Apache edition and the XenForo root containing index.php and htaccess.txt, then choose Configure Apache. The app enables mod_rewrite and scopes .htaccess overrides to the chosen folder. It preserves an existing XenForo rewrite file, copies the shipped template when .htaccess is missing, or adds the vendor rewrite block after existing directives that lack rewrite rules. Existing custom rewrite rules need to be merged in their intended order.

For MAMP PRO, the app updates the persistent Apache HTTP and HTTPS templates. Restart Apache in MAMP PRO to regenerate the runtime configurations. For standard MAMP, the app validates the full Apache configuration and requests a reload when its Apache instance is running.

In XenForo Admin CP, open Setup → Options → Search engine optimization (SEO) and enable Use full friendly URLs after confirming that Apache serves a friendly route. Enter the site URL in the app to open that option group. Sites served by Nginx use the rewrite configuration in XenForo’s friendly URL guide.

Backup & Restore

Open Backup → Backup & Restore, or use the external-drive button in the toolbar.

  • Create Backup saves selected site folders, user database dumps, copies of PHP configuration files, and other files in a portable folder. Connect to the appropriate MAMP MySQL server to select databases. For an application-consistent backup, pause writes while the files and databases are copied.
  • Restore verifies the selected item against the manifest before writing. Site files can go into a new or existing document root. An existing folder is saved beside the restored folder. A restored folder can be registered as a new MAMP PRO site through its Automation interface.
  • Database restore uses the local MySQL connection and the app’s staging, replacement backup, and recovery workflow. Same-name imports and restores into another compatible database name are supported on the Mac. Use an account with privileges for the selected backup or restore operation.
  • PHP restore applies portable values to a selected installed PHP version. Full source configuration is kept in the backup for reference. Runtime-specific paths, extension binaries and directives that load code are left for review on the destination.
  • iCloud Drive and USB use macOS’s file picker. Select a folder in iCloud Drive or on an attached volume. Keep the entire portable folder together and wait for it to finish downloading on the destination. exFAT works for a shared Mac and Windows drive.
  • Windows and other MAMP installations can use the site files and SQL dumps with MAMP or MAMP PRO’s native tools. The backup includes a restore guide and an unmodified PHP configuration reference. Import SQL only from a backup you trust. The native Backup & Restore sheet runs on macOS.

Keep backups private. Site files can contain secrets and the SQL can contain user data. Links that stay inside a selected site are copied as normal files or folders. Links outside the site must be backed up separately. Recreate destination-specific MAMP host settings, certificates, database accounts, and dependencies on the other device.

See Apple’s iCloud Drive instructions and MAMP’s Windows transfer guidance.

SSL Manager

Open SSL → SSL Manager or use the lock button in the setup toolbar.

  • MAMP: Choose Apache or Nginx, enter a hostname and port, and select Install and Verify HTTPS. SSL Manager validates and backs up the configuration, reloads the selected web server, and checks the served certificate over loopback. The default URL is https://localhost:8443. Use Restart and Verify HTTPS for an existing managed listener. Remove Managed HTTPS also removes the associated system trust entry after macOS administrator approval.
  • Trust for all Mac users: Use localhost or a local .localhost, .test, or .local name. After macOS administrator approval, the app adds a name-constrained development CA certificate to System Keychain for TLS, issues the site certificate, and discards the CA signing key. The root-owned server key is readable by the account that installed it. Other users can open the running site without receiving a copy of that key. Custom names need a local DNS mapping. For FileVault’s Safari-only guest session, Apple limits access to the encrypted system. Apple Guest User settings
  • MAMP PRO → New HTTPS Site: MAMP PRO creates the site and manages its certificate through the vendor’s SSL system. In versions that expose individual server controls, select Apache or Nginx to restart it from SSL Manager. MAMP PRO 7.6 uses its own window to restart the stack. MAMP PRO Automation
  • MAMP PRO → Existing Site Certificate: SSL Manager can create and install a trusted identity for the host. Select the resulting certificate and key under Sites → SSL to attach them to the existing site. MAMP PRO SSL settings
  • Certificate Only: Creates a development identity without editing a web server configuration. With all-users trust off, certificates are self-signed and stored under your user’s Application Support folder.

Safari and Edge

The MAMP Local HTTPS extension opens a local development URL, remembers your local host and HTTPS port, and can preserve the path of your current local page. macOS manages HTTPS trust. Browsers verify certificates and profiles control their extension settings. Microsoft Edge certificate verification

  • Safari: Use SSL Manager → Browser Extensions → Open Safari Extension Settings and enable the embedded signed extension in the profile where you want to use it. Apple Safari extension instructions
  • Edge: Choose Show Edge Extension Folder in SSL Manager. In Edge, open Manage extensions, enable Developer mode, select Load unpacked, and choose the shown folder. Microsoft Edge extension instructions

Homebrew

Open Homebrew → Check for Homebrew Updates to compare the installed version with the latest official Homebrew GitHub release. The app downloads the official Homebrew.pkg, checks its SHA-256 digest, Developer ID Installer signature, and Apple notarization, then offers Open Installer. Complete the installation in the macOS Installer and select Check Again to refresh the installed version.

App updates

Use MAMP Media Setup → Check for Updates. The app uses Sparkle for release notes, download progress, archive verification, extraction, and install-and-relaunch. Automatic checks and installations are off by default and can be enabled using Sparkle’s update controls.

The app expects the signed appcast.xml asset on the repository’s latest public GitHub release. Updates must have the same app identity and a higher build number. The app verifies the signed feed and update archive before extraction. Version 1.11 and later require Apple silicon. Sparkle checks the architecture requirement before offering the update.

Preparing a release

  1. Build the Release configuration of MAMP Media Setup.xcodeproj. Use Developer ID signing and notarization for distribution through GitHub so Gatekeeper can accept the downloaded app.
  2. Run the command below with the Release app, Sparkle’s tools directory, and an empty output directory. The Sparkle private key stays in the publisher’s login Keychain under dev.tyleraustin.mamp-media-setup.
  3. Publish both outputs as assets on the GitHub release tagged v<version>.
./script/prepare_release.sh "/path/to/MAMP Media Setup.app" "/path/to/Sparkle/bin" "/path/to/empty-output"

The script produces the archive and signed appcast locally. It has no publishing step.

Build from source

Open MAMP Media Setup.xcodeproj in Xcode, select a development team under Signing & Capabilities, and run the MAMP Media Setup scheme on My Mac. Xcode resolves Sparkle 2.10.1. The macOS deployment target is 26.0.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages