Click to See Complete Forum and Search --> : Apache Conf problem.....


thomasgregory
11-18-2002, 11:13 PM
Hello Everyone. I am trying to setup an Apache 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 ./apachectl 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.

z0mbix
11-19-2002, 07:01 AM
What is the DocumentRoot line set to in your httpd.conf file? and what is in the DocumentRoot directory? Also, what permissions are on that directory?

tomgreg2002
11-20-2002, 01:14 AM
Hello.....thanks...got it going.....FYI....I had copied the hpptd.conf file and copied back leaving off the LoadModule directives......ouch!....getting these back took care of it..... T