Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running itk as Apache MPM.

In order to prevent error in case I need to change the MPM in the future, I set

    <IfModule itk.c>
        AssignUserID user group

but I found that it gets ignored. In fact, if I add a WTF like and run rcapache2 configtest it returns me Syntax OK

    <IfModule itk.c>
        AssignUserID user group
        WTF ##doesn't throw error

By the way, /etc/sysconfig/apache2 shows APACHE_MPM="itk"

How do I check if I'm running itk or not?

EDIT: If I remove the ifmodule and restart I get

Invalid command 'WTF', perhaps misspelled or defined by a module not included in the server configuration 
share|improve this question
Remove the ifmodule condition and see if it throws an error. Looks like the module isn't actually loaded. – Ben Lessani - Sonassi Sep 29 '12 at 10:56
Tried. rcapache2 configtest throws exception – usr-local-ΕΨΗΕΛΩΝ Oct 2 '12 at 19:27
And the exception is ... – Ben Lessani - Sonassi Oct 2 '12 at 19:29
Invalid command 'WTF', perhaps misspelled or defined by a module not included in the server configuration – usr-local-ΕΨΗΕΛΩΝ Oct 2 '12 at 19:32
up vote 1 down vote accepted

If it throws an error when IfModule is commented out, then Apache doesn't think the itk.c module is actually loaded (so its not parsing the contents of the conditional statement).

But that is not to say that the itk module isn't actually being loaded. Otherwise, you would likely also have a an exception being thrown for AssignUserID too.

This isn't the first time I've come across Apache mis-reading the .c/.h files and thinking a module isn't loaded, when it actually is.

To know if its actually running - just check your vhost user in top/ps

Eg. ps axu | grep -E '(apache|httpd)'

share|improve this answer
It is actually running and assigning User ID. So shouldn't I just care about that all? I mean, I asked this question because I wanted to put a switch on the AssignUserId, not make sure that itk was actually working (because I knew) – usr-local-ΕΨΗΕΛΩΝ Oct 2 '12 at 20:08
I don't understand your question then. You asked how you could verify if itk was running - and why your edits weren't showing an error on configtest. I explained how to test your edits and how to test if itk was working ... what else do you want/need to know? – Ben Lessani - Sonassi Oct 2 '12 at 20:20
"How to let Apache test if itk is enabled?". Do I need a different <IfModule> clause? I need this in the case I need to switch to a different MPM because I have several vhosts that would then need to be all modified. Now that I re-read the question I find I missed this part – usr-local-ΕΨΗΕΛΩΝ Oct 2 '12 at 20:43
Ah. Now I understand. Try <IfModule mpm_itk_module> – Ben Lessani - Sonassi Oct 2 '12 at 20:46
This works!!!!! – usr-local-ΕΨΗΕΛΩΝ Oct 3 '12 at 21:10

Your Answer


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.