Re: cygrunsrv and apache
Elfyn McBratney wrote: Stipe, I have the correct permissions (log files owned by system (the SYSTEM user) and even tried with the config files and modules too) and I was still getting error 1062. I ended up giving in to the windows version. Is there any way this can be degugged? If so I'd be happy too help ;-) you should be checking what /var/log/apache/error_log is reporting. Another option is the module rebasing clash. But you said you can start it from shell by hand, with the same setup, right?! Stipe [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 -- 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: cygrunsrv and apache
Does adding the --nodetach to cygrunsrv (I think that's the correct spelling ) help? I had a similar problem with rsyncd and adding it resolved my problem. no, the -k flag tells httpd to keep attached to the shell. This is what cygrunsrv expects. cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty I see here that you may have a problem with the way you installed it. You should be using -a -k to identify the atribute flag -k for httpd. Maybe cygrunsrv does not pass that correcly, and I assume it does not, because it will thing the -k is an argument of cygrunsrv itself. Stipe [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 -- 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: cygrunsrv and apache
On Thu, Jan 16, 2003 at 10:35:21AM +0100, Stipe Tolj wrote: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty I see here that you may have a problem with the way you installed it. You should be using -a -k to identify the atribute flag -k for httpd. Maybe cygrunsrv does not pass that correcly, and I assume it It does. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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: cygrunsrv and apache
This is been covered in many messages on the mailing list. In most cases the problem starts with cygwin being installed for Just Me. If you use cygrunsrv then apache or what have you runs as SYSTEM not your account. Make sure that the mounts for /, /usr/bin, and /usr/lib are system and binary. Make sure that SYSTEM can write /var/run and /var/log Hope this helps jim drash -- 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: cygrunsrv and apache
you should be checking what /var/log/apache/error_log is reporting. Sorry for the late reply. The error_log contains the usual startup/shutdown messages and nothing serious that would indicate that apache is not operating correctly. Another option is the module rebasing clash. But you said you can start it from shell by hand, with the same setup, right?! The fact that apache functions normally from the shell leads me to believe that this is not a dll base issue as the only time I recieve an error (and nothing more) is when I start apache through the service manager. Like I said previously I have the log file(s) and log dir are owned by system with write permission, also the modules are owned by system (the SYSTEM user). If I change this there is no effect and I still recieve error 1062. To install the service I used this: $ cygrunsrv -I httpd -p /usr/sbin/httpd -d CYGWIN httpd \ -a '-k' -e CYGWIN=binmode ntsec ntea My user and group database files are all up-to-date and I can't think of anything else this can be :/ Elfyn [EMAIL PROTECTED] -- 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: cygrunsrv and apache
Corinna Vinschen schrieb: On Thu, Jan 16, 2003 at 10:35:21AM +0100, Stipe Tolj wrote: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty I see here that you may have a problem with the way you installed it. You should be using -a -k to identify the atribute flag -k for httpd. Maybe cygrunsrv does not pass that correcly, and I assume it It does. it does not pass, or it does pass?! Stipe [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 -- 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: cygrunsrv and apache
On Thu, Jan 16, 2003 at 03:17:40PM +0100, Stipe Tolj wrote: Corinna Vinschen schrieb: It does. it does not pass, or it does pass?! Just try it. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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: cygrunsrv and apache
Just try it. Corinna, I'm as busy as you. And if I ask you kindly such a simple question, it's more efficient for both of us to get it answered from you then to make the overhead to try it on my own. When I asked you (and others) to debug an Apache TCP connection problem you were also very picky about that time issue! I think this is not fair! Stipe [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 -- 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: cygrunsrv and apache
On Thu, Jan 16, 2003 at 03:37:46PM +0100, Stipe Tolj wrote: Just try it. Corinna, I'm as busy as you. And if I ask you kindly such a simple question, it's more efficient for both of us to get it answered from you then to make the overhead to try it on my own. It's a simple getopt thingy: `--option foo' takes foo as argument if option expects an argument, regardless of first character of the argument. When I asked you (and others) to debug an Apache TCP connection problem you were also very picky about that time issue! I asked you for a *simple* testcase more than once. You never sent one. Apache is a fairly big chunk of code and it's not quite my job to debug Apache to find a possible fault in Cygwin. You saw Jason's testcase two days ago? How long did it take to fix the error in Cygwin with the help of that testcase? I think this is not fair! Well, I assume Chris meanness is taking me over. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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: cygrunsrv and apache
It's a simple getopt thingy: `--option foo' takes foo as argument if option expects an argument, regardless of first character of the argument. ok, so id does pass. Thanks for pointing this out. When I asked you (and others) to debug an Apache TCP connection problem you were also very picky about that time issue! I asked you for a *simple* testcase more than once. You never sent one. Apache is a fairly big chunk of code and it's not quite my job to debug Apache to find a possible fault in Cygwin. You saw Jason's testcase two days ago? How long did it take to fix the error in Cygwin with the help of that testcase? No, I didn't see that. But as you may imagine setting up a testcase out of apache for one specific problem that is not determined very well is as complicated as checking the underlying TCP connection system. It's not the will that lacks, it's the time -- same as you. I think this is not fair! Well, I assume Chris meanness is taking me over. maybe ;) Stipe [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 -- 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: cygrunsrv and apache - success
Thanks for the tip. That fixed it for me. For posterity, here is everything that I did: 1. Create a new local user named apache. I put it in the Users group. Add it to /etc/passwd using a command like: mkpasswd -l | grep apache /etc/passwd The apache user was assigened to the existing None group so I left it like that. 2. Modify /etc/apache/httpd.conf to set: User apache Group None 3. Run: chown SYSTEM:SYSTEM /var/log/apache/* chown SYSTEM:SYSTEM /var/log/apache.log Check that /var/log/apache/ and /var/run are writable by SYSTEM. 4. Run: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a '-k' -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache No errors were reported. 5. Check the Control Panel\Administrative Tools\Services app (I'm on Win2k) to see if Cygwin apache is running. 6. Check if net stop apache net start apache work. 7. Point your browser at your machine and see if you get the Apache default page. Well that's all I remember doing anyway. Let me know if I'm missing anything. So far it looks like everything is working. Thanks everyone for your help. Jon Stipe Tolj wrote: Jonathan Albrecht schrieb: I've been trying to run apache as a service using cygrunsrv. I haven't changed the httpd.conf and running /usr/sbin/httpd from the command line works fine. Here is what I have done: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I've tried variations on the spaces and quotes in the command line but nothing has worked. Any ideas? check file permissions. cygrunsrv will start the httpd processes as SYSTEM, hence all logging directory have to have write permissions for that user or group. Stipe [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 -- 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: cygrunsrv and apache
On Thu, 16 Jan 2003, Elfyn McBratney wrote: you should be checking what /var/log/apache/error_log is reporting. Sorry for the late reply. The error_log contains the usual startup/shutdown messages and nothing serious that would indicate that apache is not operating correctly. Another option is the module rebasing clash. But you said you can start it from shell by hand, with the same setup, right?! The fact that apache functions normally from the shell leads me to believe that this is not a dll base issue as the only time I recieve an error (and nothing more) is when I start apache through the service manager. Like I said previously I have the log file(s) and log dir are owned by system with write permission, also the modules are owned by system (the SYSTEM user). If I change this there is no effect and I still recieve error 1062. To install the service I used this: $ cygrunsrv -I httpd -p /usr/sbin/httpd -d CYGWIN httpd \ -a '-k' -e CYGWIN=binmode ntsec ntea My user and group database files are all up-to-date and I can't think of anything else this can be :/ Elfyn [EMAIL PROTECTED] Elfyn, Just for kicks, did you try starting Apache from a SYSTEM-owned shell? I posted instructions on how to get one to this list a couple of months ago. It'd be interesting to know whether it works. Certainly would eliminate some variables from the equation (i.e., the username). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- 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: cygrunsrv and apache
Igor, Just for kicks, did you try starting Apache from a SYSTEM-owned shell? I posted instructions on how to get one to this list a couple of months ago. It'd be interesting to know whether it works. Certainly would eliminate some variables from the equation (i.e., the username). I cant seem to get htdig to help me find it... It's awfully slow. I'm going through the archives by hand starting in October '02 so I hope to find it ;-) Elfyn [EMAIL PROTECTED] -- 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: cygrunsrv and apache
Elfyn McBratney wrote: Igor, Just for kicks, did you try starting Apache from a SYSTEM-owned shell? I posted instructions on how to get one to this list a couple of months ago. It'd be interesting to know whether it works. Certainly would eliminate some variables from the equation (i.e., the username). I cant seem to get htdig to help me find it... It's awfully slow. I'm going through the archives by hand starting in October '02 so I hope to find it ;-) To do it with no extra tools, you can do run at hh:mm /interactive cmd, with hh:mm being the next minute. Then you just have to wait for the Task Scheduler to give you your shell when the clock ticks over. Alternatively, http://www.google.co.uk/search?q=cmdasuser is a convenient little program, to accomplish this without the wait. Once you have your cmd shell, just run bash, and go from there. Max. -- 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: cygrunsrv and apache
To do it with no extra tools, you can do run at hh:mm /interactive cmd, with hh:mm being the next minute. Then you just have to wait for the Task Scheduler to give you your shell when the clock ticks over. Cheers Max and Igor, neat little trick. I just tried starting the service as the system user and I get the same error (1062). Again if I run apache from the command line it works... Before I gave in to windows the last time I tried everything imaginable and it still wouldn't budge. I'm in the same situation now :/ I'm about to dig out to my old stash of dll's and reload 1.3.12-4 which is the last time I had apache working as a service. Is there anything I can do to find out where the problem is other than a long old strace? Elfyn [EMAIL PROTECTED] -- 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: cygrunsrv and apache
On Thu, 16 Jan 2003, Elfyn McBratney wrote: Igor, Just for kicks, did you try starting Apache from a SYSTEM-owned shell? I posted instructions on how to get one to this list a couple of months ago. It'd be interesting to know whether it works. Certainly would eliminate some variables from the equation (i.e., the username). I cant seem to get htdig to help me find it... It's awfully slow. I'm going through the archives by hand starting in October '02 so I hope to find it ;-) Elfyn [EMAIL PROTECTED] Elfyn, Here's the message I meant: http://cygwin.com/ml/cygwin/2002-12/msg00613.html Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- 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: cygrunsrv and apache
Elfyn McBratney wrote: To do it with no extra tools, you can do run at hh:mm /interactive cmd, with hh:mm being the next minute. Then you just have to wait for the Task Scheduler to give you your shell when the clock ticks over. Cheers Max and Igor, neat little trick. I just tried starting the service as the system user and I get the same error (1062). Again if I run apache from the command line it works... It shouldn't matter who you issue the service start request as. Did you try running apache from the SYSTEM command line? I don't know much about apache, but when in similar circumstances with ssh, I turn debugging up to maximum, and look at /var/log/servicename.log. Apache has its own logs that it might be worthwhile to look in as well. Max. -- 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: cygrunsrv and apache
Did you try running apache from the SYSTEM command line? Yeah, same as usual... Working!?! I don't know much about apache, but when in similar circumstances with ssh, I turn debugging up to maximum, and look at /var/log/servicename.log. Apache has its own logs that it might be worthwhile to look in as well. I don't think there's a debug command-line options, and if there is it's certainly not documented very well :( BTW I was checking the service log for apache (/var/log/apache.log) after every attempted start and it is still empty and the error_log doesn't doesn't contain anything but the normal startup/shutdown messages. Elfyn [EMAIL PROTECTED] -- 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: cygrunsrv and apache
Elfyn McBratney wrote: Did you try running apache from the SYSTEM command line? Yeah, same as usual... Working!?! I don't know much about apache, but when in similar circumstances with ssh, I turn debugging up to maximum, and look at /var/log/servicename.log. Apache has its own logs that it might be worthwhile to look in as well. I don't think there's a debug command-line options, and if there is it's certainly not documented very well :( BTW I was checking the service log for apache (/var/log/apache.log) after every attempted start and it is still empty and the error_log doesn't doesn't contain anything but the normal startup/shutdown messages. I have just set up apache on my machine to see if I could reproduce this. This is what I did: Install apache from setup.exe $ cygrunsrv -I apache -p /usr/sbin/httpd -a -k -d CYGWIN apache (I have a global CYGWIN=binmode tty ntsec in the system environment) Edit httpd.conf: Set ServerName to silence a warning Set User and Group to #18 (Yes, I'm lazy, and no, I'm not going to be leaving this running!) $ cygrunsrv -S apache View the Apache test page in Internet Explorer. It works! (I did get a Service has not started at one point, but that was when I made a typo in httpd.conf. Info was dumped to /var/log/apache.log) I don't see how this simple success story will help you much, apart from confirming that it is possible with dll 1.3.18-1. Max. -- 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/
cygrunsrv and apache
I've been trying to run apache as a service using cygrunsrv. I haven't changed the httpd.conf and running /usr/sbin/httpd from the command line works fine. Here is what I have done: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I've tried variations on the spaces and quotes in the command line but nothing has worked. Any ideas? Here is my cygcheck -s output: cygcheck -s Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Jan 15 18:17:40 2003 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin D:\Perl\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem C:\cygwin\bin D:\src\ant\bin c:\Program Files\JProbe Suite 4.6.9\bin c:\Program Files\JProbe Suite 4.6.9\bin C:\cygwin\usr\local\bin\i686-pc-cygwin C:\cygwin\home\jonathan\local\bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `tty ntsec nosmbntsec' HOME = `C:\cygwin\home\jonathan' MAKE_MODE = `unix' PWD = `/home/jonathan' USER = `jonathan' Use `-r' to scan registry a: fd N/AN/A c: hd NTFS 10001Mb 57% CP CS UN PA FC Local Disk d: hd NTFS 28160Mb 39% CP CS UN PA FC New Volume e: cd N/AN/A h: net NTFS 525920Mb 25% CP CSPAjonathan s: net NTFS 156327Mb 61% CP CS UN PA FC Nightly Builds w: net NTFS 915312Mb 35% CP CSPAworkroom y: cd N/AN/A C:/cygwin / system binmode D: /d system textmode D:\\binmode/d/binmode system binmode h: /homes/jonathan system binmode C:/cygwin/bin /usr/binsystem binmode C:/cygwin/lib /usr/libsystem binmode W: /workroom/jonathan system binmode . /cygdrive userbinmode,cygdrive Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 114k 2002/12/06 C:\cygwin\usr\local\bin\cygnetpbm10.dll 58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll 54k 2002/01/27 C:\cygwin\bin\cygbz21.0.dll 847k 2003/01/09 C:\cygwin\bin\cygcrypto-0.9.7.dll 644k 2002/12/08 C:\cygwin\bin\cygcrypto.dll 380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll 487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll 50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll 306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll 929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll 21k 2001/06/20 C:\cygwin\bin\cygintl.dll 45k 2002/02/08 C:\cygwin\bin\cygjbig1.dll 119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll 32k 2003/01/04 C:\cygwin\bin\cygltdl-3.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll 179k 2002/07/22 C:\cygwin\bin\cygpng12.dll 170k 2002/01/21 C:\cygwin\bin\cygpng2.dll 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll 177k 2003/01/09 C:\cygwin\bin\cygssl-0.9.7.dll 165k 2002/12/08 C:\cygwin\bin\cygssl.dll 550k 2002/12/19 C:\cygwin\bin\cygtcl83.dll 12k 2002/12/19 C:\cygwin\bin\cygtclpip83.dll 253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll 217k 2002/12/19 C:\cygwin\bin\cygtix4183.dll 830k 2002/12/19 C:\cygwin\bin\cygtk83.dll 633k 2002/07/22 C:\cygwin\bin\cygxml2-2.dll 41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll 46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll 152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll 15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll 50k 2002/03/12 C:\cygwin\bin\cygz.dll 880k 2002/12/25 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.18 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0
Re: cygrunsrv and apache
cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Unless I'm unaware of changes made recently apache does not work correctly as a service (?). It seems to work seemlessly via the shell but not through the service manager. There was talk a while ago about this being a problem with cygwin's socket implementation but as other network daemons (ftp,rsync,ssh,telnet) are still working I'm not so sure. If you search the archives for variations of apache and cygrunsrv you may come up with some answers. Perhaps the package maintainer may wish to take over here... ;-) Elfyn [EMAIL PROTECTED] -- 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: cygrunsrv and apache
Jonathan Albrecht schrieb: I've been trying to run apache as a service using cygrunsrv. I haven't changed the httpd.conf and running /usr/sbin/httpd from the command line works fine. Here is what I have done: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I've tried variations on the spaces and quotes in the command line but nothing has worked. Any ideas? check file permissions. cygrunsrv will start the httpd processes as SYSTEM, hence all logging directory have to have write permissions for that user or group. Stipe [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 -- 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: cygrunsrv and apache
Perhaps the package maintainer may wish to take over here... ;-) yep, he'd like, but he's out of time currently, sorrs ;/ Stipe [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 -- 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: cygrunsrv and apache
Stipe, I have the correct permissions (log files owned by system (the SYSTEM user) and even tried with the config files and modules too) and I was still getting error 1062. I ended up giving in to the windows version. Is there any way this can be degugged? If so I'd be happy too help ;-) Elfyn [EMAIL PROTECTED] - Original Message - From: Stipe Tolj [EMAIL PROTECTED] To: Jonathan Albrecht [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 11:45 PM Subject: Re: cygrunsrv and apache Jonathan Albrecht schrieb: I've been trying to run apache as a service using cygrunsrv. I haven't changed the httpd.conf and running /usr/sbin/httpd from the command line works fine. Here is what I have done: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I've tried variations on the spaces and quotes in the command line but nothing has worked. Any ideas? check file permissions. cygrunsrv will start the httpd processes as SYSTEM, hence all logging directory have to have write permissions for that user or group. Stipe [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 -- 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/ -- 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: cygrunsrv and apache
Does adding the --nodetach to cygrunsrv (I think that's the correct spelling ) help? I had a similar problem with rsyncd and adding it resolved my problem. On Wed, 2003-01-15 at 18:24, Jonathan Albrecht wrote: I've been trying to run apache as a service using cygrunsrv. I haven't changed the httpd.conf and running /usr/sbin/httpd from the command line works fine. Here is what I have done: cygrunsrv -I apache -d Cygwin apache -p /usr/sbin/httpd -a -k -e CYGWIN=ntsec nosmbntsec binmode tty cygrunsrv -S apache cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I've tried variations on the spaces and quotes in the command line but nothing has worked. Any ideas? Here is my cygcheck -s output: cygcheck -s Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Jan 15 18:17:40 2003 { snip } -- David Means Real programs don't eat cache. signature.asc Description: This is a digitally signed message part