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
Read More:
- Apache service can’t be started under xampp, reporting port occupancy class error [error] Apache will not start without the configured ports free!
- Apache2 cannot be started and an error is reported for apache2.service failed because the control process exited with error code.
- Job for apache2.service failed apache2 cannot be started
- The installation of docker desktop failed. After successful installation, the docker can not be started
- Apache service failed to start, semaphore not released
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standar
- Apache failed to start due to SSL library certificate has expired
- ERROR $124; Failed to start Apache ActiveMQ (localhost, ID:ZJZL-201910RQ-545-15845236845-0:1) jvm
- Mpi4py installation error: cannot compile MPI programs. Check your configuration!!!
- An error was reported during MySQL 6.0 installation: start service failed
- To solve the problem in Windows opencv installation: error configuration process, project files may be invalid
- Hadoop datanode using JPS to view the solution that can’t be started
- RocketMQ Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check…
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- The first installation of zookeeper on Linux failed to start
- org.apache.catalina.LifecycleException: Protocol handler start failed
- Oracle reports an error and lsnrctl listening cannot be started
- Systemctl command doesn’t exist. How to solve the problem that the service can’t be started
- Pychar error: Error:failed to find libmagic. Check your installation