Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I would like to know how to stop the error I get when I try to start Apache for the first time. The error states the following: Syntax error on httpd.conf. Invalid command 'DirectoryIndex', perhaps mis-spelled or defined by a module not included in the server configuration. I get the same error with the word 'Order'. What is wrong? This is from a compiled version of Apache.

Kirk,
1) what is the argument of DirectoryIndex ?
2) Order should be order
Check "apachectl configtest" to find configuration syntax mistakes.
No RISK no fun
Frank

Frank,
I am trying to install Apache_1.3.9 version on a Unix system with version 10.2.
I have DirectoryIndex listed as the following:
DirectoryIndex index.html index.shtml index.htm
I get the error I mentioned in my initial post on this site saying there is a sytax error with DirectoryIndex.
The word Order was changed to order and that did not do any good for this word. I comment the line with Order in it and I get a syntax error on the next line stating:
Allow from all.It seems that there are many commands that are not liked by the configtest. And, this httpd.conf file is the one that came with the compiled version.
Thanks!
Kirk

DirectoryIndex directive requires that module mod_dir is loaded.
Try finding a line in httpd.conf similar to this:
LoadModule dir_module mod_dir.soUncomment it!

I found the line you were talking about and it was not even in the binary distribution of httpd.conf. I added a whole bunch of the libexec .so files to the httpd.conf file. Now, I get the following error:
Can't locate API module structure 'log_config_module' in file mod_log_config.so
What does this mean now? Boy, what a headache this is for a Binary distribution that the directions say you should be able to copy into your system and it should run. NOT!
Thanks for your help!

Check if mod_so.c was compiled by "httpd -l"
output should include the following:
Compiled-in modules:
http_core.c
mod_so.c
If not recompile the binary or donload another version.check: "grep log_conf httpd.conf"
output should:
LoadModule config_log_module libexec/mod_log_config.so
AddModule mod_log_config.ccheck if mod_log_config.so is available and the right version
e.g /opt/apache/libexec/mod_log_config.so
"ls -l"will show the size, just compare with another installation of the same version's.No RISK no fun
Frank

![]() |
I need unix help
|
SCO OpenServer 5.0.5 and ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |