Hi All,

I need some advice as to how to correctly use Apache in a general way. 
I am writing an application which students will use to do some computer
based monte-carlo experiments here at the UTS. Rather than code a GUI
program I have the all the text which describes the experiment (theory,
procedure, data, analysis etc) as a web pages. Students enter conditions
for the experiment via a form and then click a Run button which fires
off a cgi script in Perl.

I have Apache running and can see pages in /home/httpd/html
At present it all works if I copy all the HTML files into the above
directory and all the cgi ones into the default /home/httpd/cgi-bin
directory. But I really would prefer to develop the app in my own
directory ~/mikel/src/UTS/monte-carlo/
Making a symlink to there dooes not work because of permissions probs.
1. Should I change a conf file and make mikel/src../monte-carlo
allowable as a directory from which to run cgi's?
2. Should I somehow symlink from /home/httpd/html to there and change
permission so it can run?
3. Should I put them in a /mikel/public_html directory?

Should the files in these directories be owned by root or by users
security wise?
I presume if they are owned by users Aapche will still run them as root
which might be dangerous.
If owned by users does that means that they are more accessable by
outsiders to tamper with?
What should the permissions be:
The Apache index.html is set as -rw-r--r--

Eventually these files will be on my Pentium box in my office here and
students will run the exp via a Linux 486 box and enter
http://mypentiumbox/monte-carlo.html into their browser.
Both PCs are hooked up to the net at Uni via ethernet all the time.

The Apache FAQ doesn't cover questions like the above much.

Mike

--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02 9514 1628 
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to