Invalid command ‘TypesConfig’

Ah but the joys of trying to match the missing module with its obtuse apache error. In this case, we tried to use the TypesConfig directive but the module wasn’t loaded at runtime. Here’s the error:

# service httpd configtest
Syntax error on line 107 of /etc/httpd/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module
not included in the server configuration

In this case, we were missing the mime module. You can add that module in your httpd.conf file with the following directive:

LoadModule mime_module modules/mod_mime.so

Happy apaching!

Posted in Apache, Applications | Leave a comment



Invalid command ‘order’

It would be nice if apache told you which module you were missing. Fortunately, there’s the Internets! Hey, this site is on the Internets let’s see if we can help. I just ran ‘service httpd checkconfig’ and received the following error:

# service httpd configtest
Syntax error on line 92 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module 
not included in the server configuration

After a brute force attempt at adding modules, it became clear that I was missing the following module: authz_host_module. I added that in httpd.conf with the following directive:

LoadModule authz_host_module modules/mod_authz_host.so

You can also compile that module into the binary with the following flag: –enable-authz-host  (in most cases that’s compiled by default but I’m using RedHate’s binary so it was necessary to add it at run time).

Posted in Apache, Applications | Leave a comment



  • User AvatarJeff Fulmer { Ninety-five percent of the time, this error occurs because you've configured more simulated users in siege than your web server is configured to handle. If... } – Sep 10, 5:43 AM
  • User AvatarSohan { Hi, Resolved by commenting time parm in siege.rc Cheers } – Sep 09, 11:28 AM
  • User AvatarSohan { Hey, My bad. I resolved the issue by setting default time out parm in siege config. I made to 60s as per my requirement. Cheers, } – Sep 09, 11:26 AM
  • User AvatarSohan { Hey, My bad. I did not understand ordering matters for commands in siege from command line. I tried changing my order of commands and it... } – Sep 09, 11:24 AM
  • User AvatarSohan { Hi, Why the transactions number is always different in siege. Its weird getting always different transaction number when i run with same parameters } – Sep 09, 10:12 AM
  • User AvatarNateDennis { let me start by saying siege is way faster than the other tools i have found on there. excellent job. the one thing that is... } – Sep 09, 9:17 AM