I'm trying to install zend server on mac and need to uninstall the apache server that is auto included with Mavericks so that the Apache server included with Zend is used instead. Can it be prevented from running on startup or permanently removed?
相关问题
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- How to deploy a web application Aurelia in an Apac
相关文章
- 现在使用swift开发ios应用好还是swift?
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
try this
it will stop all
I ran into this same problem, and the culprit was pretty obtuse. It wound up that OSX was attempting to include a nonexistent php version, however the OSX httpd was also not directly accessible due to the homebrew httpd taking priority. Here's what I did that fixed it:
First:
brew unlink httpd
Thenwhich httpd
revealed the following:/usr/sbin/httpd
At this point I ran
sudo /usr/sbin/httpd -k stop
, and the real culprit revealed itself:I then fixed this with
sudo vi /private/etc/apache2/httpd.conf
, and commented out all of the lines in that file, and ran the following for good measure:This stated:
The underlying problem was that the native OSX instance was still running, but had become detached from
launchctl
due to the PHP not found issue. So basicallylaunchctl
thought it had properly shut the process down, but theapachectl
agent refused to stop due to the PHP error, resulting in a decoupled process, which was only accessible for direct control when the homebrew version was also unlinked.Commenting out the native PHP include allowed me to run
sudo apachectl -k stop
without issue.After sorting this out, I then ran
followed by
Profit.
Try this:
This will stop a running instance of Apache, and record that it should not be restarted. It records your preference in
/private/var/db/launchd.db/com.apple.launchd/overrides.plist
.If you got to this page as I did and was getting something like
/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service.
try NOT using the sudo command, which was making me get the above error.