Slide 13.11: Using Oracle9.2.0i at the server with an IP address 172.20.2.253 Slide 13.13: Using Perl Home |
shell
Server
cgi-bin
Sub-Directory.shell> mkdir ~userid/public_html/cgi-bin
test.pl
, a Perl CGI script, in the cgi-bin
directory.
The cgi-bin
directories are set up so that they do not serve plain HTML/WML pages; they just execute a given CGI script.
shell> chmod 700 test.pl
test.pl
still can be initiated from the Web without problems and it acts like the owner being executing the script.
shell> chmod 755 ~userid shell> chmod 755 ~userid/public_html shell> chmod 755 ~userid/public_html/* shell> chmod 755 ~userid/public_html/cgi-bin shell> chmod 755 ~userid/public_html/cgi-bin/*†Note that the above commands may not be complete. You have to open all the files in the
public_html
directory.~userid/public_html/out/
, then you need to open that directory. For the example of that directory:
shell> chmod 755 ~userid shell> chmod 755 ~userid/public_html shell> chmod 777 ~userid/public_html/out/†Note that if you write the file to the directory where the CGI script is, this will cause
Internal Server Error
, that is, try NOT to do the following:
shell> chmod 777 ~userid/public_html/cgi-bin/
test.pl
, the results are at the location:
http://people.aero.und.edu/~userid/cgi-bin/test.pl