Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to load a module ??

Posted on 2000-04-12
Medium Priority
Last Modified: 2013-12-06
How to load the module (mod_speling) in Linux Red Hat 6.1 using the Apache webserver and make sure that this module is active ??

Note: the server is away .. using Webmin software ..
Question by:mhakim
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 2708762
from the command line.. never used the Webmin software you refered to.

in your /etc/httpd/conf/httpd.conf file, uncomment the LoadModule line for the speling_module and uncomment the AddModule line for mod_speling.c

then, type /etc/rc.d/init.d/httpd restart

mod_speling should be enabled at this point.


Author Comment

ID: 2709121
Need some clarification .. !!!
I was trying to find the file httpd.conf tell i found it in the:


when i open i could not even now what to do to add this mod. !!!
I do not use Linux before and the sytem is far away !!! I do not now how to use a Telent i do ues Windows Commander (FTP) i can download the files then edit it ...etc

Expert Comment

ID: 2709374
Unfortunately, you are going to have to gain some level of Linux proficiency if you want to adminsiter an Apache server running on Linux.  You need to know the basics of editing files, copying files, starting daemons, etc...

munsie's answer is essentially correct.  Usually the httpd.conf file is in /etc/httpd/conf.  However, if someone manually installed Apache ie didn't use an rpm), then the config files could be in /usr/local/apache/conf/ (which is a directory, which  is probably why you couldn't edit it).

You still need to edit the httpd.conf file and add a LoadModule line for mod_speling.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 2709546
To do telnet from a doze box, open a dos prompt, then type 'telnet <machine address>' w/o quotes and with proper data values. I would recommend you use vi over the line (no flames on this please) to edit the file. [Learn to use vi first, or sit down with a vi tutorial in hand].

Expert Comment

ID: 2709584
Using Webmin you may be able to load the Module by accessing the Server > click on Apache Webserver > Re-Configure Known Modules > pick the module out of the list that you wish to apply > stop and restart Apache.

Author Comment

ID: 2711802
Thanks All ..

I am using a Webmin version 0.78 i have take all the setps you told my .. then when i select the (mod_speling) module in the Re-Configure area i only see one button it is (Configure) when i press it (after i select the mod_speling) it take me to the Apache Webserver on the upper right i can see to links (Apply Changes) & (Stop Apache) .. first i click on the (stop Apahce) then nothing happen .. after i have made all the steps again i cick on (aply changes) then it gave me ERROR Failed to apply changes : sh: /usr/local/apache/bin/: is a directory !!
About the answer of Mr. munsie's i was trying to add a comment !! but by mistake i press the Reject links (i am new to this site!!) but i have wrote to him ..(Need some clarification .. !!!) i did not mean to make his answer uncorrect !!! also i have found this HTTPD.CONF files after serching very hard (becuase the server is in another country) & the FTP link is to slow !!
For that i like Mr. munsie or anyone how like to help to answer .. if Mr. munsie cant not answer (becuase of the reject option) just tell me so that i delete this question & ask it again.
About me info in text editing files are very good .. (studying for the MCSE2000) but New to LINUX !!!
about Telenet i have learn how to use it in the Webmin software .. even how to open the File HTTPD.CONF & to save to it.
Only i need to know what should i type in this file !!!! (all things i need to type) becuase i did not find any (LoadModule Line).
& to Mr. sawdoc if you have any idea how to make this Wemmin (ver 0.78) load the Module even with using the Telent in the (Webmin) Just tell me !!!

Thanks every one for your comments ..

Expert Comment

ID: 2711888
okay, quick steps:

1) telnet into your linux box as root.  The prompts are pretty easy, just enter root and your password.

you can use windows telnet, type telnet into the run dialog

2) type:
      cd /usr/local/apache/confg

note the slashes are forward, not backwards

3) type:
      pico httpd.conf

at this point you are in the pico text editor with the httpd.conf file

4) type ctrl-w, and enter speling_module

you should be at a line that looks like this:

# LoadModule speling_module

remove the # on the line... it's a normal text editor, so nothing fancy is needed.

5) type ctrl-w again, and enter mod_speling.c

you should be at a line that looks like this:

# AddModule mod_speling.c

again, remove the #

6) type ctrl-x, answer y to save, and hit enter to accept the filename

at this point, you are back at a command line prompt

7) restart the apache webserver

depending on how it was installed, you may have to run apachectl or /etc/rc.d/init.d/httpd to restart the server.

if it's apachectl, it's probally in /usr/local/apache/bin

if it's the httpd script, it's in /etc/rc.d/init.d

either way, cd into one of those directories (on your machine it's probally the apachectl script), and run it....

you may have to run it like this:

     ./apachectl restart

     -- OR --

     ./httpd restart

or, since you have webmin, you can probally restart the server from there.

at this point, you should be running mod_speling.  exit out of the connection, and close the telnet session.

Some problems you may have:

 * can't telnet in as root
this is a security issue in RedHat.  I don't recommend trying to make it so root can telnet in, just login as another user, and then type 'su -' and enter root's password at the prompt.

 * pico is not installed
not too likely, but it sometimes happens... in this case, you'll need to use vi.  I'm not very good in vi, but here are some basics:

   instead of ctrl-w to search as in pico, type '/mod_speling'... to search again, just type '/'

   to delete a character, type 'x'

   to save and exit, type ':wq'

   if you start typing like you do in a normal editor, you'll most likely mess something up severly.  just stick to the above keypresses and you'll be okay.

btw, i believe you can choose a comment as the answer... i've haven't asked very many questions, so i can't tell you for sure.  I would've given this as a answer, but the question is currently locked.

good luck,

Author Comment

ID: 2712014
Thanks Mr Dennis,

About all the steps it worked fine ..
but about the search for:

# LoadModule speling_module
# AddModule mod_speling.c

Where should i add these files !!!
I have the (LoadModule) under the #Dynamic Shared Object (DSO) Support
Under section One (Global Environment).
& note there is no (AddModule) at all!!!

They are not in the file !!!
About restarting the apache it is easy.

Thanks again,

Note: But how can i give you points !!!

Expert Comment

ID: 2713065
the AddModule line should be in one of the files in your conf directory... you can type the following at the prompt while your in your /usr/local/apache/conf directory:

grep speling *

you should get back the name of the file and the line with them in it... from their, just use pico to edit the file, search for the line and change it

if you don't have the AddModule or LoadModule lines, grep for AddModule and add the line from above (without the '#') at the end of the list.  Do the same for the LoadModule line.

then restart the server

as a small correction, the LoadModule line should be as the following:
LoadModule speling_module  libexec/

but, that shouldn't matter too much because the the LoadModule line should already be in your httpd.conf file.

about the points, i believe you should be able to choose my comment as an answer... but you may have to reject any proposed answers first.. that is, if those answers weren't helpful to you

good luck,

Author Comment

ID: 2714087
Hello again ..

I have typed in the httpd.conf files (using telnet):

LoadModule speling_module  libexec/
AddModule mod_speling.c

I put (Add mod) after (Load mod) becuase AddModule (does not appear in nay conf files)
when i have press Ctrl + x & Y to save the file i have this message:

Cannot open file for writing: Permission denied

What should i do to save these changes can i move the protection of this file.

Thanks ..


Accepted Solution

munsie earned 400 total points
ID: 2714176

AddModule has to be in one of your config files, but I believe (not a 100% sure) that placing it anywhere after the LoadModule will work.

As far as permission denied, are you logged in as root?  If you had to telnet in as someone else, you'll need to type to following at the prompt:
      su -

then enter the root password.  at this point, you should be able to edit and save the file.

if you're not sure who you are logged in as, type 'whoami' at the prompt

good luck,

Author Comment

ID: 2716618

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question