Solution 1:
In / applications / MAMP / library / bin, find the file envvars and rename it to_ envvars。
It doesn’t work for me.
Solution 2:
sudo /Applications/MAMP/bin/startApache.sh
or
sudo /Applications/MAMP/Library/bin/apachectl start
There is no display.
Solution 3:
Change document root to a fixed address that you don’t know how to delete.
MAMP > Preferences > Server > Document Root
Still failed.
Solution 4:
sudo /Applications/MAMP/Library/bin/apachectl restart
report errors:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
httpd not running, trying to start
I solved it lazily
Final solution
I had a video conference with the professor. He asked me to come to him
- delete the installation package, turn off the computer, wait for five minutes, and then turn on the system. If there is an update, update it, and then download the MAMP software again
Well I guess it’s the system update that works, updating Catalina to Big Sur
as a person who doesn’t shut down several times a year, and who can delay several versions of the update
After doing all the above honestly In front of the professor, there was no problem at all, and then he was connected
for a time, I was a little embarrassed, and I told him by email how many attempts I had made I’m impressed
reference resources
- Apache server cannot start why won Apache server start in MAMP