httpd: unrecognized service

Rate this post

I’ve installed the Apache web server on Kali Linux and I’m able to start/stop it with:

/usr/usr/local/apache2/bin/apachectl restart[start/stop]

But if I try to launch it with service command

service httpd restart[start/stop]

it says

httpd: unrecognized service

I would use the second way to launch Apache because it’s shorter and I can keep it in mind.

Probably doesn’t work because I’ve installed Apache without using apt-get and httpd isn’t in the init.d directory, but I’m not sure about this.

How can I solve this? Maybe with apt-get install httpd?

For any query or issue, feel free to discuss on http://discuss.eduguru.in

One thought on “httpd: unrecognized service

Leave a Reply

%d bloggers like this: