This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

apache 1.3.27 binary install problems


I've sucessfully used the build of apache (1.3.24) that came with Cygwin on Windows 2000 (SP-2) but I've struggled getting it to work on Windows XP (SP-1) using the same install files. I've read previous posts about the rebasing issue and they have helped get me past that error, but I still get this error quite often:

$ C:\cygwin\usr\sbin\httpd.exe: *** recreate_mmaps_after_fork_failed

So instead, I tried the latest version from here: http://apache.dev.wapme.net/binaries/latest/apache_1.3.27-i686-whatever-cygwin.targz

These are the problems I encountered trying to get the binary build of 1.3.27 working. I am new to apache so forgive me / correct me if there is something I am doing wrong. Any suggestions are greatly appreciated (my cygwin1.dll file version is 1.3.13):

I unpacked apache in a subdirectory of ~ with:
$ tar xvfz apache_1.3.27-i686-whatever-cygwin.targz
and then ran install-bindist.sh but when starting with either:
$ /usr/local/apache/bin/apachectl start
or
$ /usr/local/apache/bin/httpd
I get this error:
#1) /usr/local/apache/bin/apachectl start: httpd could not be started
And a box comes up that says "This application has failed to start because libhttpd.dll was not found..."
So I added "/usr/local/apache/libexec" to the PATH in /etc/profile so I think this problem is resolved.

Now when I try to start again I get:
#2) Syntax error on line 241 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_vhost_alias.dll': not in list of loaded modules
I compared 1.3.24-5's httpd.conf file to 1.3.27's and the former has the syntax:
AddModule mod_vhost_alias.c
while the later uses ".dll" instead of ".c" so I changed ".dll" to ".c" in that section of httpd.conf. Is that correct? I think it resolved that problem because
I move on to another error when trying to start apache:

#3) httpd: bad user name nobody
In httpd.conf on lines 318 and 319:
User nobody
Group #-1
Those lines weren't commented out but they are in 1.3.24 so I commented them out and httpd starts but with
the rebase error I experienced with 1.3.24:
$ C:\cygwin\usr\local\apache\bin\httpd.exe: *** unable to remap C:\cygwin\usr\lo
cal\apache\libexec\mod_speling.dll to same address as parent -- 0x1270000

So I tried rebasing:
$ cd /lib/apache/new
$ ./rebase.exe -d -b 0x68000000 -o 0x10000 /usr/local/apache/libexec/*.dll
C:\cygwin\usr\local\apache\libexec\libhttpd.dll: new base = 67ff0000, new size = 60000
C:\cygwin\usr\local\apache\libexec\libproxy.dll: new base = 67fc0000, new size = 30000
C:\cygwin\usr\local\apache\libexec\mod_access.dll: new base = 67fa0000, new size = 20000
C:\cygwin\usr\local\apache\libexec\mod_actions.dll: new base = 67f80000, new size = 20000
... etc...
But now when I try to start a box pops up "The application or DLL C:\cygwin\usr\local\apache\libexec\libhttpd.dll
is not a valid Windows image. Please check this against your installation diskette. [OK]"
After reinstalling the DLLs, I tried the newer version of rebase (1.18-1) got this:
$ ./rebase -v -d -b 0x68000000 -o 0x10000 /usr/local/apache/libexec/*.dll
C:\usr\local\apache\libexec\libhttpd.dll: skipped because not rebaseable
C:\usr\local\apache\libexec\libproxy.dll: skipped because not rebaseable
C:\usr\local\apache\libexec\mod_access.dll: skipped because not rebaseable
C:\usr\local\apache\libexec\mod_actions.dll: skipped because not rebaseable

Would I have better luck trying to resolve the "recreate_mmaps_after_fork_failed" error with 1.3.24-5 or should I continue to try to get
1.3.27 runing or try compiling from source? Any ideas?
Thanks,
George


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]