After restarting mac, apache under XAMPP cannot be started, as follows
And prompt:
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh: httpd started
Viewed the port in the terminal
I don’t know why even if I try to break my brain, it was always normal before (I never restarted it);
Please ask God for help!
过去多啦不再A梦2017-05-16 17:02:28
I don’t know what the specific problem is. It may be that the pid file has not been deleted, or that pid just corresponds to a running process.
Solution to the problem
1. Delete the pid file and lock file of the httpd service
2. Restart
Or a simple way
If it is a command line
service httpd stop # This step will help you solve some problems
service httpd start # Similar operations
If it is xampp, try stopping first and then starting it
滿天的星座2017-05-16 17:02:28
Is it possible that the system comes with apache and conflicts with xampp?
黄舟2017-05-16 17:02:28
I also encountered the same problem. Because the apache that comes with the system has started up first, just run sudo apachectl stop, and then start xampp.