[PLUG] Apache problem

Jeme A Brelin jeme at brelin.net
Sat Feb 14 11:38:01 UTC 2004


On Sat, 14 Feb 2004, Jeff Blain wrote:
> On Sat, 2004-02-14 at 11:47, Keith Nasman wrote:
> > On Sat, Feb 14, 2004 at 09:35:01AM -0800, Mike De La Mater wrote:
> > > On Sat, 2004-02-14 at 08:18, Jeff Blain wrote:
> > >
> > > > Syntax error on line 347 of /etc/apache/httpd.conf:
> > > > Invalid command 'Order', perhaps mis-spelled or defined by a module not
> > > > included in the server configuration
> > > > /usr/sbin/apachectl start: httpd could not be started
> > > >
> > > > Here is the relevent lines from httpd.conf that it barfs on.
> > > >
> > > > #
> > > > # Controls who can get stuff from this server.
> > > > #
> > > >  Order allow,deny
> > > >  Allow from all
> > > > </Directory>
> > >
> > > Looks just like the lines in my httpd.conf, Have you checked to be sure
> > > that the "oh" isn't indeed a zero, and that the access module has been
> > > re-loaded, and that the module is in tact?
> > >
> >
> > I think apache is interpreting "Order allow,deny" as a tag. Make sure
> > there is a <Directory> above it.
>
> That is actually one of the first things I tried, but got different
> errors like... Invalid command '<Directory>' Upon looking at other
> apache configs, they are all like what is listed above.

Um, no.  That's not how apache configs work.

Global commands can go outside of directives, but "Order" is not a global
command.  It MUST be contained within a directive... in this case,
enclosed within <Directory foo ></Directory> (where "foo" is some
directory on which you'd like the commands to apply).

Scroll backward from this point in your httpd.conf and see where the next
opening directive is hiding.  If it's a closed directive </Something>,
then you need to open your Directory directive and specify the location to
which it applies.

J.
-- 
   -----------------
     Jeme A Brelin
    jeme at brelin.net
   -----------------
 [cc] counter-copyright
 http://www.openlaw.org




More information about the PLUG mailing list