RedHat 9 Apache directory
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;
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?
Typically there is a htdocs folder this is where its probably kept.
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?
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.
The location of the directory is kept in httpd.conf (the apache confi
file) as well as the location of any script directories.
Mine is /var/www/htdocs.
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.
Configuration file directory:
This is confirmed as I have my Red Hat 9 isntalled with Apache 2.0.46 (RPM with the CD).
Have a Linux Problem
Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|