Invalid command 'Order' - Httpd Stopped!

principino1984

Verified User
Joined
Oct 10, 2008
Messages
39
Hi, I have this problem.

Tonight I had my httpd stopped because of this errors:

Code:
[Wed Oct 29 00:10:01 2008] [notice] SIGHUP received.  Attempting to restart
...
[Wed Oct 29 00:10:02 2008] [warn] RSA server certificate CommonName (CN) `www.tradeshell.it' does NOT match server name!?
[Wed Oct 29 00:10:02 2008] [warn] Init: SSL server IP/port conflict: www.xxx.it:443 (/usr/local/directadmin/data/users/xxx/httpd.conf:43) vs. www.yyy.it:443 (/usr/local/directadmin/data/users/yyy/httpd.conf:43)
...
 (/usr/local/directadmin/data/users/zzz/httpd.conf:43) vs. www.yyy.it:443 (/usr/local/directadmin/data/users/yyy/httpd.conf:43)
[Wed Oct 29 00:10:02 2008] [warn] Init: SSL server IP/port conflict: www.luiginterlandi.it:443 (/usr/local/directadmin/data/users/qqq/httpd.conf:43) vs. www.yyy.it:443 (/usr/local/directadmin/data/users/yyy/httpd.conf:43)

[Wed Oct 29 00:10:02 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!

If I try to restart httpd from DA I get this error:

sbin/service httpd restart 2>&1

while if I try to start it from shell I get this error:
Syntax error on line 29 of /etc/httpd/conf/httpd.conf
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

This is the lines:

<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>

what can be the problem?

thanks
Marco
 
Order is a standard httpd configuration setting defined for Apache 1.x and for Apache 2.x. That it doesn't work indicates that there's probably a missing LoadModule line. Depending on whether you're running apache 1.x or Apache 2.x, these could either be in the /etc/httpd/conf/httpd.conf file, or one or more of the files in /etc/httpd/conf/extra/.

It appears your apache was working and now isn't. Is that correct? Did you do anything to update or change apache in the meantime? If not, is apache automatically updated by your OS package manager? If the latter, then you should configure your OS package manager so it no longer updates apache, and then reinstall everything either in /usr/local/directadmin/custombuild, or /usr/local/directadmin/customapache, whichever your server uses.

Jeff
 
You do NOT want apache updated by CentOS; if you do it will break.

Are you running yum? If not, then CentOS has not updated apache.

To see if apache RPMs are installed:
Code:
# rpm -qa | grep httpd
# rpm -qa | grep apache
To see if yum has recently updated apache:
Code:
# grep httpd /var/log/yum.log
# grep apache /var/log/yum.log
To see if yum excludes apache from any updates:
Code:
# grep exclude /etc/yum.conf
I don't have apache installed, and I don't remember if the RPMs are called apache or httpd, so I recommend checking for both.

Jeff
 
You do NOT want apache updated by CentOS; if you do it will break.

Are you running yum? If not, then CentOS has not updated apache.

To see if apache RPMs are installed:
Code:
# rpm -qa | grep httpd
# rpm -qa | grep apache
To see if yum has recently updated apache:
Code:
# grep httpd /var/log/yum.log
# grep apache /var/log/yum.log
To see if yum excludes apache from any updates:
Code:
# grep exclude /etc/yum.conf
I don't have apache installed, and I don't remember if the RPMs are called apache or httpd, so I recommend checking for both.

Jeff

I don't have any of this :( should I insert somewhere those lines?

Marco
 
Be more specific. The machine I checked was CentOS4. I haven't checked any of our CentOS 5 machines, but they should be the same or similar.

Exactly what don't you have? The files? Or any results from grep?

Are you typing the # mark? You're not supposed to type that; it's there to let you know you have to run these commands as root. If you don't have to run them as root there's a $ instead of a #.

Jeff
 
Be more specific. The machine I checked was CentOS4. I haven't checked any of our CentOS 5 machines, but they should be the same or similar.

Exactly what don't you have? The files? Or any results from grep?

Are you typing the # mark? You're not supposed to type that; it's there to let you know you have to run these commands as root. If you don't have to run them as root there's a $ instead of a #.

Jeff

yup, I know that I have to run as root, but when I type:

Code:
grep exclude /etc/yum.conf

I dont get anything.

I have Centos 5 64bit with DirectAdmin on it.

Marco
 
I've never done a 64-bit install, but all 32-bit installs I've done (I just checked a CentOS5 server) have an exclude line in their yum.conf file.

Have you checked your /var/log/yum.log file to see what may have been installed or updated? You could have a real problem.

If httpd/apache has been installed or updated by yum then you probably have a problem and will have to add the exclude line, remove whatever's been updated that shouldn't have been, and then install from customapache.

Jeff
 
ok.. in my yum log right now there's no apache updates (since I formatted my server and I made the da staff reinstall my DA).

But still... in my exim.conf there is no line that exclude any kind of yum updates.

Which lines should I write and where?

edit. in my yum.conf i can see...

HTML:
exclude=kernel*

Marco
 
ok.. in my yum log right now there's no apache updates (since I formatted my server and I made the da staff reinstall my DA).

But still... in my exim.conf there is no line that exclude any kind of yum updates.

Which lines should I write and where?

edit. in my yum.conf i can see...

HTML:
exclude=kernel*

Marco

Here's my yum.conf on a 32 bit Centos5 machine.

grep exclude /etc/yum.conf results ;

exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* named*
 
But still... in my exim.conf there is no line that exclude any kind of yum updates.

Nor should there be since exim.conf does not control yum at all.
 
what if I copy this line:

exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* named*

Do you think it'll be better for me?
Marco
 
cool...

not it looks like this:

exclude=kernel* apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* named*

Marco
 
I apologize for the error in my post; I wrote exim.conf when I should have written yum.conf. I've corrected the post.

Jeff
 
Back
Top