INSTALL 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. APACHE INSTALLATION OVERVIEW
  2. Quick Start - Unix
  3. ------------------
  4. For complete installation documentation, see [ht]docs/manual/install.html or
  5. http://httpd.apache.org/docs/2.2/install.html
  6. $ ./configure --prefix=PREFIX
  7. $ make
  8. $ make install
  9. $ PREFIX/bin/apachectl start
  10. NOTES: * Replace PREFIX with the filesystem path under which
  11. Apache should be installed. A typical installation
  12. might use "/usr/local/apache2" for PREFIX (without the
  13. quotes).
  14. * If you are a developer who will be linking your code with
  15. Apache or using a debugger to step through server code,
  16. ./configure's --with-included-apr option may be advantageous,
  17. as it removes the possibility of version or compile-option
  18. mismatches with APR and APR-util code. (Many OSes now
  19. include their own version of APR and APR-util.)
  20. * If you are a developer building Apache directly from
  21. Subversion, you will need to run ./buildconf before running
  22. configure. This script bootstraps the build environment and
  23. requires Python as well as GNU autoconf and libtool. If you
  24. build Apache from a release tarball, you don't have to run
  25. buildconf.
  26. * If you want to build a threaded MPM (for instance worker)
  27. on FreeBSD, be aware that threads do not work well with
  28. Apache on FreeBSD versions before 5.4-RELEASE. If you wish
  29. to try a threaded Apache on an earlier version of FreeBSD,
  30. use the --enable-threads parameter to ./configure in
  31. addition to the --with-mpm parameter.
  32. * If you are building directly from Subversion on Mac OS X
  33. (Darwin), make sure to use GNU Libtool 1.4.2 or newer. All
  34. recent versions of the developer tools on this platform
  35. include a sufficiently recent version of GNU Libtool (named
  36. glibtool, but buildconf knows where to find it).
  37. For a short impression of what possibilities you have, here is a
  38. typical example which configures Apache for the installation tree
  39. /sw/pkg/apache with a particular compiler and flags plus the two
  40. additional modules mod_rewrite and mod_speling for later loading
  41. through the DSO mechanism:
  42. $ CC="pgcc" CFLAGS="-O2" \
  43. ./configure --prefix=/sw/pkg/apache \
  44. --enable-rewrite=shared \
  45. --enable-speling=shared
  46. The easiest way to find all of the configuration flags for Apache 2.2
  47. is to run ./configure --help.
  48. Quick Start - Windows
  49. ---------------------
  50. For complete documentation, see [ht]docs/manual/platform/windows.html or
  51. http://httpd.apache.org/docs/2.2/platform/windows.html.
  52. The Apache/Win32 binaries are primarily distributed as a Windows Installer
  53. package (.msi), and may be available as a .zip file as well. These packages
  54. are named apache-2.2.xx-win32-x86.msi and apache-2.2.xx-win32-x86.zip.
  55. Please choose the .msi package if at all possible.
  56. If you have unpacked a source distribution (named httpd-2.2-xx.zip, without
  57. any -win32-x86 notation) you must compile the package yourself, see the links
  58. mentioned above. Unless you intended to do this, please look again for the
  59. binary package from http://www.apache.org/dist/httpd/binaries/win32/ and
  60. install that .msi (or .zip package, if you must.)
  61. If you have unpacked this binary distribution from the .zip package, you
  62. _must_ edit the conf/httpd.conf file (with notepad or another text editor)
  63. to reflect the correct ServerName, Domain, and directory paths. Search for
  64. the text "@@" to discover what you must edit. To install and start the
  65. service after you have corrected the httpd.conf file, use the command
  66. bin\httpd.exe -k install
  67. bin\httpd.exe -k start
  68. The .msi package configures the httpd.conf file, and installs and starts
  69. the Apache2 service for you. It also installs plenty of useful shortcuts
  70. and the taskbar ApacheMonitor. We strongly encourage you to use it.
  71. Postscript
  72. ----------
  73. The Apache HTTP Server group cannot field user's installation questions.
  74. There are many valuable forums to help you get started. Please refer your
  75. questions to the appropriate forum, such as the Users Mailing List at
  76. http://httpd.apache.org/userslist.html or the usenet newsgroups
  77. comp.infosystems.www.servers.unix or
  78. comp.infosystems.www.servers.ms-windows.
  79. Thanks for using the Apache HTTP Server, version 2.2.
  80. The Apache Software Foundation
  81. http://www.apache.org/