Computing.Net > Forums > Linux > RedHat 9 Apache directory??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

RedHat 9 Apache directory??

Reply to Message Icon

Name: t-bone
Date: July 17, 2004 at 12:50:07 Pacific
OS: Red Hat 9
CPU/Ram: 400mhz/128
Comment:

I installed red hat 9 as a workstation, i then added the apache web server to it, so i can make .jsp applications. I can not seem to find the apache directory?? where would i put the sample .jsp files i make to see them work? Its running find and i get its default page telling me its installed succesfully. the page has this message in it also;

You may now add content to this directory, and replace this page. Note that until you do so, people visiting your website will see this page, and not your content.

what directory is it talking about??

I made a simple .jsp file that shows the date, this file was made by a logged in user, not as root, the jave code in it is <%= java.util.Date() %> along with the html tags and the "hello world" message. were do i put these files?



Sponsored Link
Ads by Google

Response Number 1
Name: charlie1130s
Date: July 18, 2004 at 16:03:48 Pacific
Reply:

Typically there is a htdocs folder this is where its probably kept.

Example
/usr/local/apache/htdocs


0

Response Number 2
Name: t-bone
Date: July 18, 2004 at 17:45:51 Pacific
Reply:

the problem is, there is no apache dir anywhere!!!!!!!!!! not in usr/local/, no where, but i find the default.html pages dir, the page to confirm that your server was set up correctly. Then i found the dir that contains the dirs cg-bin error www and a couple more directories, i believe the default html page was in the error dir. When i run my .jsp page with a simple <%= new java.util.Date() %> it does not print the date, it prints the statement?


0

Response Number 3
Name: charlie1130s
Date: July 19, 2004 at 05:05:22 Pacific
Reply:

Did you compile the Apache yourself or did you use Redhat and install it through one of there RPM's? I am assuming you let Redhat do it, because if you would have done it you would have had to select where you place the directory. I have not used Redhat, When I let Suse install it they installed it in several places. You might need to hit there web site or read the manual to see where they would have put the Apache Directory.


0

Response Number 4
Name: 3Dave
Date: July 19, 2004 at 05:45:16 Pacific
Reply:

The location of the directory is kept in httpd.conf (the apache confi file) as well as the location of any script directories.

$ grep -i documentroot `find / -name httpd.conf`
or a quicker way if your locate database is up to date:
$ grep -i documentroot `locate httpd.conf`

Mine is /var/www/htdocs.


0

Response Number 5
Name: Richie086
Date: July 21, 2004 at 03:17:38 Pacific
Reply:

um.. i may be wrong but i seem to remember
apache defaulting to /var/www/html for the
directory to put your content once you got
it up and running. try making a sample
index.html, save it in /var/www/html and
then refresh in a browser http://your ip
address or vhost name/index.html and you
SHOULD see the index.html file you just
saved in /var/www/html

Also, if the orginal poster happens to be a
linux newbie and is not already using
webmin, i highly reccomend checking it out.
It makes the setup of apache a lot easier
to deal with for someone new to linux.


0

Related Posts

See More



Response Number 6
Name: bsewell
Date: July 21, 2004 at 06:50:33 Pacific
Reply:

Configuration file directory:
/etc/httpd/conf/httpd.conf

DocumentRoot:
/var/www/htdocs

This is confirmed as I have my Red Hat 9 isntalled with Apache 2.0.46 (RPM with the CD).


Ben,
Pentium 4 1.7GHz, 256 Cache
512 DDR RAM PC2700
ATI Radeon 9200SE 128 DDR RAM
Western Digital 80GB 7200 RPM


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: RedHat 9 Apache directory??

redhat 9 imapd directory problem www.computing.net/answers/linux/redhat-9-imapd-directory-problem/22809.html

Redhat 9: user permissions/mysql www.computing.net/answers/linux/redhat-9-user-permissionsmysql/24218.html

RedHat 9 speed www.computing.net/answers/linux/redhat-9-speed/19944.html