home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / apachetools.lha / README
Text File  |  1996-07-02  |  2KB  |  53 lines

  1. Here are some of the tools to help in using Apache. Place them preferably in the
  2. bin: directory (especially perl since most scripts have #!/bin/perl at the top).
  3.  
  4. 1> chmod - Some of you have emailed me complaining that the cgi-bin scripts
  5. cannot be executed. The problem is that lha doesn't archive the proper UNIX
  6. attributes. To make sure a file has the right permissions, try
  7. "chmod o+rx <filename>" or to do all the files in cgi-bin try
  8. "chmod -R o+rx apache:cgi-bin"
  9.  
  10. 2> chown - If you use multiuser, the files in cgi-bin should be owned by http
  11. or root. To change ownership of a file to root, try "chown root <filename>"
  12. or to user http - "chown http <filename>". To change the ownership of all
  13. files in cgi-bin to root, try "chown -R root apache:cgi-bin", likewise
  14. for http.
  15.  
  16. 3> Perl - this is a handy program. The majority of cgi-bin executables are
  17. written in perl. Only the version 4 executable is included in the archive.
  18. To get version 5 or the documentation, check on aminet in dev/lang.
  19.  
  20. 4> Sh - I accidently put a 020 version of sh into the archive. Here is an
  21. older version usable for all amigas. To get the latest version of sh,
  22. get pdksh-bin.lha from dev/ade.
  23.  
  24. Other Notes
  25. -----------
  26.  
  27. 1> It has come to my attention that a few people want to run httpd in standalone
  28. mode. In order to do so, you need to start it by typing "httpd -X". The reason
  29. for this is because of an inoperable fork(). NOTE: When running in standalone
  30. mode, only one copy of apache will be running. Running apache from inetd allows
  31. you to have multiple requests being serviced at the same time with the penalty
  32. being a slight speed decrease.
  33.  
  34. 2> Running apache in local mode. For most people, you will want to test your
  35. html files using Apache while offline. Because of the way Apache establishes
  36. your local hostname you may get something like the following
  37. "httpd: cannot determine local hostname, Use ServerName to set it manually"
  38. If this happens, change the following line in inet:db/hosts -
  39.  
  40. 127.0.0.1 localhost
  41.  
  42. to
  43.  
  44. 127.0.0.1 localhost localhost.DOMAINNAME
  45.  
  46. where DOMAINNAME is in inet:db/resolv.conf in the DOMAIN line. For example
  47. mine is uwaterloo.ca
  48.  
  49. 3> Since some people have figured it out already, any questions can be
  50. sent to the email address jsshephe@undergrad.math.uwaterloo.ca or to the
  51. newsgroup comp.sys.amiga.networking.
  52.  
  53.