Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I try to run an apache instance. It doesn't run properly. I am trying to get some diagnostic information. I gave ps command and the apache instance that don't run properly are output with -k start. What does "-k start" mean?

Here is a piece of the output of ps command. The first apache server works properly, but the second one doesn't.

 0.0  3144 22166 /home/mertnuhoglu/webapps/roxalana_osqa/apache2/bin/httpd.worke
 0.0  1620 23311 /home/mertnuhoglu/webapps/django/apache2/bin/httpd -k start
share|improve this question
add comment

5 Answers

up vote 1 down vote accepted

That's the root process of the apache server. It binds to port 80 (or wherever) starts, then forks additional processes to handle actual requests.

What is it about that process that you say is "not working"?

share|improve this answer
    
Thank you all. Then "-k start" is not related to my problem. The server gives 500 Internal Server error. I will try to diagnose the problem more. –  Mert Nuhoglu Dec 17 '10 at 21:10
add comment

The ps command shows the running processing with their parameters. So, -k start should be the parameters passed to httpd process. You can check the listening state of apache using:

$ sudo netstat -lnp | grep 80

Also, check the apache log files.

share|improve this answer
add comment

This is the parameter httpd was started with.

share|improve this answer
add comment

http://linux.die.net/man/8/httpd -k start tells the server to start itself

share|improve this answer
add comment

Auto start if it got down -k :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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