Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message when I add LoadModule command in httpd.conf file!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all,

In the httpd.conf file I added:

LoadModule gzip_module libexec/mod_gzip.so
<IfModule mod_gzip.c> ..many config lines .. </IfModule>
AddModule mod_gzip.c

However when I restart Apache via httpd, I get the following error messsage:

--------------------
Syntax error on line 148 of /home/Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
--------------------

Does anyone know what's going on? Would I have to recompile Apache to support modules? If so, how can I make sure all my settings are saved and only the executable is changed so that my website is up and away after compile/clean ??

Thanks in advance! Regards, Rick
 
Hi,

If you complied from source then it looks like you did not compile in mod_so which is the module that provides DSO support, i.e. support for dynamically loaded external modules.

You'd have to recompile - something like this :

#./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max
#make
#make install

Make sure you copy your httpd.conf (probably /usr/local/apache/conf/httpd.conf ) somewhere safe first in case it gets overwritten.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top