Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

purpose of httpd.exp file / can't load modules

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  MaxRequestsPerChild  
Author Message
JohnnyBosco

External


Since: Nov 10, 2006
Posts: 1



(Msg. 1) Posted: Fri Nov 10, 2006 11:53 am
Post subject: purpose of httpd.exp file / can't load modules
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm trying to understand what the httpd.exp file is used for. I'm
trying to add a module, mod_headers, to my Apache server (I'm running
Apache 2.2.3 on a new, clean Fedora 5 installation) and it's not
working. When I look at the apache/modules directory, all I see is one
file, httpd.exp, instead of a bunch of modules (which is what I
expected to see, based on a book I'm reading). There seems to be no
mention of this file on the apache.org Web site (as far as I can tell),
and Google searches have turned up basically nothing.

This is the line I addded to the httpd.conf file, to try to load the
headers module:

LoadModule headers_module /home/johnb/apache/modules/mod_headers.c

(Note that my Apache ServerRoot is /home/johnb/apache/, and Apache has
been working fine otherwise.)

So basically, I get an error that mod_headers.c can't be found (which I
guess makes sense, since it's clearly not in the directory I
specified). The only place I see this file is in the
httpd-2.2.3/modules/metadata directory, but when I substitute that
directory, it still doesn't work. I get an "invalid ELF header" error
message. Can anyone explain why I don't have a bunch of .so files in
the modules directory? It seems like if I did, this would work.

Oh, also, this is how I installed Apache: I downloaded ver 2.2.3 from
the apache.org Web site, typed ./configure
--prefix=/home/johnb/apache/, make, and then make install.

Thanks in advance for any help.

John

 >> Stay informed about: purpose of httpd.exp file / can't load modules 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Nov 11, 2006 3:39 pm
Post subject: Re: purpose of httpd.exp file / can't load modules [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: purpose of httpd.exp file / can't load modules 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Sat Nov 11, 2006 4:35 pm
Post subject: Re: purpose of httpd.exp file / can't load modules [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> schreef in bericht
news:slrnelbo6e.37n.davideyeahsure@fogg.onlyforfun.net...
> On 2006-11-10, JohnnyBosco DeleteThis @gmail.com <JohnnyBosco DeleteThis @gmail.com> wrote:
>> LoadModule headers_module /home/johnb/apache/modules/mod_headers.c
>
> The modules are usually a .so files, and maybe the LoadModule is
> relative to the ServerRoot directory, so just '/modules/' should be
> enough.
>
IIRC its is either
/headers_module /home/johnb/apache/modules/mod_*.so
or
modules/mod_*.so

Only without the leading slash Apache will assume the given path is relative
to ServerRoot.

HansH
 >> Stay informed about: purpose of httpd.exp file / can't load modules 
Back to top
Login to vote
John B

External


Since: Nov 12, 2006
Posts: 1



(Msg. 4) Posted: Sun Nov 12, 2006 7:08 am
Post subject: Re: purpose of httpd.exp file / can't load modules [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you both for your response, but I'm afraid it doesn't quite
answer my question. (At least I don't think.) I was wondering what the
httpd.exp file is used for, and why I don't have any modules in the
modules directory. I'm pretty sure my syntax for the LoadModule line is
fine. Assuming I get the syntax correct, wouldn't it still be a problem
if there are no modules in the modules directory? How are the modules
supposed to get there? I was under the impression that they would be
there after installation. Can I just copy a module there?

Thanks again,
John


HansH wrote:
> "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> schreef in bericht
> news:slrnelbo6e.37n.davideyeahsure@fogg.onlyforfun.net...
> > On 2006-11-10, JohnnyBosco.RemoveThis@gmail.com <JohnnyBosco.RemoveThis@gmail.com> wrote:
> >> LoadModule headers_module /home/johnb/apache/modules/mod_headers.c
> >
> > The modules are usually a .so files, and maybe the LoadModule is
> > relative to the ServerRoot directory, so just '/modules/' should be
> > enough.
> >
> IIRC its is either
> /headers_module /home/johnb/apache/modules/mod_*.so
> or
> modules/mod_*.so
>
> Only without the leading slash Apache will assume the given path is relative
> to ServerRoot.
>
> HansH
 >> Stay informed about: purpose of httpd.exp file / can't load modules 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
no httpd.pid file - Apache was running up until this afternoon. Now for some reason when I start the server I get "httpd started" but when I stop it I get "httpd (no pid file) not running". Each time I start the server another file appears in /var/run...

What is wrong with this httpd.conf file? - I am setting up apache 2.0 on fedeora core 2. It seems to work but when I put a simple html file in as index.html to test it, I still get the apache documentation page. It will not render the file. The file permission s are 755 so I thought it would work...

No worker file and no worker options in httpd.conf - I have making apache and tomcat working both on port 80. So I installed apache installed tomcat and they are working. Apache running on port 80 and tomcat running on port 8080. Now I build mod_jk.so and placed it in /usr/local/apache/modules added..

Password setup for httpd.conf file - I've added the directives to the Httpd.conf file as per apache tutorial. However, I'm still not getting a popup requesting user name and password. I've created the password file. Do I need to enable this with any other directives? I'm not getting an...

Having issue with adding authentication in the httpd.conf .. - I read the manual (RTFM) and still can't figure out why Apache will not authenticate users. The situtation is this: I have installed "Apache/2.0.49 (Win32) Server at nicodemus Port 80" on my local network. My machine is WinXP. I am able to ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]