You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Baldwin <ba...@email.unc.edu> on 2003/08/18 04:36:43 UTC

[users@httpd] Syntax error on line 340

Hello All --

Hopefully this is an easy question for the 'experienced' out there...

I compiled apache from source.. when trying to start apache using
'apachectl start' I receive the following error:

[root@www apache_1.3.27]# apachectl start
Syntax error on line 340 of /etc/httpd/conf/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

Now.. if I do a 'vi +340 /etc/httpd/conf/httpd.conf' , I see the following

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>

Is there a problem with that?  Looks pretty standard to me!

This is located in ### Section 2: 'Main' server configuration

Any ideas are appreciated!  I hope this isn't a total newbie question :-)

Jeff

+-----------------------------------------------+
|  Jeffery C Baldwin
|  Computer Consultant II
|
|  University of North Carolina - Chapel Hill
|  213 Miller Hall
|  CB# 1105
|  Chapel Hill, NC 27599
|
|  Phone: (919) 843-2725
|  Fax: (919) 966-8928
|  E-Mail: jeff_baldwin at unc dot edu
+-----------------------------------------------+



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Syntax error on line 340

Posted by Robert Andersson <ro...@profundis.nu>.
Brian Richardson wrote:
> This is somewhat of a shot in the dark, but I've made the mistake of
putting
> in 'Order allow, deny' (note the space). I don't see one in your posting
> though, so I'm guessing not.

You're guessing right. If that was the case, the error message wouldn't be
what he got.

To the OP:
Check that you have mod_access loaded. Asuming Apache 2.0, you must either
have it compiled in (do httpd -t (*nix) or apache -t (Windows)), or have an
(uncommented) directive like this in your httpd.conf:
LoadModule access_module modules/mod_access.so

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Syntax error on line 340

Posted by Brian Richardson <br...@cubik.ca>.
On August 17, 2003 08:36 pm, Jeff Baldwin wrote:
> Now.. if I do a 'vi +340 /etc/httpd/conf/httpd.conf' , I see the following
>
> #
> # Controls who can get stuff from this server.
> #
>     Order allow,deny
>     Allow from all
> </Directory>
>
> Is there a problem with that?  Looks pretty standard to me!

This is somewhat of a shot in the dark, but I've made the mistake of putting 
in 'Order allow, deny' (note the space). I don't see one in your posting 
though, so I'm guessing not.

Regards,
Brian

-- 
The cost of feathers has risen, even down is up!
[Public key available at http://www.cubik.ca/~brian/]