Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 81207 invoked by uid 500); 27 Jul 2001 19:34:02 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 81195 invoked from network); 27 Jul 2001 19:34:01 -0000 Message-ID: <9110D74F0AB5D11188DC00805F9F50CF0A27715A@nj7460exch004u.ho.lucent.com> From: "Farag, Hany M (Hany)" To: "'rbb@covalent.net'" , "Farag, Hany M (Hany)" , new-httpd@apache.org Subject: RE: Invalid command 'AddModule', perhaps mis-spelled or defined b y a module not included in the server configuration Date: Fri, 27 Jul 2001 15:34:04 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Thank you. I will Hany -----Original Message----- From: Ryan Bloom [mailto:rbb@covalent.net] Sent: Friday, July 27, 2001 3:33 PM To: Farag, Hany M (Hany); new-httpd@apache.org Subject: Re: Invalid command 'AddModule', perhaps mis-spelled or defined b y a module not included in the server configuration The last I heard, apxs did not work properly for Apache 2.0. I have not tried to make it work recently, and I won't have time to look at it until this weekend. Could you please file a bug in bugs.apache.org, and I will try to get it working sometime over the next few days. Ryan On Friday 27 July 2001 12:28, Farag, Hany M (Hany) wrote: > OK, here are the steps i followed : > EXAMPLES > Assume you have an Apache module named mod_foo.c available > which should extend Apache's server functionality. To accom- > plish this you first have to compile the C source into a > shared object suitable for loading into the Apache server > under runtime via the following command: > > $ apxs -c mod_foo.c > gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c > ld -Bshareable -o mod_foo.so mod_foo.o > $ _ > > Then you have to update the Apache configuration by making > sure a LoadModule directive is present to load this shared > object. To simplify this step apxs provides an automatic way > to install the shared object in its "modules" directory and > updating the httpd.conf file accordingly. This can be > achieved by running: > > $ apxs -i -a mod_foo.c > cp mod_foo.so /path/to/apache/modules/mod_foo.so > chmod 755 /path/to/apache/modules/mod_foo.so > [activating module `foo' in /path/to/apache/etc/httpd.conf] > $ _ > > This way a line named > > LoadModule foo_module modules/mod_foo.so > as in http://httpd.apache.org/docs-2.0/programs/apxs.html > > which i then modified the httpd.conf and removed the AddModule ..... > and added LoadModule .... > and added the following directive: > > SetHandler example-handler > > and tried to access from a browser but could not get through? > > Can anybody tell me what should i do to make it work. > > Thanks > Hany > > -----Original Message----- > From: Ryan Bloom [mailto:rbb@covalent.net] > Sent: Friday, July 27, 2001 3:22 PM > To: new-httpd@apache.org; Farag, Hany M (Hany) > Subject: Re: Invalid command 'AddModule', perhaps mis-spelled or defined > b y a module not included in the server configuration > > > > AddModule was removed from Apache 2.0, because it no longer makes sense. > > Since we order modules automatically based on code instead of based on the > order they > are added to the server, we no longer require the AddModule logic. > > Ryan > > On Friday 27 July 2001 12:16, Farag, Hany M (Hany) wrote: > > yep > > > > -----Original Message----- > > From: Jeff Trawick [mailto:trawick@attglobal.net] > > Sent: Friday, July 27, 2001 2:52 PM > > To: new-httpd@apache.org > > Subject: Re: Invalid command 'AddModule', perhaps mis-spelled or defined > > b y a module not included in the server configuration > > > > "Farag, Hany M (Hany)" writes: > > > Hi, > > > Does anybody knows why i'm getting this error: > > > > > > [root@itchy-scratchy bin]# ./apachectl configtest > > > Syntax error on line 947 of /usr/local/apache2/conf/httpd.conf: > > > Invalid command 'AddModule', perhaps mis-spelled or defined by a module > > > > not > > > > > included in the server configuration > > > [root@itchy-scratchy bin]# > > > > Did you enable mod_so? -- ____________________________________________________________________________ _ Ryan Bloom rbb@apache.org Covalent Technologies rbb@covalent.net ---------------------------------------------------------------------------- -