macos - apache under XAMPP cannot start after mac restarts
ringa_lee
ringa_lee 2017-05-16 17:00:28
0
3
897

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!

ringa_lee
ringa_lee

ringa_lee

reply all(3)
过去多啦不再A梦

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

滿天的星座

Is it possible that the system comes with apache and conflicts with xampp?

黄舟

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!