|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When I try to start apache I get following message, please help me get over
this: Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started The line of the httpd.conf where I receive the error is: Order allow,deny Thank you |
|
#2
|
||||
|
||||
|
The error is probably above that line, so post the lines surrounding it.
//NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
|||
|
|||
|
You can't blindly define Order anywhere in httpd.conf. It usually needs to go within <Directory> or <Location> block.
|
|
#4
|
|||
|
|||
|
Thank you for getting back to me so quickly.
Dear freebsd, I didn't edit anything in httpd.conf. |
|
#5
|
|||
|
|||
|
First off, mod_access is a default module of Apache, therefore "defined by a module not included in the server configuration" shouldn't be the case.
If your Order line is misplaced by default by your OS, just fix it manually. If you didn't edit anything in httpd.conf, just do so now. Rehat specifically, they still don't have a clue what ScriptAlias is by placing Options ExecCGI within the ScriptAlias'ed <Directory> block. |
|
#6
|
|||
|
|||
|
I get the exact same error.
I installed apache 1.3.23 on linux red hat from scratch and I didn't use RPM's. The first time I just used './configure --prefix=/path/to/apache' And I didn't get the 'Order' error. I then decided to try rebuilding it like this : ./configure --prefix=/path/to/apache --enable-module=most --enable=max And I ended up with the 'Order' error in httpd.conf on line 329. I looked at it, and I really can't find anything wrong within the Directory tags. httpd -l gave me : httpd_core.c mod_so.c suexec disabled: Invalid wrapper /usr/local/apache/bin/suexec Here is the segment of the httpd.conf file in which the error occurs: # # This should be changed to whatever you set DocumentRoot to. # <Directory "/usr/local/apache/htdocs"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> Last edited by jamesbond2002 : April 1st, 2002 at 09:29 AM. |
|
#7
|
|||
|
|||
|
Please zip and attach that httpd.conf here.
|
|
#8
|
|||
|
|||
|
freebsd,
I attached the concerning httpd.conf file for you. As mentioned, I didn't edit this httpd.conf file, the error was there right after installing and starting apache 1.3.23 with -enable-module=most --enable-shared=max. Last edited by jamesbond2002 : April 2nd, 2002 at 03:53 AM. |
|
#9
|
|||
|
|||
|
The configure options shouldn't be the cause of that error.
What you can try is to not have any blank line between that or any other <Directory> block. For instance, line 309, 318 and 325 are redundant. Another thing to try is to move your: Code:
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
Another thing to look for, which I don't think it makes any difference is that, you need to trim your ^M at the end of every line (visible in vi). |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > configure apache1.3.23 - SOS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|