Apache stopped working

hamiltonjm

Verified User
Joined
Feb 27, 2007
Messages
35
When I: service httpd restart, I get:

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

Line 29 - <Limit GET POST OPTIONS PROOFIND>
Line 30- Order allow,deny
Line 31- Allow from all
 
Did you add it or was it there by default?

Are you missing any apache modules?'

mod_access is the module that controls order
 
would an installation of php-pear mess anything up? I yum install php-pear yesterday. Now this happened this morning? I went back and removed php-pear, but httpd still fails. Any ideas?
 
The only thing I can think if is totally reinstall the apache stuff and rename /etc/httpd to /etc/httpd.bak so it makes a new /etc/httpd properly. Hopefully you have nothing custom in any of your apache configs....

Example:

Code:
/sbin/service httpd stop
mv /etc/httpd /etc/httpd.bak
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build apache y
./build php y
# If you use suphp do the following:
./build suphp y
# Might also need to do the following:
./build rewrite_confs
# Do the following to restart the webserver:
/sbin/service httpd restart
 
Got it

Thanks for your help guys. SMtalk got me running in no-time. I had a missing PHP module. No idea how it happened, but thanks to him, I'm up and running. Thank you!
 
Back
Top