I'm working on a server that was configured by a former employee and I need to restart Apache. Unfortunately, it's not the default install and it's in a different place and apachectl doesn't exist and launchctl doesn't even seem to know that this apache is installed or running. I don't want to break anything and was wondering if there was a graceful way of restarting this custom Apache instance in order to update the configuration files to account for new SSL settings.
How should I go about restarting a custom Apache install
apacheconfiguration
Related Question
- MacOS – Enable URL rewriting (mod_rewrite) using .htaccess files in ~/Sites on Lion
- Apache on OSX 10.8 not starting
- How to install Apache into a custom directory
- MacOS – Configure Yosemite Server WebApp with LaunchD
- macOS Server – Using SSL on Apache in El Capitan: AH01276 Error
- MacOS – Unable to access 10.2.3 16D17a machine over network
- MacOS – localhost/phptheadmin – 404 error on macOS High Sierra
Best Answer
Assuming you know where Apache is installed, you should be able to gracefully restart it like this:
kill -USR1 `cat <apache_dir>/logs/httpd.pid`
(Untested, but based on the Apache docs).