Apache2OnCygwin

From $1

Basic Apache2

  • Extract apache 2.0.53 source to /usr/local/src
  • ./configure --prefix=/usr/local/apache
    • I saw a couple of autoconf "present but not compiled" warnings but ignored them
  • make
  • make install
  • Edit /usr/local/apache/bin/apachectl
    • remove all references to ULIMIT or ulimit
      • You do this because otherwise apachectl gives errors like "ulimit not available on this system"
      • Note: Some people have suspected that this error message causes apache not to start. Not so. If apache doesn't start, check the usual suspects such as no permissions on the log file.
  • apachectl start
  • To make it run as a service, you'll need init running:
    • /usr/bin/init-config

Apache2 with Useful Modules

  • Extract apache 2.0.53 source to /usr/local
  • mv /usr/local/httpd-2.0.53 /usr/local/apache/src
  • ./configure --enable-static-support --prefix=/usr/local/apache --enable-modules=most
    • I couldn't figure out how to build shared modules with cygwin
  • make
  • make install
  • Edit /usr/local/apache/bin/apachectl
    • remove all references to ULIMIT or ulimit
      • You do this because otherwise apachectl gives errors like "ulimit not available on this system"
      • Note: Some people have suspected that this error message causes apache not to start. Not so. If apache doesn't start, check the usual suspects such as no permissions on the log file.
  • apachectl start
  • This seems to work, but it statically links it. Let's see what I can do with DSO support. Hmmm... It appears that the cyg linker doesn't want to create DSOs with unresolved externals. Under apache 1, you could tell configure to build a DLL and a lib for httpd, but this seems to have disappeared with apache2.

Apache2 With Only a Few Modules

  • Extract apache 2.0.53 source to /usr/local
  • mv /usr/local/httpd-2.0.53 /usr/local/apache/src
  • Create a file 'kpk' with
    • ./configure --enable-static-support --prefix=/usr/local/apache --enable-modules="rewrite"
    • make
    • make install
  • bash kpk
  • Edit /usr/local/apache/bin/apachectl
    • remove all references to ULIMIT or ulimit
      • You do this because otherwise apachectl gives errors like "ulimit not available on this system"
      • Note: Some people have suspected that this error message causes apache not to start. Not so. If apache doesn't start, check the usual suspects such as no permissions on the log file.
  • apachectl start
  • This seems to work, but it statically links it. Let's see what I can do with DSO support. Hmmm... It appears that the cyg linker doesn't want to create DSOs with unresolved externals. Under apache 1, you could tell configure to build a DLL and a lib for httpd, but this seems to have disappeared with apache2.
Tags:
none
 
Images (0)
 
Comments (0)
You must login to post a comment.