Invalid command

After installing apache web server, i added the modules in httpd.conf. On trying to start the sever i get the below mentioned error --
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
./apachectl start: httpd could not be started

Please let me know what to do.
Who is Participating?
samriConnect With a Mentor Commented:
By default the Apache version that comes with most Linux distros (and Win32) will have mod_so (so called DSO) statically compiled into the apache.  If your do the installation from scratch, make sure to at least enable mod_so

./configure --enable-module=so

- more information here:

If you prefer to get more information on DSO:
check error.log and /var/log/messages for more detailed information

What is your OS, and Apache version.

Maybe your apache is not compiled with DSO support.  Check by doing "httpd -l", and see is mod_so is listed.

Btw, You have a duplicate post.  Request for a deletion to the other one.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

lakshminairAuthor Commented:
tahnx a lot for the quick response
no prob.

I'm quite curious to know what do you decide to go? -

o - Rebuild the apache with DSO support, and use apxs to build the module, OR
o - Have the module statically linked into apache (rebuild apache)

lakshminairAuthor Commented:
i rebuild apache with DSO support.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.