Switching between Macs - 1 works, one doesn't

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
sarah
Posts: 2
Joined: Sun Nov 24, 2024 5:14 pm

Switching between Macs - 1 works, one doesn't

Post by sarah »

I'm lucky enough to have 2 macs - a MBP 16" for use at home, and an Air 13" for on the road. The MBP runs Mamp Pro perfectly, easy peasy, worthI was happy to renew recently.

I had a 2-week trip coming up and some work I needed to do while on the road so fired up the Air, updated everything I'd need and set about testing the tools I'd need. All good until I got to Mamp Pro. It booted, I could navigate to the site but it gave SSL warnings & didn't seem to be letting me get my cdn javascript & CSS files. phpinfo() was running. I updated the SSL certificates and did some googling. No result so I emailed support. They came back with some suggestions which have set me backwards - now I can't even open the site locally.

Any ideas what to do? I still have a week to go of my trip and that work still needs to be done.
> Verify the certificate’s Common Name (CN) or Subject Alternative Name (SAN) matches your site domain and is valid.
I let MAMP Pro set the common name etc. My URL is https://ckm:8825/ and the certificates are called CKM
> Import the SSL certificate into Keychain Access, set it to "Always Trust."
This is done
> Ensure /etc/hosts includes 127.0.0.1 yourdomain.local.
How do I do this using MAMP Pro?
> Check MAMP Pro’s SSL paths in the Hosts > SSL tab, ensuring correct .crt and .key files.
They point to the files generated by MAMP Pro
> Clear browser cache or use incognito mode; reset HSTS in Chrome via chrome://net-internals/#hsts.
Both done, no change
> Temporarily disable macOS firewall, VPN, or proxy settings.
firewall disabled by default, no VPN, no proxy service
> Test external resources by running curl -I https://cdn.example.com and enable the PHP cURL extension in MAMP.
curl is working
> Try accessing the site from another browser or device to isolate issues.
same behaviour in chrome and safari
Delete ~/Library/Preferences/de.appsolute.mamppro.plist to reset MAMP Pro preferences.
now MAMP Pro will start the site but the "open in" is disabled and previously open tabs give a "can't find the server" message. The icon in the list of sites is disabled. Local host is working.

> Compare MAMP logs between both Macs for discrepancies in SSL protocols or settings.
While travelling I don't have access to the other laptop's logs but I can see this:

[Thu Nov 14 22:14:41.894016 2024] [autoindex:error] [pid 17255:tid 6109360128] [client ::1:53129] AH01276: Cannot serve directory /Users/sarah/Sites/CKM/: No matching DirectoryIndex (index.html,index.php,index.wsgi,index.py) found, and server-generated directory index forbidden by Options directive
Post Reply