Apache+PHP on WinME - was Re: 3rd time lucky? Apache startup woes
Hi all, I've had no luck getting anywhere with this. I asume that the info I provided below was of no use to anyone. Can anyone suggest any additional evidence I can collect? One suggestions was to start httpd within gdb. Can anyone point me at any instructions on how to do this. Ta Gary On Friday 22 November 2002 11:30 am, Gary Stainburn wrote: On Tuesday 19 Nov 2002 9:06 am, Ralf Habacker wrote: [SNIP] #define ERROR_INVALID_HANDLE 6L The rebase could not open the dll. Is this dll still used by any process ? Please make sure, this dll isn't used by any process. gary@LADVENT ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 #define ERROR_GEN_FAILURE 31L Do you have tried ssp. ssp shows you which dll is load onto which address (Unfortunally I don't know if ssp works under winMe) $ ssp -v -d -dll 0x401000 0x44 `cygpath -aw /usr/sbin/httpd.exe ` verbose messages enabled [SNIP] Another possibility is to load apache with gdb and start it. Then you can [SNIP] Ralf Hi Ralf, all I've finally had a chance to have a go with ssp (work keeps getting in the way). Below is the output - sorry but I haven't got a clue what it's saying so I home someone out there can help. I've no idea how to start httpd via gdb so I can't run/capture that data. gary@LADVENT /lib/apache $ ssp -v -d -dll 0x401000 0x44 'cygpath -aw /usr/sbin/httpd.exe' verbose messages enabled stepping disabled; enable via OutputDebugString (ssp on) stepping disabled; enable via OutputDebugString (ssp on) profiling dll usage profiling dll usage prun: [00401000,0044] Running `cygpath -aw /usr/sbin/httpd.exe' load dll bfb7: cmt3.l load dll 70bd: slaidl load dll bff4: ue3.l load dll bfe6: avp3.l load dll bff1: gi2dl load dll 7800: mvr.l load dll 7fbd: sel2dl load dll bff6: kre3.l load dll 6100: cgi1dls create thread ffe71841 at bff92876 kre3.l ODS: d0/0 cYg 610CAAF0 create thread ffe50505 at 61005400 cgi1dls ODS: d0/0 cYgstd 73fd00 d 3 C:\cygwin\usr\sbin\httpd.exe exit thread ffe71841, code=-1 exit thread ffe50505, code=-1 process ffe4ce2d ffe4cc75 exit 0 total cycles: 1, counted cycles: 0 Main-Thread Other-Thread BaseAddr DLL Name 1 100% 0 0% bff6 kre3.l gary@LADVENT /lib/apache $ -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
On Tuesday 19 Nov 2002 9:06 am, Ralf Habacker wrote: [SNIP] #define ERROR_INVALID_HANDLE 6L The rebase could not open the dll. Is this dll still used by any process ? Please make sure, this dll isn't used by any process. gary@LADVENT ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 #define ERROR_GEN_FAILURE 31L Do you have tried ssp. ssp shows you which dll is load onto which address (Unfortunally I don't know if ssp works under winMe) $ ssp -v -d -dll 0x401000 0x44 `cygpath -aw /usr/sbin/httpd.exe ` verbose messages enabled [SNIP] Another possibility is to load apache with gdb and start it. Then you can [SNIP] Ralf Hi Ralf, all I've finally had a chance to have a go with ssp (work keeps getting in the way). Below is the output - sorry but I haven't got a clue what it's saying so I home someone out there can help. I've no idea how to start httpd via gdb so I can't run/capture that data. gary@LADVENT /lib/apache $ ssp -v -d -dll 0x401000 0x44 'cygpath -aw /usr/sbin/httpd.exe' verbose messages enabled stepping disabled; enable via OutputDebugString (ssp on) stepping disabled; enable via OutputDebugString (ssp on) profiling dll usage profiling dll usage prun: [00401000,0044] Running `cygpath -aw /usr/sbin/httpd.exe' load dll bfb7: cmt3.l load dll 70bd: slaidl load dll bff4: ue3.l load dll bfe6: avp3.l load dll bff1: gi2dl load dll 7800: mvr.l load dll 7fbd: sel2dl load dll bff6: kre3.l load dll 6100: cgi1dls create thread ffe71841 at bff92876 kre3.l ODS: d0/0 cYg 610CAAF0 create thread ffe50505 at 61005400 cgi1dls ODS: d0/0 cYgstd 73fd00 d 3 C:\cygwin\usr\sbin\httpd.exe exit thread ffe71841, code=-1 exit thread ffe50505, code=-1 process ffe4ce2d ffe4cc75 exit 0 total cycles: 1, counted cycles: 0 Main-Thread Other-Thread BaseAddr DLL Name 1 100% 0 0% bff6 kre3.l gary@LADVENT /lib/apache $ -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
Hi Jason, On Friday 15 Nov 2002 8:29 pm, Jason Tishler wrote: Gary, On Fri, Nov 15, 2002 at 03:40:07PM +, Gary Stainburn wrote: All I got out was one error line per DLL stating that it was being skipped because it was not rebasable. Are you running on Me? If so, then you can't use my rebase (don't blame me, blame Microsoft). Use Ralf's version instead: http://www.cygwin.com/ml/cygwin/2002-08/msg00703.html Yes, unfortunately I am running WinME, so I downloaded the attachment to the above message. Unfortunately, the make fails as shown below. Can anyone help me here, or point me to a binary distribution I can download? I will certainly give the method below a try once I've got a working rebase program. Gary Ultimately, I will integrate Ralf's rebase functionality into mine. The following is how I recommend rebasing your entire system (i.e., all DLLs installed by setup.exe except for cygwin1.dll): $ # stop all Cygwin processes except for bash $ zegrep -h 'dll$' /etc/setup/*.gz | grep -v 'cygwin1.*.dll' | xargs -n 1 cygpath -wa rebase.lst $ rebase -d -b 0x6800 -o 0x1 $(rebase.lst) $ rm rebase.lst Note that you can append DLLs installed by other means to rebase.lst before calling rebase, if necessary. Jason -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
On Monday 18 November 2002 1:49 pm, Ralf Habacker wrote: Hi Jason, Yes, unfortunately I am running WinME, so I downloaded the attachment to the above message. Unfortunately, the make fails as shown below. Ups, sorry, there are symbolic link in the package, with files are not distributed. Can anyone help me here, or point me to a binary distribution I can download? You can find a binary release of the recent version (0.4) on the http://kde-cygwin/sourceforge.net download area. See http://sourceforge.net/project/showfiles.php?group_id=27249release_id=1229 60 Please report any problems with release. Regards Ralf Hi Ralf, As you can see from the extract below, your rebase has worked (rebase.sh is the script Jason gave earlier in this thread), but I still can't start apache. Anyone got any ideas? Just to remind everyone, I'm running all the latest version packages on WinME running on an Advent 7352 laptop. $ ./rebase.sh ReBaseImage(C:\cygwin\home\gary\usr\X11R6\bin\libdps.dll,67ff) failed with last error = 6 gary@LADVENT ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 /usr/sbin/apachectl start: httpd could not be started gary@LADVENT ~ $ -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
On Thursday 14 Nov 2002 5:10 pm, Stipe Tolj wrote: Gary Stainburn wrote: [snip] apache 1.3.224-5 mod_php 4.2.0-1 the Win32 error 31 means: some device could bot be found in your system. Are you sure it's not the rebase issue?! Please check /usr/doc/Cygwin/php-4.2.0-1.README for more information on how to rebase depending DLLs to make php work on your system. Stipe Hi Stipe, I'd not looked in the PHP README, just the apache one. However, having looked at the file, it simply says to refer to the Cygwin Mailing list for instructions. I've had a look at the archives and found many references to rebase, but can't sus out exactly what I need to do - how to find out what params to pass to rebase etc. Anyone got a link to a good reference I could read? Gary [EMAIL PROTECTED] --- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [EMAIL PROTECTED] Internet: http://www.wapme-systems.de --- wapme.net - wherever you are -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
On Friday 15 Nov 2002 2:01 pm, Jason Tishler wrote: Gary, On Fri, Nov 15, 2002 at 12:32:49PM +, Gary Stainburn wrote: I've had a look at the archives and found many references to rebase, but can't sus out exactly what I need to do - how to find out what params to pass to rebase etc. Anyone got a link to a good reference I could read? Try the following: http://sources.redhat.com/ml/cygwin/2002-07/msg00276.html Jason Hi Jason, it may just be me being thick but I'm still having trouble. I ran the following as a DOS batch, and as a BASH shell script withing Cygwin. All I got out was one error line per DLL stating that it was being skipped because it was not rebasable. I tried running the batch without the libphp..dll entry and still got the errors. I even tried calling rebase directly and only specifying the libphp4.dll on it's own and it did exactly the same. I also tried CDing to \cygwin\usr\bin and \cygwin\lib\apache respectively and that didn't work either. Gary rebase.bat: cd c:\cgwin .\rebase -v -b0x6800 -d cygXpm-X4.dll cygXpm-noX4.dll cygbz2-1.dll cygbz21.0.dll cygcrypto.dll cygcurl-2.dll cygform5.dll cygform6.dll cyggdbm.dll cyghistory4.dll cyghistory5.dll cyghttpd.dll cygiconv-2.dll cygintl-1.dll cygintl-2.dll cygintl.dll cygitcl30.dll cygitk30.dll cygjbig1.dll cygjpeg6b.dll cygltdl-3.dll cygmenu5.dll cygmenu6.dll cygncurses++5.dll cygncurses++6.dll cygncurses5.dll cygncurses6.dll cygpanel5.dll cygpanel6.dll cygpcre.dll cygpcreposix.dll cygpng10.dll cygpng12.dll cygpng2.dll cygpopt-0.dll cygreadline4.dll cygreadline5.dll cygregex.dll cygssl.dll cygtcl80.dll cygtclpip80.dll cygtclreg80.dll cygtiff3.dll cygtk80.dll cygxml2-2.dll cygz.dll ecpg.dll libW11.dll libperl5_6_1.dll libpython2.2.dll mingwm10.dll pgeasy.dll pq++.dll pq.dll tix4180.dll /lib/apache/libphp4.dll -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
Re: 3rd time lucky? Apache startup woes
Hi Igor, On Friday 15 Nov 2002 4:12 pm, Igor Pechtchanski wrote: Gary, I don't know much about rebase, but I do have a few minor comments related to cygwin. See below. [snip] First off, non-cygwin programs will at best see \cygwin\usr\bin as empty, and at worst it won't exist at all. /usr/bin in cygwin is a mount point for /bin, and its contents (which are the same as those of /bin) can only be seen by cygwin programs. Fair enough, I've changed my references to c:\cygwin\bin where required. Secondly, you'll need to post the exact errors you're getting from rebase. One possibility that comes to mind is that the DLLs are in use, and thus rebase fails to write to them. Are you certain you are not running any programs that use these DLLs? Unfortunately, I can't redirect the output from the batch file so, but I'll type example error messages here (I'm also getting another error having fixed a number of errors in the batch - included again below): c:\cygwin\bin\cygtclpip80.dll: skilled because not rebaseable ReBaseImage (C:\cygwin\bin\tix4180.dll) failed with last error = 6 I get the not rebaseable error on the libphp4.dll file. Thirdly, you cannot run the same script as both a batch file and a shell script. The differences between the two scripts may hold a clue as to why it's not working. I understand this and did make the appropriate differences e.g. DOS commands instead of BASH ones, DOS/Unix file format etc. However based on the bit about REBASE not being a Cygwin app, the .sh file has been dumped. Gary rebase.bat V2 c: cd \cygwin\bin c:\cygwin\rebase -v -b 0x6800 -d cygXpm-X4.dll cygXpm-noX4.dll cygbz2-1.dll cygbz21.0.dll cygcrypto.dll cygcurl-2.dll cygform5.dll cygform6.dll cyggdbm.dll cyghistory4.dll cyghistory5.dll cyghttpd.dll cygiconv-2.dll cygintl-1.dll cygintl-2.dll cygintl.dll cygitcl30.dll cygitk30.dll cygjbig1.dll cygjpeg6b.dll cygltdl-3.dll cygmenu5.dll cygmenu6.dll cygncurses++5.dll cygncurses++6.dll cygncurses5.dll cygncurses6.dll cygpanel5.dll cygpanel6.dll cygpcre.dll cygpcreposix.dll cygpng10.dll cygpng12.dll cygpng2.dll cygpopt-0.dll cygreadline4.dll cygreadline5.dll cygregex.dll cygssl.dll cygtcl80.dll cygtclpip80.dll cygtclreg80.dll cygtiff3.dll cygtk80.dll cygxml2-2.dll cygz.dll ecpg.dll libW11.dll libperl5_6_1.dll libpython2.2.dll mingwm10.dll pgeasy.dll pq++.dll pq.dll tix4180.dll cd c:\cygwin\lib\apache c:\cygwin\rebase -v -b 0x6800 -d libphp4.dll [snip] And last of all, judging from Jason's comments on rebasing cygwin1.dll, rebase itself may not be a cygwin program. If it's not, the last entry on the above line will not be recognized as a valid path. Igor -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
3rd time lucky? Apache startup woes
Hi all, I've not received any replies to this one yet. Can anyone help, or at least point me at some resources that may. I'm getting a bit desperate now cos I've got to get this working by Sunday so I can do a demo at the AGM of a charity I'm involved in, so clear simple instructions that even I can understand would be appreciated. Gary -- Forwarded Message -- Subject: starting apache - libphp4 error Date: Wed, 6 Nov 2002 14:14:14 + Hi all, I'm trying to start apache for the first time and I'm getting the following error. I've had a look in the archives and found a thread about a similar problem (same conditions, different Win32 error number) which talks about using rebase. I've looked into rebase and I'm totally list. Here's the output garyladvent ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 /usr/sbin/apachectl start: httpd could not be started. garyladvent ~ $ I'm running on an Advent 5372 laptop running WinME with 128MB RAM and 3GB free. apache 1.3.224-5 mod_php 4.2.0-1 -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 --- -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/ --- -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
repost - starting apache - libphp4 error
Hi all, I'm still having this problem, has anyone got any ideas: -- Forwarded Message -- Subject: starting apache - libphp4 error Date: Wed, 6 Nov 2002 14:14:14 + Hi all, I'm trying to start apache for the first time and I'm getting the following error. I've had a look in the archives and found a thread about a similar problem (same conditions, different Win32 error number) which talks about using rebase. I've looked into rebase and I'm totally list. Here's the output garyladvent ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 /usr/sbin/apachectl start: httpd could not be started. garyladvent ~ $ I'm running on an Advent 5372 laptop running WinME with 128MB RAM and 3GB free. apache 1.3.224-5 mod_php 4.2.0-1 -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 --- -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- 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/
starting apache - libphp4 error
Hi all, I'm trying to start apache for the first time and I'm getting the following error. I've had a look in the archives and found a thread about a similar problem (same conditions, different Win32 error number) which talks about using rebase. I've looked into rebase and I'm totally list. Here's the output garyladvent ~ $ /usr/sbin/apachectl start Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 31 /usr/sbin/apachectl start: httpd could not be started. garyladvent ~ $ I'm running on an Advent 5372 laptop running WinME with 128MB RAM and 3GB free. apache 1.3.224-5 mod_php 4.2.0-1 -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000