Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven’t renamed the root! Solution no. I received the same error but interestingly it was caused simply because I renamed the root folder and didn’t realize it. When I run MAMP now it all seems to work fine. I changed all instances of port 8888 to 8000. Simply open MAMP again, change Document Root to a location that does exist and start the servers. I’ve solved this issue using this command in the terminal : sudo apachectl stopĪlso be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. It turns out I had an extra /VirtualHost tag. I got an error that pointed back to my vhosts file. After trying the_dillio’s suggestion: sudo /Applications/MAMP/Library/bin/apachectl start Had the same problem, nothing in the logs. What you can do in this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. No listening sockets available, shutting down (48) Address already in use: make_sock: could not bind to address 0.0.0.0:8888 (48) Address already in use: make_sock: could not bind to address :8888 Sudo /Applications/MAMP/bin/startApache.sh If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
Only to find that after upgrading I was missing the mod_example.so httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/nf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not foundĬopied it from my old install and I was good to go. However I manually ran the following at the command line (because log file was empty): sudo /Applications/MAMP/Library/bin/apachectl start That didn’t work after all, but it didn’t error out. I didn’t get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here: MAMP > Preferences > Web Server > Document Root Solution no. 1:Ĭheck if you changed the Document Root Location or Renamed it.
Thanks How to solve this problem? Solution no. I reinstalled OSX and that worked but when I shut down the computer the problem occurs again. I’ve gone through the internet typing stuff into terminal and changing ‘envvars’ to ‘_envvars’ but nothing works. When I press start the MySQL server starts but Apache doesn’t. I’m trying to view php files locally on my mac.