Computing.Net > Forums > Unix > Apache Web Server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Apache Web Server

Reply to Message Icon

Name: Kirk
Date: August 1, 2002 at 01:59:25 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: August 1, 2002 at 04:09:51 Pacific
Reply:

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


0

Response Number 2
Name: Kirk
Date: August 3, 2002 at 03:33:59 Pacific
Reply:

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


0

Response Number 3
Name: Viesturs
Date: August 4, 2002 at 09:28:27 Pacific
Reply:

DirectoryIndex directive requires that module mod_dir is loaded.

Try finding a line in httpd.conf similar to this:
LoadModule dir_module mod_dir.so

Uncomment it!


0

Response Number 4
Name: Kirk
Date: August 6, 2002 at 04:31:10 Pacific
Reply:

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!


0

Response Number 5
Name: Frank
Date: August 7, 2002 at 02:00:32 Pacific
Reply:

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.c

check 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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

I need unix help SCO OpenServer 5.0.5 and ...



Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Apache Web Server

Setting Unix ENV from web server www.computing.net/answers/unix/setting-unix-env-from-web-server/5643.html

Apache www.computing.net/answers/unix/apache-/1168.html

Configuring web server on RedHat 7.2 www.computing.net/answers/unix/configuring-web-server-on-redhat-72/2829.html