LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-25-2003, 03:21 PM   #1
Hal
Member
 
Registered: Oct 2003
Location: East Anglia, England
Distribution: Dapper Drake / Slackware
Posts: 151

Rep: Reputation: 30
Sorry, that Apache test page is at it again.


I have been on Red Hat Linux 9 for a little while now. I posted before about not being able to find the folder with the Apache test page in. I just need a pathname to that folder so I can add my own files and replace that test page!

I have searched high and low for "usr/local/apache/htdocs" or any kind of "htdocs" folder but I don't seem to be getting anywhere.

It is probably a trivial issue to an experienced Linux user, that's why it's so annoying!
 
Old 10-25-2003, 03:35 PM   #2
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Okay I am not exactly a linux guru but..

try the /var/ directory, there might be something in there like "www".

alternativly

su as root

updatedb

locate htdocs
(or index.html or anything you can think relates to apache)

you could also try

locate httpd.conf

or

locate httpd2.conf


then if you find the httpd.conf open it with your favourite text editor and look for the lines serverroot and documentroot or something simmilar.

Hope that helps.




ps. the conf files in mandrake 9.2 are in /etc/httpd/conf/
 
Old 10-25-2003, 03:44 PM   #3
Hal
Member
 
Registered: Oct 2003
Location: East Anglia, England
Distribution: Dapper Drake / Slackware
Posts: 151

Original Poster
Rep: Reputation: 30
Yeah, I'll work on what you said. Thanks for the reply anyway, I am kinda freaking out with Red Hat. I am an ex-windows person so I find it all a bit strange.

I read some of the "I hate Linux" posts that reside in this forum, I can understand what they mean, but I am determined to stick at it.
 
Old 10-25-2003, 06:10 PM   #4
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Arent we all ex windows ?

All I can say is its a steep learning curve, but it IS worth sticking with it. To be honest I went from windows to linux, back to windows then windows/linux dual boot.. over this time you pick up a lot

Now I am running a linux server and have setup everything no problem.

The cool thing is if you ever have a problem there is always someone out there to help or someone has already encountered the problem and wrote a howto on fixing it .. its a great community, which I am proud to be a part of now.
 
Old 10-26-2003, 05:53 PM   #5
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 134

Rep: Reputation: 15
There is a file /etc/httpd/conf/httpd.conf
or httpd2.conf which configures Apache. The location may vary according to distro and depending on which version of Apache you are using In that file there is a line that will read something like:

DocumentRoot /var/www/html/

This tells Apache where you will place your web pages. You can change the default if you want. In that directory is index.shtml which is what you see when you point your browser at 127.0.0.1. Create your own index.html and place it there and see the difference

As for Hal, yes, it can be very frustrating. I am thinking of promoting my status to advanced newbie. I am certainly no expert. I have had a lot of help from a lot of strangers. That is one of the best things about Linux.

ZB
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache test page mpalazzini Linux - Software 2 10-03-2004 10:13 AM
Apache test page mpalazzini Linux - General 2 10-03-2004 10:12 AM
Apache test page mpalazzini Linux - Newbie 4 10-03-2004 12:21 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
Apache test page...Now what? Hal Linux - Newbie 6 10-24-2003 10:46 AM


All times are GMT -5. The time now is 08:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration