Skip to content

Instantly share code, notes, and snippets.

@thoaster
Last active April 7, 2024 16:22
Show Gist options
  • Save thoaster/2e7a29e522dc60be8bd673f79c5959b6 to your computer and use it in GitHub Desktop.
Save thoaster/2e7a29e522dc60be8bd673f79c5959b6 to your computer and use it in GitHub Desktop.
MAMP PRO 4 Trial Reset

MAMP PRO 4 Trial Reset

A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.

How to use

  • Copy the code into a file OR download the script and save it as reset_mamp4.sh
  • Open the Terminal app and write chmod +x then drag and drop the file on the Terminal. You should have something like chmod +x reset_mamp4.sh. Press Enter to run it.
  • Now, run the file itself by dragging and dropping it on the Terminal (something like reset_mamp4.sh) then pressing Enter.
  • Open MAMP PRO and check if you have 14 days left now.

Didn't work?

Try using superpowers and run it as root sudo reset_mamp4.sh.

Did it work?

Let me know, or improve it by yourself.

#!/bin/sh
# Reset MAMP PRO 4 Trial
# Let me know if it works
set +e
rm ~/Library/Preferences/de.appsolute.mamppro.plist
rm ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/de.appsolute.mamppro.sfl
rm -rf ~/Library/Caches/de.appsolute.mamppro
rm -rf ~/Library/Saved\ Application\ State/de.appsolute.mamppro.savedState
sudo killall de.appsolute.mampprohelper
sudo killall cfprefsd
@frankazoid
Copy link

frankazoid commented Nov 9, 2023

Just reset demo for 6.8 - there was a lot of files. run "sudo find / | grep mamp" and delete all the files/folders that match. some of them were quite hidden. re-install mamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment