Mail Archives: cygwin/2008/11/25/00:50:52
------=_NextPart_000_0058_01C94E7E.8F049DA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
cygwin:
I have a fresh install of Cygwin on Windows XP Professional SP3,
including Apache.
I have created a Windows account "www" and updated /etc/passwd:
$ mkpasswd -l | grep www >> /etc/passwd
I have edited /etc/apache/httpd.conf:
$ cvs diff -r 1.1 httpd.conf
Index: httpd.conf
===================================================================
RCS file: /cvs/dpchrist/a64x23800p/etc/apache/httpd.conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -r1.1 -r1.2
139,140c139,140
< MinSpareServers 5
< MaxSpareServers 10
---
> MinSpareServers 1
> MaxSpareServers 1
146c146
< StartServers 5
---
> StartServers 1
155c155
< MaxClients 150
---
> MaxClients 5
171c171
< MaxRequestsPerChild 0
---
> MaxRequestsPerChild 100
324c324
< #User nobody
---
> User www
332c332
< ServerAdmin you AT your DOT address
---
> ServerAdmin dpchrist AT holgerdanske DOT com
350c350
< #ServerName www.example.com
---
> ServerName a64x23800p.holgerdanske.com
I can successfully start Apache via apachectl:
$ apachectl start
/usr/sbin/apachectl start: httpd started
"apachectl status" does not work, even if I attempt to enable it in
httpd.conf:
$ apachectl status
Not Found
The requested URL /server-status was not found on this server.
_________________________________________________________________
Apache/1.3.33 Server at a64x23800p.holgerdanske.com Port 80
"apachectl stop" does not stop Apache, and displays a mangled error
message:
$ apachectl stop
?) not runninghectl stop: httpd (pid 2628
I can kill Apache if I choose the right PID:
$ ps -a | grep httpd
2628 1 2628 2628 0 500 21:21:48 /usr/sbin/httpd
1984 2628 2628 1984 0 500 21:35:40 /usr/sbin/httpd
3956 0 0 3956 0 500 Dec 31 /usr/sbin/httpd
$ kill 2628
I would like to have Apache automatically start at system boot and stop
and system shutdown, and have attempted to follow the instructions given
in:
/usr/share/doc/Cygwin/apache-1.3.33.README
I installed Apache as follows:
$ cygrunsrv.exe -I httpd -d "CYGWIN httpd" -p /usr/sbin/httpd -a -F
"Services" shows:
Name: CYGWIN httpd
Description: <blank>
Status: <blank>
Startup Type: automatic
Log on as: Local System
Attempting to start the service:
$ net start httpd
The CYGWIN httpd service is starting.
The CYGWIN httpd service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
Looking at /var/log/apache/error_log reveals no clues.
Event Viewer shows:
Information -- The CYGWIN httpd service was successfully sent a start
control.
Information -- The CYGWIN httpd service entered the stopped state.
When I attempt to start CGYWIN httpd via Services, I get a dialog:
Services
The CYGWIN httpd service on Local Computer started and then stopped.
Some services may stop automatically if they have no work to do, for
example, the Performance Logs and Alerts service.
I have tried to RFTM and STFW, including the Cygwin mailing list
archives, but haven't found a solution.
$ man httpd
$ cygrunsrv --help 2>&1 | less
cygcheck.out is attached.
Any suggestions?
TIA,
David
------=_NextPart_000_0058_01C94E7E.8F049DA0
Content-Type: application/octet-stream;
name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="cygcheck.out"
Cygwin Configuration Diagnostics
Current System Time: Mon Nov 24 21:42:14 2008
Windows XP Professional Ver 5.1 Build 2600 Service Pack 3
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
"C
C:\cygwin\Program Files\Symantec\Norton Ghost 2003\"
C:\cygwin\bin
C:\cygwin\usr\sbin
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER =3D 'Administrator'
PWD =3D '/cygdrive/c/userdocs/Administrator'
CYGWIN =3D 'ntsec'
HOME =3D '/cygdrive/c/userdocs/Administrator'
MAKE_MODE =3D 'unix'
HOMEPATH =3D '\userdocs\Administrator'
MANPATH =3D ':/cygdrive/c/userdocs/Administrator/local/man'
HOSTNAME =3D 'a64x23800p'
PROCESSOR_IDENTIFIER =3D 'x86 Family 15 Model 75 Stepping 2, AuthenticAMD'
SHELL =3D '/bin/bash'
TERM =3D 'cygwin'
WINDIR =3D 'C:\WINDOWS'
SSH_CLIENT =3D '192.168.0.15 1174 22'
CVSROOT =3D 'dpchrist AT cvs DOT holgerdanske DOT com:/cvs/dpchrist'
OLDPWD =3D '/cygdrive/c/userdocs/Administrator/a64x23800p/etc/apache'
USERDOMAIN =3D 'NT AUTHORITY'
ALLUSERSPROFILE =3D 'C:\Documents and Settings\All Users'
OS =3D 'Windows_NT'
SSH_TTY =3D '/dev/tty2'
COMMONPROGRAMFILES =3D 'C:\Program Files\Common Files'
TEMP =3D '/cygdrive/c/WINDOWS/TEMP'
PAGER =3D '/usr/bin/less'
PROCESSOR_LEVEL =3D '15'
FTP_PASSIVE =3D '1'
MAIL =3D '/var/spool/mail/Administrator'
SYSTEMDRIVE =3D 'C:'
EDITOR =3D 'vim'
USERPROFILE =3D 'C:\Documents and Settings\Administrator'
LANG =3D 'C'
PS1 =3D '<CVSENV>\D{%Y%m%d-%H%M%S} \u@\h \w\n\$ '
PROCESSOR_ARCHITECTURE =3D 'x86'
HISTCONTROL =3D 'ignoredups'
SHLVL =3D '2'
PATHEXT =3D '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
OSTYPE =3D 'cygwin'
HOMEDRIVE =3D 'c:'
COMSPEC =3D 'C:\WINDOWS\system32\cmd.exe'
SYSTEMROOT =3D 'C:\WINDOWS'
TMP =3D '/cygdrive/c/WINDOWS/TEMP'
LOGNAME =3D 'Administrator'
LESS =3D '-R'
PROCESSOR_REVISION =3D '4b02'
CVS_RSH =3D 'ssh'
SSH_CONNECTION =3D '192.168.0.15 1174 192.168.0.10 22'
PROGRAMFILES =3D 'C:\Program Files'
INFOPATH =3D '/usr/local/info:/usr/share/info:/usr/info:'
NUMBER_OF_PROCESSORS =3D '2'
COMPUTERNAME =3D 'A64X23800P'
_ =3D '/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) =3D '/cygdrive'
cygdrive flags =3D 0x00000020
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) =3D 'C:\cygwin'
flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) =3D 'C:\cygwin/bin'
flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) =3D 'C:\cygwin/lib'
flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
c: hd NTFS 76316Mb 11% CP CS UN PA FC a64x23800p
d: cd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
g: hd NTFS 286165Mb 63% CP CS UN PA FC GHOST300SAT
C:\cygwin / system textmode
C:\cygwin/bin /usr/bin system textmode
C:\cygwin/lib /usr/lib system textmode
. /cygdrive system textmode,cygdrive
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe
61k 2008/04/01 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygbz2-1.dll" v0.0 ts=3D2008/3/31 20:37
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygcrypt-0.dll" v0.0 ts=3D2003/10/19 0:57
1064k 2008/09/30 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=3D4.0 img=3D1.0 sy=
s=3D4.0
"cygcrypto-0.9.8.dll" v0.0 ts=3D2008/9/30 8:27
703k 2007/12/17 C:\cygwin\bin\cygdb-4.2.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygdb-4.2.dll" v0.0 ts=3D2007/12/17 3:58
943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygdb-4.5.dll" v0.0 ts=3D2007/12/17 5:12
1036k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.2.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygdb_cxx-4.2.dll" v0.0 ts=3D2007/12/17 3:58
1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygdb_cxx-4.5.dll" v0.0 ts=3D2007/12/17 5:12
118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygexpat-1.dll" v0.0 ts=3D2008/5/8 21:03
40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygform-8.dll" v0.0 ts=3D2006/11/14 23:06
19k 2006/11/19 C:\cygwin\bin\cyggdbm-4.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cyggdbm-4.dll" v0.0 ts=3D2006/11/19 0:18
8k 2006/11/19 C:\cygwin\bin\cyggdbm_compat-4.dll - os=3D4.0 img=3D1.0 s=
ys=3D4.0
"cyggdbm_compat-4.dll" v0.0 ts=3D2006/11/19 0:18
25k 2008/01/04 C:\cygwin\bin\cyghistory6.dll - os=3D4.0 img=3D1.0 sys=3D=
4.0
"cyghistory6.dll" v0.0 ts=3D2008/1/3 19:31
271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygicons-0.dll" v0.0 ts=3D2007/8/24 0:24
978k 2008/11/10 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygiconv-2.dll" v0.0 ts=3D2008/11/9 16:35
37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygintl-2.dll" v0.0 ts=3D2003/8/10 14:50
31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygintl-3.dll" v0.0 ts=3D2005/11/19 18:04
31k 2008/11/10 C:\cygwin\bin\cygintl-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygintl-8.dll" v0.0 ts=3D2008/11/9 17:32
39k 2008/09/07 C:\cygwin\bin\cyglber-2-3-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cyglber-2-3-0.dll" v0.0 ts=3D2008/9/7 5:28
189k 2008/09/07 C:\cygwin\bin\cygldap-2-3-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygldap-2-3-0.dll" v0.0 ts=3D2008/9/7 5:29
201k 2008/09/07 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=3D4.0 img=3D1.0 sy=
s=3D4.0
"cygldap_r-2-3-0.dll" v0.0 ts=3D2008/9/7 5:31
83k 2007/06/06 C:\cygwin\bin\cygmagic-1.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygmagic-1.dll" v0.0 ts=3D2007/6/6 3:41
21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygmenu-8.dll" v0.0 ts=3D2006/11/14 23:05
20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=3D4.0 img=3D1.1 sys=3D4=
.0
"cygminires.dll" v0.0 ts=3D2006/12/20 21:07
67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygncurses++-8.dll" v0.0 ts=3D2006/11/14 23:13
237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygncurses-8.dll" v0.0 ts=3D2006/11/14 23:02
12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygpanel-8.dll" v0.0 ts=3D2006/11/14 23:04
181k 2008/09/07 C:\cygwin\bin\cygpcre-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygpcre-0.dll" v0.0 ts=3D2008/9/6 20:36
302k 2008/09/07 C:\cygwin\bin\cygpcrecpp-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygpcrecpp-0.dll" v0.0 ts=3D2008/9/6 20:36
7k 2008/09/07 C:\cygwin\bin\cygpcreposix-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygpcreposix-0.dll" v0.0 ts=3D2008/9/6 20:36
1543k 2008/07/03 C:\cygwin\bin\cygperl5_10.dll - os=3D4.0 img=3D1.0 sys=3D=
4.0
"cygperl5_10.dll" v0.0 ts=3D2008/6/30 9:06
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygpopt-0.dll" v0.0 ts=3D2002/6/8 22:45
155k 2008/01/04 C:\cygwin\bin\cygreadline6.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygreadline6.dll" v0.0 ts=3D2008/1/3 19:31
78k 2004/10/13 C:\cygwin\bin\cygsasl2-2.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0
"cygsasl2-2.dll" v0.0 ts=3D2004/10/13 15:50
218k 2008/09/30 C:\cygwin\bin\cygssl-0.9.8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0
"cygssl-0.9.8.dll" v0.0 ts=3D2008/9/30 8:28
22k 2008/02/24 C:\cygwin\bin\cygwrap-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygwrap-0.dll" v0.0 ts=3D2008/2/22 23:03
65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygz.dll" v0.0 ts=3D2006/10/15 18:10
1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygwin1.dll" v0.0 ts=3D2008/6/12 10:35
Cygwin DLL version info:
DLL version: 1.5.25
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 156
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:=20
Build date: Thu Jun 12 19:34:46 CEST 2008
CVS tag: cr-0x5f1
Shared id: cygwin1S4
Service : cron
Display name : Cron daemon
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/cron -n
stdin path : /dev/null
stdout path : /var/log/cron.log
stderr path : /var/log/cron.log
Environment : CYGWIN=3D"ntsec smbntsec"=20
Process Type : Own Process
Startup : Automatic
Account : LocalSystem
Service : exim
Display name : Exim
Description : Mail Transfer Agent
Current State : Running
Controls Accepted : Stop
Command : /usr/bin/exim -bdf -q15m
stdin path : /dev/null
stdout path : /var/log/exim/cygrunsrv_out.log
stderr path : /var/log/exim/cygrunsrv_err.log
Environment : CYGWIN=3D"ntsec notraverse"=20
Process Type : Own Process
Startup : Automatic
Dependencies : Tcpip
Account : LocalSystem
Service : httpd
Display name : CYGWIN httpd
Current State : Stopped
Command : /usr/sbin/httpd -F
stdin path : /dev/null
stdout path : /var/log/httpd.log
stderr path : /var/log/httpd.log
Process Type : Own Process
Startup : Automatic
Account : LocalSystem
Service : sshd
Display name : CYGWIN sshd
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
stdin path : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN=3D"ntsec"=20
Process Type : Own Process
Startup : Automatic
Dependencies : tcpip
Account : LocalSystem
Cygwin Package Information
Last downloaded files to: C:\cygwin\setup
Last downloaded files from: ftp://mirrors.kernel.org/sourceware/cygwin/
Package Version
alternatives 1.3.30c-2
apache 1.3.33-2
ash 20040127-4
base-files 3.7-1
base-passwd 2.2-1
bash 3.2.39-20
bzip2 1.0.5-2
coreutils 6.10-2
cron 4.1-6
crypt 1.1-1
csih 0.1.8-1
cvs 1.11.22-1
cygrunsrv 1.34-1
cygutils 1.3.2-1
cygwin 1.5.25-15
cygwin-doc 1.4-4
diffutils 2.8.7-1
editrights 1.01-2
email 2.5.1-1
exim 4.69-1
expat 2.0.1-1
file 4.21-1
findutils 4.4.0-3
gawk 3.1.6-1
grep 2.5.3-1
groff 1.19.2-2
gzip 1.3.12-2
less 382-1
libbz2_1 1.0.5-2
libdb4.2 4.2.52.5-2
libdb4.5 4.5.20.2-2
libexpat1 2.0.1-1
libexpat1-devel 2.0.1-1
libgdbm4 1.8.3-8
libiconv2 1.12-1
libintl2 0.12.1-3
libintl3 0.14.5-1
libintl8 0.17-1
libncurses8 5.5-3
libopenldap2_3_0 2.3.43-1
libpcre0 7.8-1
libpopt0 1.6.4-4
libreadline6 5.2.12-10
libsasl2 2.1.19-3
libwrap0 7.6-4
login 1.9-8
lynx 2.8.5-4
make 3.81-2
man 1.6e-1
minires 1.01-1
ncurses 5.5-3
openssh 5.1p1-10
openssl 0.9.8i-1
perl 5.10.0-5
perl-Error 0.17014-1
perl_manpages 5.10.0-5
rebase 2.4.4-1
rsync 3.0.4-1
run 1.1.10-1
sed 4.1.5-2
tar 1.20-1
termcap 20050421-1
terminfo 5.5_20061104-1
texinfo 4.8a-1
time 1.7-2
tzcode 2008a-1
vim 7.2-3
wget 1.11.3-1
which 2.19-1
whois 4.7.24-1
zlib 1.2.3-2
Use -h to see help about each section
------=_NextPart_000_0058_01C94E7E.8F049DA0
Content-Type: text/plain; charset=us-ascii
--
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/
------=_NextPart_000_0058_01C94E7E.8F049DA0--
- Raw text -