• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

Apache not recognizing httpd.conf commands

I have just upgraded from apache 1.3.28 to apache 1.3.33 with mod_ssl. When I try to start the new apache, I get errors like this:

Syntax error on line 333 of /www/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
/www/bin/apachectl start: httpd could not be started

And this happens for a variety of commands in httpd.conf like Order, Allow, LogFileFormat, etc that all worked fine in 1.3.28.

I configure apache from the mod_ssl source directory using this command:
./configure --with-apache=/usr/local/src/apache_1.3.33 --with-ssl=/usr/local/src/openssl-0.9.7e --prefix=/www --enable-module=ssl --enable-module=all --enable-shared=max --enable-rule=EAPI
 
Then, I do a "make" then "make install" in the apache source directory. Then I try to start it with "/www/bin/apachectl start" and I get that error.
0
becklede
Asked:
becklede
  • 4
  • 3
1 Solution
 
periwinkleCommented:
Check to see if there is a closing brace from before that line....
0
 
beckledeAuthor Commented:
httpd.conf is fine. It works with the older apache, and errors occur on a variety of lines with the new apache.
0
 
periwinkleCommented:
If you are receiving those errors, it would seem that the new version of apache is unhappy with something that the old one was able to deal with...

Did you run apachectl configtest to see if you get anymore information?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
periwinkleCommented:
FWIW, from the error, it sounds like support for a certain module hasn't been created in the new version that was in the old one, or that you have compiled for static module support when dymanic is called for (or vice versa).  Try commenting out modules 1 by 1 to see which one is the one that is in error.  Is there any more information in the error_log?
0
 
beckledeAuthor Commented:
Thanks. Nothing new from configtest or error_log. I've tried misc. module removal, with no luck.Any other ideas? It would seem that a module is missing.
0
 
Alex EneCommented:
could you paste the lines from 320 to 340 from /www/conf/httpd.conf ?
we have to see what exactly apache doesn't like from that file.

Regards,

Alex.
0
 
periwinkleCommented:
Alex - I agree.
0
 
beckledeAuthor Commented:
I think I got it fixed. --enable-sharing=max during config was screwing it up. Here's the line that ultimately worked:
./configure --with-apache=/usr/local/src/apache_1.3.33 --with-ssl=/usr/local/src/openssl-0.9.7e --prefix=/www --enable-module=ssl --enable-module=most --enable-shared=so --enable-rule=EAPI

Thanks for your help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now