Click to See Complete Forum and Search --> : Apache problems (first try at Apache)


frank b
11-26-2002, 06:01 AM
I read the docummentation for the install of Apache version 2.x However when I try to access the default apache page from the serving machine using http://192.168.1.200 I get a 403 error like I don't have proper permissions.

Trying from another computer on the LAN using the local IP of the machine (192.168.1.200) I get nothing.

I thought setting
Listen 192.168.1.200:80 was the ticket but it didn't help.

I'm using RedHat 8.0 if that makes a difference.

EricD
11-26-2002, 09:15 AM
Normaly, you should be able to see the default page without changing anything in httpd.conf

Did you set up a firewall ?

What is your document root set to ?

Is your service running?

service httpd status

Did you make any change in httpd.conf ?

Eric,

frank b
11-26-2002, 12:04 PM
Did not set up a firewall.

Document root meaning the default directory for .html files?
/home/frank/httpd/htdocs

service httpd status returns an error 'command not found'

i started it using /home/frank/httpd/bin/apachectl start and then typing the same line in again gives me an error saying "httpd (pid 9879) already running"

The changes I made in httpd.conf were
NameServer 192.168.1.200

and I set my contact email address

frank b
11-26-2002, 12:40 PM
httpd service was not running

but now I get

httpd (pid 12699 12698 12697 12696 12695 12694 12693 12692 12689) is running...

from menu-->server settings-->services

checked the box for httpd and saved. so now I get the test page when trying to connect from the server.


still get "cannot find server" error when trying from other machines on the LAN

EricD
11-26-2002, 12:50 PM
There are two lines in httpd.conf that mention the document root. It is set by default in :

/var/www/html/

This is where the apache default page is. You should put your html documents in there, though, you could put it anywhere you want. Just make shure that document root is set and pointing in the right place!

Also, make shure that your html dirrectory is readable by others.

ls -l

should give you something like that :

drwxr-xr-x

You have to execute the command <service httpd status> while being root.

EricD
11-26-2002, 12:52 PM
Excellent,

Can you ping your server from other machine?

<ping 192.168.1.200>

frank b
11-26-2002, 08:47 PM
Yes I can ping without any problems. Will check document root and access properties.

Thanks,
Frank


all attributes were
-rw-r--r--