Link to home
Start Free TrialLog in
Avatar of becklede
becklede

asked on

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.
Avatar of periwinkle
periwinkle
Flag of United States of America image

Check to see if there is a closing brace from before that line....
Avatar of becklede
becklede

ASKER

httpd.conf is fine. It works with the older apache, and errors occur on a variety of lines with the new apache.
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?
ASKER CERTIFIED SOLUTION
Avatar of periwinkle
periwinkle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
Alex - I agree.
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.