Start apache problems

Robiebwoi

New member
Joined
Dec 22, 2010
Messages
4
I have a problem when I start apache, I get this error:

Starting httpd: Syntax error on line 29 of / etc / httpd / conf / httpd.conf:
Invalid command 'Order', Perhaps misspelled or defined by a module note included in the server configuration

On line 29 is this:

<Limit GET POST OPTIONS PROPFIND>
Order allow, deny
Allow from all
 
Did you exactly do a copy and paste?
If yes... remove the space behind the comma.
So in stead of:
Order allow, deny
make it
Order allow,deny

Try if that helps.
 
Did you exactly do a copy and paste?
If yes... remove the space behind the comma.
So in stead of:
Order allow, deny
make it
Order allow,deny

Try if that helps.

Jag har prövat men det fungerar inte. På de övriga Order allow,deny så är där inget kommatecken men det står inget felmeddelande på de.
 
Did you exactly do a copy and paste?
If yes... remove the space behind the comma.
So in stead of:
Order allow, deny
make it
Order allow,deny

Try if that helps.

Excuse me, happened to write in Swedish ...

I've tried but it does not work. On the other Order allow, deny that there are no commas, but there is no error in the.
 
Did you use a GUI making the httpd.conf? If yes you could make another one and then use something like Editpad lite, take care that no layout stuff is added, convert the text to unix.

If it's standard, it should look like this. Please check if you have everything exactly like this, including the little hooks, closing signs etc. Beware of double spaces etc.

Code:
<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
</LimitExcept>
</Directory>
 
I've also found this when Fedora users where using system-config-httpd to make the httpd.conf.
In that case you save your changes in a seperate file.
Then delete /etc/httpd/conf.d/system-config-httpd.conf/
copy your httpd.conf.bak to httpd.conf see if it starts.
If yes, make the changes in the new httpd.conf but don't use system-config-httpd but try an editor like nano or vi.
 
Back
Top