0

I'm connected to a remote mac using ssh + terminal. I need to restart apache from terminal. How can I do that?

I am looking here http://httpd.apache.org/docs/2.2/stopping.html and tried:

apachectl -k graceful

but this command seems to not be found. How can I do it?

Thanks

3

You might be able to use the init scripts. Try something like:

sudo /etc/init.d/httpd restart

or

sudo /etc/init.d/apache2 restart
1
  • It's sudo /usr/sbin/apachectl start because /etc/init.d is not in OSX Apr 8 '18 at 2:07
0

How about apache2ctl?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.