home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 1999 July
/
www_07_1999.iso
/
prez
/
amiga
/
apachetools.lha
/
README
Wrap
Text File
|
1996-07-02
|
2KB
|
53 lines
Here are some of the tools to help in using Apache. Place them preferably in the
bin: directory (especially perl since most scripts have #!/bin/perl at the top).
1> chmod - Some of you have emailed me complaining that the cgi-bin scripts
cannot be executed. The problem is that lha doesn't archive the proper UNIX
attributes. To make sure a file has the right permissions, try
"chmod o+rx <filename>" or to do all the files in cgi-bin try
"chmod -R o+rx apache:cgi-bin"
2> chown - If you use multiuser, the files in cgi-bin should be owned by http
or root. To change ownership of a file to root, try "chown root <filename>"
or to user http - "chown http <filename>". To change the ownership of all
files in cgi-bin to root, try "chown -R root apache:cgi-bin", likewise
for http.
3> Perl - this is a handy program. The majority of cgi-bin executables are
written in perl. Only the version 4 executable is included in the archive.
To get version 5 or the documentation, check on aminet in dev/lang.
4> Sh - I accidently put a 020 version of sh into the archive. Here is an
older version usable for all amigas. To get the latest version of sh,
get pdksh-bin.lha from dev/ade.
Other Notes
-----------
1> It has come to my attention that a few people want to run httpd in standalone
mode. In order to do so, you need to start it by typing "httpd -X". The reason
for this is because of an inoperable fork(). NOTE: When running in standalone
mode, only one copy of apache will be running. Running apache from inetd allows
you to have multiple requests being serviced at the same time with the penalty
being a slight speed decrease.
2> Running apache in local mode. For most people, you will want to test your
html files using Apache while offline. Because of the way Apache establishes
your local hostname you may get something like the following
"httpd: cannot determine local hostname, Use ServerName to set it manually"
If this happens, change the following line in inet:db/hosts -
127.0.0.1 localhost
to
127.0.0.1 localhost localhost.DOMAINNAME
where DOMAINNAME is in inet:db/resolv.conf in the DOMAIN line. For example
mine is uwaterloo.ca
3> Since some people have figured it out already, any questions can be
sent to the email address jsshephe@undergrad.math.uwaterloo.ca or to the
newsgroup comp.sys.amiga.networking.