Re: 1.5.19: cygrunsrv problem running Apache under user nobody
Gerry Reno wrote: Today I tried starting httpd with cygrunsrv with similar results: $ cygrunsrv -S httpd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [EMAIL PROTECTED] ~/docs $ ps -efl UID PIDPPID TTY STIME COMMAND greno3404 1 con 22:46:08 /usr/bin/bash nobody1420 1 ? 16:49:41 /usr/sbin/httpd nobody28001420 ? 16:49:42 /usr/sbin/httpd nobody28281420 ? 16:49:42 /usr/sbin/httpd nobody22481420 ? 16:49:42 /usr/sbin/httpd nobody12641420 ? 16:49:42 /usr/sbin/httpd nobody32081420 ? 16:49:42 /usr/sbin/httpd greno27363404 con 16:49:47 /usr/bin/ps As you can see the service does start even though it is reporting that it is not started. Am I configuring something wrong? Good question. You might want to start here: Problem reports: http://cygwin.com/problems.html Also, you need to make sure that the user you created has all the proper permissions httpd needs to run as a service. If it needs to switch user contexts, etc., this is important. I should point out that adding such a new user is a security hole, if that's a concern for you. Perhaps you'll just want to try getting this working with the default SYSTEM user. If that works, you can backtrack from there. You can also consult the openssh ssh-host-config script. You can follow the steps it uses to create a new user with the proper permissions to run sshd on W2K3 (where SYSTEM doesn't have the proper permissions). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.19: cygrunsrv problem running Apache under user nobody
The solution was to install the httpd service with the following args: $ cygrunsrv -I httpd -u nobody -p /usr/sbin/httpd -a -F -d CYGWIN httpd -e CYGWIN=server --shutdown $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service was started successfully. Gerry Reno mailto: grenoml at@ yahoo dot. com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
1.5.19: cygrunsrv problem running Apache under user nobody
I am able to add the user 'nobody' and assign it to group 'Users' and then set local policy in windows so that 'nobody' can 'logon as a service'. I was expecting that I could define a service to start Apache and then use 'net start/stop' to control it. Well, I can define the service with cygrunsrv but when I use net start it is reporting that the service is not started, but, it does actually start. Another problem is that net stop will not stop the service. Here's a command sequence: $ ps -efl UID PIDPPID TTY STIME COMMAND greno3404 1 con 22:46:08 /usr/bin/bash greno10843404 con 03:41:26 /usr/bin/ps [EMAIL PROTECTED] ~/docs $ cygrunsrv -R httpd [EMAIL PROTECTED] ~/docs $ cygrunsrv -I httpd -u nobody -p /usr/sbin/httpd -a -DNO_DETACH -d CYGWIN Apache -e CYGWIN=server --shutdown Enter password of user `RENOG11-WIN01\nobody': Reenter, please: [EMAIL PROTECTED] ~/docs $ net start httpd The CYGWIN Apache service is starting. The CYGWIN Apache service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. [EMAIL PROTECTED] ~/docs $ ps -efl UID PIDPPID TTY STIME COMMAND greno3404 1 con 22:46:08 /usr/bin/bash nobody3524 1 ? 03:42:13 /usr/sbin/httpd nobody14203524 ? 03:42:14 /usr/sbin/httpd nobody16603524 ? 03:42:14 /usr/sbin/httpd nobody21483524 ? 03:42:14 /usr/sbin/httpd nobody11683524 ? 03:42:14 /usr/sbin/httpd nobody28283524 ? 03:42:14 /usr/sbin/httpd nobody25083524 ? 03:42:27 /usr/sbin/httpd greno26243404 con 03:42:31 /usr/bin/ps As you can see httpd did actually start and a check with the browser verfies this. I'm stumped at why net start/stop are not behaving properly. When I go into Services in Windows Control Panel the httpd service is there but shows not started. Any ideas? Gerry Reno mailto: grenoml at@ yahoo dot. com (if mail bounces please retry later - spam rapidly fills up mailbox) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.19: cygrunsrv problem running Apache under user nobody
Today I tried starting httpd with cygrunsrv with similar results: $ cygrunsrv -S httpd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [EMAIL PROTECTED] ~/docs $ ps -efl UID PIDPPID TTY STIME COMMAND greno3404 1 con 22:46:08 /usr/bin/bash nobody1420 1 ? 16:49:41 /usr/sbin/httpd nobody28001420 ? 16:49:42 /usr/sbin/httpd nobody28281420 ? 16:49:42 /usr/sbin/httpd nobody22481420 ? 16:49:42 /usr/sbin/httpd nobody12641420 ? 16:49:42 /usr/sbin/httpd nobody32081420 ? 16:49:42 /usr/sbin/httpd greno27363404 con 16:49:47 /usr/bin/ps As you can see the service does start even though it is reporting that it is not started. Am I configuring something wrong? Gerry Reno mailto: grenoml at@ yahoo dot. com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Fix: Socket problem w/ apache perl cgi (fwd)
A couple of months ago I reported a problem trying to use Apache and perl for web development. The problem was that all attempts to use any kind of a socket failed. I just got this note from Eric Davis. He's worked out the problem and a work-around. He asked me to forward this to the mailing list as he is not subscribed. dar -- Forwarded message -- Date: Wed, 6 Oct 2004 12:18:29 -0700 From: Eric Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Fix: Socket problem w/ apache perl cgi Hi David, I came across your post on the Cygwin mailing list about Perl/CGI not working under Apache. http://www.cygwin.com/ml/cygwin/2004-07/msg01080.html Like you, I was also pulling my hair out on this and figured out the problem/solution. I verified that the problem exists and the solution works for both the Apache and Boa web servers. The following CGI script works from the bash prompt but fails as a CGI program (name - proto_real.cgi): #!/usr/bin/perl print Content-Type: text/html\r\n\r\nhtml\nhead/head\nbody\n; my $num; (undef, undef, $num) = getprotobyname('tcp'); if ($num) { print OK: tcp($num)br/\n; } else { print ERRORbr/\n; } print /body\n/html\n; The problem has to do with (good) Web servers removing all the existing environment variables before a fork and exec of the CGI script, and of course building new environment variables containing all the CGI data. For some reason, Cygwin requires the SYSTEMROOT environment variable to be set for things to work properly. The fix (i.e. without modifying any Web server CGI code) is to create a wrapper around the real script. This wrapper simply sets the SYSTEMROOT environment variable and executes the real script. Here is an example wrapper (name - proto.cgi): #!/usr/bin/perl $ENV{SYSTEMROOT} = C:\\WINDOWS; exec 'proto_real.cgi' That should do it. With this, I can now write CGI code using Apache or Boa under the Cygwin environment. So using DBI, DBD::mysql, DBD::mysqlPP, IO::Socket, etc, now works as expected... all of which I have used/tested under Cygwin/Apache/Perl/CGI. Lastly, could you please post this as a reply to your original question on the Cygwin mailing list. I'm not on that list and don't want to subscribe just to post this. Good luck! - eric -- Eric Davis http://www.foobargeek.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Fix: Socket problem w/ apache perl cgi (fwd)
Yup, that's a known issue. It's not actually Cygwin that requires the 'SYSTEMROOT' environment variable setting. It's winsock. :-( Larry At 04:05 PM 10/6/2004, you wrote: A couple of months ago I reported a problem trying to use Apache and perl for web development. The problem was that all attempts to use any kind of a socket failed. I just got this note from Eric Davis. He's worked out the problem and a work-around. He asked me to forward this to the mailing list as he is not subscribed. dar -- Forwarded message -- Date: Wed, 6 Oct 2004 12:18:29 -0700 From: Eric Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Fix: Socket problem w/ apache perl cgi Hi David, I came across your post on the Cygwin mailing list about Perl/CGI not working under Apache. http://www.cygwin.com/ml/cygwin/2004-07/msg01080.html Like you, I was also pulling my hair out on this and figured out the problem/solution. I verified that the problem exists and the solution works for both the Apache and Boa web servers. The following CGI script works from the bash prompt but fails as a CGI program (name - proto_real.cgi): #!/usr/bin/perl print Content-Type: text/html\r\n\r\nhtml\nhead/head\nbody\n; my $num; (undef, undef, $num) = getprotobyname('tcp'); if ($num) { print OK: tcp($num)br/\n; } else { print ERRORbr/\n; } print /body\n/html\n; The problem has to do with (good) Web servers removing all the existing environment variables before a fork and exec of the CGI script, and of course building new environment variables containing all the CGI data. For some reason, Cygwin requires the SYSTEMROOT environment variable to be set for things to work properly. The fix (i.e. without modifying any Web server CGI code) is to create a wrapper around the real script. This wrapper simply sets the SYSTEMROOT environment variable and executes the real script. Here is an example wrapper (name - proto.cgi): #!/usr/bin/perl $ENV{SYSTEMROOT} = C:\\WINDOWS; exec 'proto_real.cgi' That should do it. With this, I can now write CGI code using Apache or Boa under the Cygwin environment. So using DBI, DBD::mysql, DBD::mysqlPP, IO::Socket, etc, now works as expected... all of which I have used/tested under Cygwin/Apache/Perl/CGI. Lastly, could you please post this as a reply to your original question on the Cygwin mailing list. I'm not on that list and don't want to subscribe just to post this. Good luck! - eric -- Eric Davis http://www.foobargeek.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Fix: Socket problem w/ apache perl cgi (fwd)
On Thu, Oct 07, 2004 at 03:06:02AM +0200, Reini Urban wrote: Larry Hall schrieb: Yup, that's a known issue. It's not actually Cygwin that requires the 'SYSTEMROOT' environment variable setting. It's winsock. :-( Known Issue. How I hate that word! Ok, I'll setup my private wikipage on just a wiki which will suite me. (and which allows it). Huh? You weren't a participant in this thread but you are responding as if there was an issue here that you needed to know. What does this have to do with anything? Is this in reference to your POSIX compliance thread? I will keep you informed then, so that you can discuss it on the mailing-list. This is important for us to know because...? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Fix: Socket problem w/ apache perl cgi (fwd)
Christopher Faylor schrieb: On Thu, Oct 07, 2004 at 03:06:02AM +0200, Reini Urban wrote: Larry Hall schrieb: Yup, that's a known issue. It's not actually Cygwin that requires the 'SYSTEMROOT' environment variable setting. It's winsock. :-( Known Issue. How I hate that word! Ok, I'll setup my private wikipage on just a wiki which will suite me. (and which allows it). Huh? You weren't a participant in this thread but you are responding as if there was an issue here that you needed to know. Yes, astonishing, but sometimes a little bit of thinking in a broader context than the current thread is required. You asked me to collect the known issues topics, remember? What does this have to do with anything? Is this in reference to your POSIX compliance thread? Obviously. The main part of the POSIX compliance had nothing to do with POSIX, just with unexpected behaviour aka Known Issues. I will keep you informed then, so that you can discuss it on the mailing-list. This is important for us to know because...? ...because you wanted to keep a known issues discussion on the mailing list. besides in the users guide on FAQ as I assume. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Socket problem w/ apache perl cgi - and mysql
No, actually it's not limited to mysql, although that is what I was originally trying to do. I have also tried the same code attempting to connect to port 80 on localhost - which ought to work. I've also tried port 110 at my isp which ought to work. Both work from the bash prompt. Neither works when running under apache/cgi. Any other ideas worth trying? Is there any way to make sure I have sufficient priviledges? dar -Original Message- From: Pablo Marin Garcia [mailto:[EMAIL PROTECTED] Sent: Saturday, July 31, 2004 02:46 PM To: [EMAIL PROTECTED] Subject: Re: Socket problem w/ apache perl cgi - and mysql On Fri, 31 Jul 2004, Igor Pechtchanski wrote: [david] I have a snippet of perl code that runs fine at the bash prompt but fails when run under apache as a cgi app. Hello Igor and David I have had also the same problem one month ago and I was unable to solve it and ended using the windows IIS. I guess that David is using mysql (port 3306 by default). In my case (and probably david if he is using mysql) the problem is not the apache itself. My apache works ok and the cgi also. ONLY fails trying to connect to the mysql. My scripts run ok outside the apache but fail inside the cygwin apache (in my unix machines run ok). I am using the cygwin mysql client with the w32 mysql server. The same happens if I am using the w32 apache using the cygwin perl-cygwin mysql client. ERROR: - EXCEPTION - MSG: Could not connect to database xx user yy using [DBI:mysql:database=xx;host=127.0.0.1;port=3306] as a locator ** Can't create TCP/IP socket (1) ** -- At a guess, you're getting this because Apache runs as a service (i.e., the user, nobody by default, may not have enough rights). Igor -- In my case, I am NOT running httpd as as service. It has been started from a shell login as windows admin user. From ps, the httpd is running with my user UID I would apreciate if someone could point me out where I could found useful info to try to solve this problem. should I have to add mysql and apache usr and group to my password and group files as in unix? Apart of the cygwin utilities section in the user guide, someone knows where can i learn more about setting privilegies in cygwin in order to run services in a safe mode (or at least not quite unsafe). regards. --- versions: perl5.8.2-1 apache 1.3.29-2 mysql Ver 12.22 Distrib 4.0.20, for pc-cygwin (i686) Server version: 4.0.20a-debug 653k 2004/05/17 c:\mysql\bin\cygwinb19.dll - os=4.0 img=1.0 sys=4.0 cygwinb19.dll v0.0 ts=1998/7/15 18:50 $ uname -a CYGWIN_NT-5.1 argyrodes 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin . / __ \ / __ \ \ | ///\\\ | / \ | ///\\\ | / \ \_(())_/ /\ \_(())_/ / \__ ((##)) __/ \__ ((##)) __/ / \/ \ / | oo | \/ | oo | \ | | !! | | | | !! | | \/\\|// \/ (o o) . .-. .-. .-. .-. .-. .-oOOo~(_)~oOOo-. .-. .-. .-. .-. |X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ / \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \||| `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Socket problem w/ apache perl cgi - and mysql
On Fri, 31 Jul 2004, Igor Pechtchanski wrote: [david] I have a snippet of perl code that runs fine at the bash prompt but fails when run under apache as a cgi app. Hello Igor and David I have had also the same problem one month ago and I was unable to solve it and ended using the windows IIS. I guess that David is using mysql (port 3306 by default). In my case (and probably david if he is using mysql) the problem is not the apache itself. My apache works ok and the cgi also. ONLY fails trying to connect to the mysql. My scripts run ok outside the apache but fail inside the cygwin apache (in my unix machines run ok). I am using the cygwin mysql client with the w32 mysql server. The same happens if I am using the w32 apache using the cygwin perl-cygwin mysql client. ERROR: - EXCEPTION - MSG: Could not connect to database xx user yy using [DBI:mysql:database=xx;host=127.0.0.1;port=3306] as a locator ** Can't create TCP/IP socket (1) ** -- At a guess, you're getting this because Apache runs as a service (i.e., the user, nobody by default, may not have enough rights). Igor -- In my case, I am NOT running httpd as as service. It has been started from a shell login as windows admin user. From ps, the httpd is running with my user UID I would apreciate if someone could point me out where I could found useful info to try to solve this problem. should I have to add mysql and apache usr and group to my password and group files as in unix? Apart of the cygwin utilities section in the user guide, someone knows where can i learn more about setting privilegies in cygwin in order to run services in a safe mode (or at least not quite unsafe). regards. --- versions: perl5.8.2-1 apache 1.3.29-2 mysql Ver 12.22 Distrib 4.0.20, for pc-cygwin (i686) Server version: 4.0.20a-debug 653k 2004/05/17 c:\mysql\bin\cygwinb19.dll - os=4.0 img=1.0 sys=4.0 cygwinb19.dll v0.0 ts=1998/7/15 18:50 $ uname -a CYGWIN_NT-5.1 argyrodes 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin . / __ \ / __ \ \ | ///\\\ | / \ | ///\\\ | / \ \_(())_/ /\ \_(())_/ / \__ ((##)) __/ \__ ((##)) __/ / \/ \ / | oo | \/ | oo | \ | | !! | | | | !! | | \/\\|// \/ (o o) . .-. .-. .-. .-. .-. .-oOOo~(_)~oOOo-. .-. .-. .-. .-. |X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ / \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \||| `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Socket problem w/ apache perl cgi
I have a snippet of perl code that runs fine at the bash prompt but fails when run under apache as a cgi app. === #!/usr/bin/perl use strict; use IO::Socket; print Content-type: text/plain\n\n; my $socket = IO::Socket::INET-new(PeerAddr = 127.0.0.1, PeerPort = 3306, PeerProto = tcp, PeerType = SOCK_STREAM); my $errno = 0; if (!$socket) { $errno += $!; print Could not connect: $!\n; print errno = $errno\n; } else { print socket = $socket\n; } ==+ Under bash I get this: = Content-type: text/plain socket = IO::Socket::INET=GLOB(0xa1843c4) = Under apache/cgi I get this: = Could not connect: Operation not permitted errno = 1 = The standard apache test page comes up fine. setup is - Windows XP - cygwin was updated as of yesterday the 29th - httpd.conf has not been modified - passwd and group were generated by the appropriate tools and have not been modified - Both perl and apache were downloaded and not built from source. - I did install the dbi and dbd_mysql modules from cpan. apache 1.3.29-2 perl5.8.2-1 I can send a full cygcheck.out if warrented. Any help appreciated. dar -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Socket problem w/ apache perl cgi
On Fri, 30 Jul 2004, David A. Rogers wrote: I have a snippet of perl code that runs fine at the bash prompt but fails when run under apache as a cgi app. === #!/usr/bin/perl use strict; use IO::Socket; print Content-type: text/plain\n\n; my $socket = IO::Socket::INET-new(PeerAddr = 127.0.0.1, PeerPort = 3306, PeerProto = tcp, PeerType = SOCK_STREAM); my $errno = 0; if (!$socket) { $errno += $!; print Could not connect: $!\n; print errno = $errno\n; } else { print socket = $socket\n; } ==+ Under bash I get this: = Content-type: text/plain socket = IO::Socket::INET=GLOB(0xa1843c4) = Under apache/cgi I get this: = Could not connect: Operation not permitted errno = 1 = The standard apache test page comes up fine. setup is - Windows XP - cygwin was updated as of yesterday the 29th ...from which mirror? It does matter. Short of the cygcheck -svr output, the output of uname -a is the best way to show your Cygwin version. - httpd.conf has not been modified - passwd and group were generated by the appropriate tools and have not been modified - Both perl and apache were downloaded and not built from source. - I did install the dbi and dbd_mysql modules from cpan. apache 1.3.29-2 perl5.8.2-1 I can send a full cygcheck.out if warrented. Any help appreciated. dar At a guess, you're getting this because Apache runs as a service (i.e., the user, nobody by default, may not have enough rights). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing. -- Dr. Jubal Harshaw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Socket problem w/ apache perl cgi
uname -a = CYGWIN_NT-5.1 Thor 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin I run apache from the command line like this: /usr/sbin/apachectl start cygwin=ntsec Windows-wise I have administrator priviledges. I have attached cygcheck dar On Fri, 30 Jul 2004, Igor Pechtchanski wrote: On Fri, 30 Jul 2004, David A. Rogers wrote: I have a snippet of perl code that runs fine at the bash prompt but fails when run under apache as a cgi app. === #!/usr/bin/perl use strict; use IO::Socket; print Content-type: text/plain\n\n; my $socket = IO::Socket::INET-new(PeerAddr = 127.0.0.1, PeerPort = 3306, PeerProto = tcp, PeerType = SOCK_STREAM); my $errno = 0; if (!$socket) { $errno += $!; print Could not connect: $!\n; print errno = $errno\n; } else { print socket = $socket\n; } ==+ Under bash I get this: = Content-type: text/plain socket = IO::Socket::INET=GLOB(0xa1843c4) = Under apache/cgi I get this: = Could not connect: Operation not permitted errno = 1 = The standard apache test page comes up fine. setup is - Windows XP - cygwin was updated as of yesterday the 29th from which mirror? It does matter. Short of the cygcheck -svr output, the output of uname -a is the best way to show your Cygwin version. - httpd.conf has not been modified - passwd and group were generated by the appropriate tools and have not been modified - Both perl and apache were downloaded and not built from source. - I did install the dbi and dbd_mysql modules from cpan. apache 1.3.29-2 perl5.8.2-1 I can send a full cygcheck.out if warrented. Any help appreciated. dar At a guess, you're getting this because Apache runs as a service (i.e., the user, nobody by default, may not have enough rights). Igor Cygwin Configuration Diagnostics Current System Time: Fri Jul 30 09:48:41 2004 Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin C:\cygwin\bin c:\j2sdk\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Sonic\MyDVD c:\Program Files\Common Files\Adaptec Shared\System c:\AppsDev\mysql\bin c:\AppsDev\ant\bin z:\rosetta\lib c:\home\bin c:\clearcase\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 1007(darogers) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1007(darogers) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS CYGWIN = `ntsec' HOME = `c:\home' MAKE_MODE = `unix' PWD = `/c/home' USER = `darogers' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' ANT_HOME = `C:\AppsDev\ant' APPDATA = `C:\Documents and Settings\darogers\Application Data' CLIENTNAME = `Console' COLORFGBG = `15;default;0' COLORTERM = `rxvt-xpm' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `THOR' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' DISPLAY = `:0' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\darogers' HOSTNAME = `Thor' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' JAVA_HOME = `c:\j2sdk' JED_ROOT = `c:\appsdev\jed' LOGONSERVER = `\\THOR' LS_COLORS = `no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0209' PROGRAMFILES = `C:\Program Files' PROMPT_COMMAND = `echo -ne \033]0;Rxvt: ${PWD}\007' PS1 = `[\W]$' SESSIONNAME = `Console' SHLVL = `1' SUPERSECRET = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\temp' TERM = `xterm' TMP = `c:\temp' USERDOMAIN = `THOR' USERNAME = `darogers' USERPROFILE = `C:\Documents and Settings\darogers' WINDIR = `C:\WINDOWS' WINDOWID = `168100160' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1'
Re: Problem with apache+Win2k+SP4
Sergiy Zuban wrote: Hello. I'm using Win2k(RU) + SP4 + cygwin dll 1.5.5-1. After installing SP4 my apache-1.3.24-5 from cygwin distributive works not properly: after starting, restarting, stopping CPU usage on my Pentium-III-450 sometimes rise up to 100%. So I have no choice -- i need to restart my Win2k. Problem is not in my computer. (I have this problem on another computer with Win2k+SP4). I've tried to recompile apache (used apache-1.3.27) --- absolutely the same bug. My httpd.conf attached. How can I fix this bug ? try to identify which routine takes the CPU usage so high. BTW, (Corinna and others). Do we have any purifying tools for runtime analyzing for Cygwin? I'm thinking of some beasts similar like 'valgrind' for Linux? Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Problem with apache+Win2k+SP4
Hello. I'm using Win2k(RU) + SP4 + cygwin dll 1.5.5-1. After installing SP4 my apache-1.3.24-5 from cygwin distributive works not properly: after starting, restarting, stopping CPU usage on my Pentium-III-450 sometimes rise up to 100%. So I have no choice -- i need to restart my Win2k. Problem is not in my computer. (I have this problem on another computer with Win2k+SP4). I've tried to recompile apache (used apache-1.3.27) --- absolutely the same bug. My httpd.conf attached. How can I fix this bug ? Best regards, Sergiy Zuban
Problem with apache+Win2k+SP4 [my httpd.conf]
sorry. I forget to attach my httpd.conf. - ServerType standalone ServerRoot /usr/local/apache PidFile /usr/local/apache/logs/httpd.pid ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 0 Port 80 User sezal Group #-1 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache/htdocs ServerName localhost Directory / Options FollowSymLinks AllowOverride None /Directory Directory /usr/local/apache/htdocs Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all /Directory IfModule mod_userdir.c UserDir public_html /IfModule IfModule mod_dir.c DirectoryIndex index.html /IfModule AccessFileName .htaccess Files ~ ^\.ht Order allow,deny Deny from all Satisfy All /Files UseCanonicalName On IfModule mod_mime.c TypesConfig /usr/local/apache/conf/mime.types /IfModule DefaultType text/plain IfModule mod_mime_magic.c MIMEMagicFile /usr/local/apache/conf/magic /IfModule HostnameLookups Off ErrorLog /usr/local/apache/logs/error_log LogLevel warn LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog /usr/local/apache/logs/access_log common ServerSignature On IfModule mod_alias.c Alias /icons/ /usr/local/apache/icons/ Directory /usr/local/apache/icons Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory Alias /manual/ /usr/local/apache/htdocs/manual/ Directory /usr/local/apache/htdocs/manual Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all /Directory ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/ Directory /usr/local/apache/cgi-bin AllowOverride None Options None Order allow,deny Allow from all /Directory /IfModule IfModule mod_autoindex.c IndexOptions FancyIndexing AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t /IfModule IfModule mod_mime.c AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage he .he AddCharset ISO-8859-8 .iso8859-8 AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage kr .kr AddCharset ISO-2022-KR .iso-kr AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage ltz .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .sv AddLanguage cz .cz AddLanguage ru .ru AddLanguage zh-tw .tw AddLanguage tw .tw AddCharset Big5 .Big5.big5 AddCharset WINDOWS-1251 .cp-1251 AddCharset CP866.cp866 AddCharset ISO-8859-5 .iso-ru AddCharset KOI8-R .koi8-r AddCharset UCS-2.ucs2 AddCharset UCS-4.ucs4 AddCharset UTF-8.utf8 IfModule mod_negotiation.c LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw /IfModule AddType application/x-tar .tgz AddType image/x-icon .ico /IfModule IfModule mod_setenvif.c BrowserMatch Mozilla/2 nokeepalive BrowserMatch MSIE 4\.0b2; nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch RealPlayer 4\.0 force-response-1.0 BrowserMatch Java/1\.0 force-response-1.0 BrowserMatch JDK/1\.0 force-response-1.0 /IfModule
Re: Problem Running Apache through Cygwin
Hallo Sergio, [Sun Jun 15 22:07:03 2003] [alert] (22)Invalid argument: setuid: unable to change to uid: 65535 Apache tries to change to a non existing user. Change this in your httpd.conf #User nobody #Group #-1 e.g to: User SYSTEM Group SYSTEM or create a user Apache and a group Services. See the Cygwin docs what rights the group Services should have to run services. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem Running Apache through Cygwin
Dave Fletcher wrote: Hello all. This week I have had to reinstall Windows 2000 (due to a problem unrelated to Cygwin) and was suprised to find files in my Windows home directory (SSH stuff) and in my cygwin home still owned by the previous user with the same name. I cannot delete or modify these files, even logged in as Administrator. Tried chown -R as Administrator, and that still did not seem to help. Of course, I also checked the regular Windows GUI but even as Administrator the controls for changing user settings are disabled. I checked the FAQ and docs, but an easy answer does not seem to present itself. Any ideas? Thanks, Try taking over ownership as Administrator first. Make sure you OK all the property dialog boxes. Then reopen the property dialog box and go to the Security tab. You should be able to set things then. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Problem Running Apache through Cygwin
Hi Gerrit, I have re-installed Cygwin because I wanted to start developing some web apps and apache is the best choice for me. Apache isn't giving me this error anymore: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Instead it just does nothing, but I still can't connect to 127.0.0.1 I will attach the files you requested, hopefully you can see something I don't. I also checked the error.log and it's giving me a new error, I searched the mailing list archives but could find nothing pertaining to this. [Sun Jun 15 22:07:03 2003] [notice] Apache/1.3.24 (Cygwin) configured -- resuming normal operations [Sun Jun 15 22:07:03 2003] [notice] Accept mutex: pthread (Default: pthread) [Sun Jun 15 22:07:03 2003] [alert] Child 1448 returned a Fatal error... Apache is exiting! [Sun Jun 15 22:07:03 2003] [alert] (22)Invalid argument: setuid: unable to change to uid: 65535 I am running Cygwin via: cygrunsrv -I httpd -p /usr/sbin/httpd -d CYGWIN httpd -a '-k' -e CYGWIN=binmode ntsec cygrunsrv -S httpd Thanks, Sergio -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gerrit P. Haase Sent: Saturday, June 14, 2003 8:11 AM To: Sergio Cc: [EMAIL PROTECTED] Subject: Re: Problem Running Apache through Cygwin Hallo Sergio, It should run. Can you send your httpd.conf (as attachment), please? And your /var/log/apache/error.log access.log too? Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ httpd.log Description: Binary data error_log Description: Binary data httpd.conf Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Problem Running Apache through Cygwin
Elfyn, Thanks for the reply. Well you're right about apache and cygwin's conflict. I can't install in as a service either. I tried, cygrunsrv -I httpd -p /usr/sbin/httpd -a -k. That worked fine, but when I cygrunsrv -S httpd it gives me this: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Kind of strange :) I am running XP and I checked the Event Log, it shows an error with httpd, but doesn't give any relevant information. The description for Event ID ( 0 ) in Source ( httpd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: httpd : PID 3364 : starting service `httpd' failed: execv: 1, Operation not permitted. Well I will be playing with this to see if I can get something to work. If not I will wait until the Cygwin 1.5.0 update :) Sergio Parracho -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Elfyn McBratney Sent: Friday, June 13, 2003 4:36 PM To: Sergio Cc: [EMAIL PROTECTED] Subject: Re: Problem Running Apache through Cygwin On Fri, 13 Jun 2003, Sergio wrote: Hello, I have the latest cygwin build, I downloaded it off the net a week ago. This is my first install of Apache. I think I have done everything correctly regarding configuration, yet I still can't view documents through apache. I have set the ServerName to 127.0.0.1 and port to 80. The error log shows the following: [...] I am running Apache via /usr/sbin/apachectl start It gives me the following response /usr/sbin/apachectl start: httpd started But still I can not connect to http://127.0.0.1:80 Very strange problem. Any help GREATRLY appreciated! Sergio, Apache is kinda broken at the moment until Cygwin 1.5.0 is released (not too far away). If your on NT (4.0/2000/XP) you should be able to get up and running with cygrunsrv (see /usr/doc/Cygwin/apache-1.3.24-5.README) but I doubt it'll be for long. Elfyn -- Elfyn McBratney (mailto:[EMAIL PROTECTED]) Systems Administrator ABCtales.com / Ubertales.co.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Problem Running Apache through Cygwin
On Sat, 14 Jun 2003, Sergio wrote: Elfyn, Thanks for the reply. Well you're right about apache and cygwin's conflict. I can't install in as a service either. I tried, cygrunsrv -I httpd -p /usr/sbin/httpd -a -k. That worked fine, but when I cygrunsrv -S httpd it gives me this: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Kind of strange :) I am running XP and I checked the Event Log, it shows an error with httpd, but doesn't give any relevant information. The description for Event ID ( 0 ) in Source ( httpd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: httpd : PID 3364 : starting service `httpd' failed: execv: 1, Operation not permitted. Well I will be playing with this to see if I can get something to work. If not I will wait until the Cygwin 1.5.0 update :) Did you try /var/log/httpd.log ? Elfyn (Damn I'm up way too early :0) -- Elfyn McBratney (mailto:[EMAIL PROTECTED]) Systems Administrator ABCtales.com / Ubertales.co.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem Running Apache through Cygwin
Hello all. This week I have had to reinstall Windows 2000 (due to a problem unrelated to Cygwin) and was suprised to find files in my Windows home directory (SSH stuff) and in my cygwin home still owned by the previous user with the same name. I cannot delete or modify these files, even logged in as Administrator. Tried chown -R as Administrator, and that still did not seem to help. Of course, I also checked the regular Windows GUI but even as Administrator the controls for changing user settings are disabled. I checked the FAQ and docs, but an easy answer does not seem to present itself. Any ideas? Thanks, --dave -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem Running Apache through Cygwin
Hallo Sergio, It should run. Can you send your httpd.conf (as attachment), please? And your /var/log/apache/error.log access.log too? Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Problem Running Apache through Cygwin
Hello, I have the latest cygwin build, I downloaded it off the net a week ago. This is my first install of Apache. I think I have done everything correctly regarding configuration, yet I still can't view documents through apache. I have set the ServerName to 127.0.0.1 and port to 80. The error log shows the following: [Fri Jun 13 15:40:27 2003] [notice] Apache/1.3.24 (Cygwin) configured -- resuming normal operations [Fri Jun 13 15:40:27 2003] [notice] Accept mutex: pthread (Default: pthread) I was thinking it might be a file permission error, the DocRoot doesn't have read permission, but it does! I am running Apache via /usr/sbin/apachectl start It gives me the following response /usr/sbin/apachectl start: httpd started But still I can not connect to http://127.0.0.1:80 Very strange problem. Any help GREATRLY appreciated! Sergio Parracho -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem Running Apache through Cygwin
On Fri, 13 Jun 2003, Sergio wrote: Hello, I have the latest cygwin build, I downloaded it off the net a week ago. This is my first install of Apache. I think I have done everything correctly regarding configuration, yet I still can't view documents through apache. I have set the ServerName to 127.0.0.1 and port to 80. The error log shows the following: [...] I am running Apache via /usr/sbin/apachectl start It gives me the following response /usr/sbin/apachectl start: httpd started But still I can not connect to http://127.0.0.1:80 Very strange problem. Any help GREATRLY appreciated! Sergio, Apache is kinda broken at the moment until Cygwin 1.5.0 is released (not too far away). If your on NT (4.0/2000/XP) you should be able to get up and running with cygrunsrv (see /usr/doc/Cygwin/apache-1.3.24-5.README) but I doubt it'll be for long. Elfyn -- Elfyn McBratney (mailto:[EMAIL PROTECTED]) Systems Administrator ABCtales.com / Ubertales.co.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
problem of apache-mod_auth_ntsec's postinstall script
Hello, Recently I have installed Apache with mod_auth_ntsec. And I ran 'apachectl configtest' then got the following error messages. Syntax error on line 279 of /etc/apache/httpd.conf: Cannot add module via name 'mod_ntsec_auth.c': not in list of loaded modules I modified httpd.conf and ran successfully. My environment is cygwin-1.3.18-1 apache-1.3.24-5 apache-mod_auth_ntsec-1.7-1 Regards, Kenji Yamashita [EMAIL PROTECTED] *** /etc/postinstall/apache-mod_auth_ntsec.sh.orig Sun May 5 21:48:33 2002 --- /etc/postinstall/apache-mod_auth_ntsec.sh Fri Jan 10 19:18:45 2003 *** *** 1,5 #!/bin/sh ! module=ntsec_auth module_dll=mod_auth_ntsec.dll prefix=/usr confdir=/etc --- 1,5 #!/bin/sh ! module=auth_ntsec module_dll=mod_auth_ntsec.dll prefix=/usr confdir=/etc __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- 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/
problem with apache
hi, cygwin-apps i have the apache-1.3.24-5 under cygwin-1.3.12-3 and one big trouble with it. if i try download big static file from my web server (bigger than 32768 bytes), then data in downloaded file after byte 0x8000 replaced by trash. but script output with any size are downloaded normally. whats wrong? how i can fix it? please help! -- raVen, http://raven.elk.ru/, icq#550428
Re: problem with apache
Dmitry Suhodoev wrote: hi, cygwin-apps i have the apache-1.3.24-5 under cygwin-1.3.12-3 and one big trouble with it. if i try download big static file from my web server (bigger than 32768 bytes), then data in downloaded file after byte 0x8000 replaced by trash. but script output with any size are downloaded normally. whats wrong? how i can fix it? please help! I haven't seen this. I do run it on several machines offering big static files. Can you provide a link to that big file to see what is downloaded?! 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
Re: problem with apache
Wrong mailing list. Redirected. On Fri, Dec 06, 2002 at 03:39:13PM +0500, Dmitry Suhodoev wrote: hi, cygwin-apps i have the apache-1.3.24-5 under cygwin-1.3.12-3 and one big trouble with it. if i try download big static file from my web server (bigger than 32768 bytes), then data in downloaded file after byte 0x8000 replaced by trash. but script output with any size are downloaded normally. whats wrong? how i can fix it? please help! -- raVen, http://raven.elk.ru/, icq#550428 -- 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: 1.3.13-2: problem running apache with mod_ssl
Jim, On Thu, Oct 17, 2002 at 10:59:59AM -0400, Jim Sproull wrote: C:\cygwin\usr\sbin\httpd.exe: *** unable to remap C:\cygwin\bin\cygssl.dll to same address as parent -- 0x1B33 Is this a problem with my particular setup? No. Has anyone else noticed this behaviour? Yes. In fact, many. Please search the archives using rebase as a keyword for the details and solution. Jason -- 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/
1.3.13-2: problem running apache with mod_ssl FIXED
As you all know, this is/was a rebase issue. Should have done some more research before I posted. Thanks, Jim Sproull Using a clean Windows 2000 server machine (has never had cygwin installed on it), I installed the latest cygwin (1.3.13-2) and selected apache 1.3.24-5 and mod_ssl 2.8.8-1.3.24-1. This selected openssl 0.9.6g-1 as a dependancy and the installation went smoothly (except for one problem which i'll mention later). When I ran: /usr/sbin/apachectl start (without touching httpd.conf at all), i get: C:\cygwin\usr\sbin\httpd.exe: *** unable to remap C:\cygwin\bin\cygssl.dll to same address as parent -- 0x1B33 I've attached my cygcheck output. Is this a problem with my particular setup? Has anyone else noticed this behaviour? Going back to the installation, when I initially installed mod_ssl, the libssl.dll did not properly get installed via the postinstall script. I tried it manually and noticed that apxs couldn't run because perl didn't get installed. perl should probably be a dependancy for any apache modules that use apxs (all of them?). Thanks, Jim Sproull -- 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/