• Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache setup/config.....please help!  RSS feed

 
Tom Vassell
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone. I am trying to setup an Apache web server and am having problems.....I am using Suse 7.0. I successfully compiled and
installed Apache 2.0.43...It seems like I can successfully start with
/usr/local/apache2/bin >./apachectl start
but when I open netscape to http://localhost/ I get:
--------------------------------------------------
Not Found
The requested URL / was not found on this server.

Apache/2.0.43 Server at 192.168.22.1 Port 80
--------------------------------------------------
Also...I looked at the error log and noticed....
--------------------------------------------------
[Mon Nov 18 17:16:57 2002] [info] Server built: Nov 17 2002 14:33:11
[Mon Nov 18 17:17:22 2002] [error] [client 192.168.22.1] Attempt to serve d
irectory: /usr/local/apache2/htdocs/
--------------------------------------------------
Something that I think may be related...I had trouble configuring the httpd.conf file.
for instance, the directive
-------------------------------
UserDir public_html
--------------------------------
gave me this error when i did ./apachect configtest
--------------------------------------------------
Syntax error on line 13 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'UserDir', perhaps mis-spelled or defined by a
module not included in the server configuration
--------------------------------------------------
I also had problems with the directives:
DirectoryIndex, TypesConfig, LogFormat, CustomLog, AddEncoding, BrowserMatch
These gave similar errors....Any Ideas??? Help!! I am very frustrated. Thank you.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hunh. Normally there is a test file called index.html in the htdocs directory. If that doesn't exist, make one and try again.
In some versions of Apache, the default behavior is to serve the contents of a directory if there is no default file. In this case, either your system is configured so that a request for '/' doesn't map to a request for this file, or this file isn't there and the server doesn't like it.
The UserDir directive allows user accounts on your system to service pages. So if someone enters:

Apache will use UserDir to translate the path and serve the file:

You need to load the module mod_userdir.c to make this work. Here's how it looks in my httpd.conf:

Read through the documentation to see which other modules support which services you want.
[ November 18, 2002: Message edited by: Michael Ernest ]
 
Tom Vassell
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes...you were exactly right....I copied the httpd.conf file to another file and copied back
somehow leaving off the LoadModule directives.....
Thanks for the tip! --- Thomas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!