Received: (qmail 14523 invoked by uid 501); 31 Oct 2001 16:28:57 -0000 Message-Id: <20011031162857.14516.qmail@apache.org> Date: 31 Oct 2001 16:28:57 -0000 From: Dennis Newbold Reply-To: dennisn@pe.net To: submit@bugz.apache.org Subject: Installing as a Service Doesn't Work X-Send-Pr-Version: 3.110 >Number: 8652 >Category: os-windows >Synopsis: Installing as a Service Doesn't Work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Oct 31 08:30:00 PST 2001 >Closed-Date: >Last-Modified: Wed Oct 31 23:50:00 PST 2001 >Originator: dennisn@pe.net >Release: 1.3.22 >Organization: apache >Environment: Windows XP Home Edition Version 2002 >Description: When I installed Apache, I specified that I wanted it installed as a Service. After the installation completed, I looked at the list of installed services, and Apache was not listed. I went into a DOS box, and typed "NET START APACHE". I got an error message indicating that the service did not exist. I clicked on Start -> Programs -> Apache HTTP Web Server. "Start Apache in Console" was shown as an option, but "Start Apache as Service" was not. I know that the installation worked OK, because when I used netscape to go to "http://, I got the standard Apache index.html file (well, first I had to do the other regular stuff -- rename index.html.en to index.html, and edit httpd.conf to listen on my IP address and port no., etc. >How-To-Repeat: Try installing Apache 1.3.22 as a service onto Windows XP >Fix: No. I'd have to dig through the source code, which I don't know at all. And I'm not even sure the source code release includes the installation logic. >Release-Note: >Audit-Trail: From: "William A. Rowe, Jr." To: , , Cc: Subject: Re: os-windows/8652: Installing as a Service Doesn't Work Date: Thu, 1 Nov 2001 01:41:50 -0600 From: "Dennis Newbold" Sent: Wednesday, October 31, 2001 10:28 AM > >Environment: > Windows XP Home Edition Version 2002 Certainly untested yet - XP Home will hopefully be supportable. > >Description: > When I installed Apache, I specified that I wanted it installed as a Service. > After the installation completed, I looked at the list of installed services, > and Apache was not listed. [...] It did not install as a service, for whatever reason, 'as a service' was not toggled in spite of your choice. Permissions become very odd in the XP Home edition [it is an NT, after all, but with much logic to keep 'home' users from hurting themselves.] Try the following, in a command window of the c:\Program Files\Apache Group\Apache directory; apache -k install -n Apache Please report the effect. The follow commands should then work; apache -k start -n Apache apache -k stop -n Apache > >Fix: > No. I'd have to dig through the source code, which I don't know at all. And > I'm not even sure the source code release includes the installation logic. No, it does not. It is available from anonymous cvs (see http://dev.apache.org/) by checking out the httpd-win32-msi repository. It is built with InstallShield for Windows Installer, v 2.03, so it won't be -directly- usable. Of course, MSI packages are directly editable with orca from the Microsoft Installer SDK, so if you find the magic 'keys to the kingdom' feel free to provide feedback of the flag. Current flags are VersionNT and Version9x, IIRC. If the apache -k commands don't work, then you might want to investigate the src/os/win32/service.c code that sets up, starts and stops the service using the WinNT Service Control Manager API. That API may have slid for XP Home. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]