Click to See Complete Forum and Search --> : [Resolved] web server and linux


kawaiiaries
07-14-2004, 06:33 AM
i install apache web server at Redhat 9, and can see the test page.

But when i want to see my html document, it display the message
"Not Found
The requested URL /mrtg/index.html was not
found on this server."

can anyone tell me what when wrong?

bubblenut
07-14-2004, 06:49 AM
Check in your httpd.conf ([root@localhost /]#locate httpd.conf) and look for line which looks similar to this.
DocumentRoot "/home/httpd"
where /home/httpd will be whatever your document root is (where apache serves pages from). The error apache is having that within this directory there is no index.html within a directory called mrtg. Check that the directory exists in your document root and also that an index.html file exists within that directory.

HTH
Bubble

kawaiiaries
07-14-2004, 06:56 AM
i change the

DocumentRoot "/home/httpd" to
DocumentRoot "/var/www/html" at httpd.conf, it's ok?

And i also place my mrtg directory at /var/www/html.

but still not work...

bubblenut
07-14-2004, 07:02 AM
Have you restarted apache?
go to where apache is installed and there will be a directory called bin go into it and there will be a program called apachectl.
First run

./apachectl configtest

to make sure you didn't make a typo in the httpd.conf
and then

./apachectl restart


HTH
Bubble

kawaiiaries
07-14-2004, 07:21 AM
i can see the mrtg index.html page oledi.

but when i try the ./apachectl configtest,
it display the message

"httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK"

what means by that?

and when i want to see my php program which store at directory park-> index.php, it display my php code and to the page?

thank a lot

bubblenut
07-14-2004, 07:27 AM
When you access the page do you have to type the following into the address bar of your browser?

http://127.0.0.1/mrtg/index.html

If you were to set your ServerName you'd be able to access it like

http://localhost/mrtg/index.html

kawaiiaries
07-14-2004, 10:35 PM
hi...thank a lot......
i solve my problem oledi...
thank for help.......