sudo httpd -k restart

hi,

why do I need -k in

sudo httpd -k restart ?

thanks

That is how the command is written.

httpd(8) man page.

    httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ]
       [ -D parameter ] [ -e level ] [ -E file  ]  [  -k  start|restart|grace-
       ful|stop|graceful-stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [
       -t ] [ -v ] [ -V ] [ -X ] [ -M ]


       On Windows systems, the following additional arguments are available:


       httpd [ -k install|config|uninstall ] [ -n name ] [ -w ]

ok. I've tried this:

sudo apachectl restart

and it works as well.

thanks