Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 85666 invoked from network); 4 Jan 2007 06:47:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2007 06:47:17 -0000 Received: (qmail 98839 invoked by uid 500); 4 Jan 2007 06:47:11 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 98828 invoked by uid 500); 4 Jan 2007 06:47:11 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 98815 invoked by uid 99); 4 Jan 2007 06:47:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 22:47:11 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of steve.j.swift@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 22:47:02 -0800 Received: by nf-out-0910.google.com with SMTP id k27so1788544nfc for ; Wed, 03 Jan 2007 22:46:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MyebDWiwZJ+W2+zHYVXO43E0c028iiyAmRKf5Ccyi34nXJpjJeaPHl6S3HdAzBrTKLQpZlyd10mXIsAxVIwlxQrGQGfZMPm70Oopy8PelCA7xMbfnhh23UYaRoDRcZQkF8+wGyuXlOp8Zbl9TrunZtsODrHTaJIRwRqE00V1uk8= Received: by 10.48.48.18 with SMTP id v18mr24897384nfv.1167893201280; Wed, 03 Jan 2007 22:46:41 -0800 (PST) Received: by 10.49.107.11 with HTTP; Wed, 3 Jan 2007 22:46:40 -0800 (PST) Message-ID: Date: Thu, 4 Jan 2007 06:46:41 +0000 From: "Steve Swift" To: users@httpd.apache.org In-Reply-To: <0F3512F4-2758-43FD-BC43-6B2C68E5EECF@apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2553_28961845.1167893201001" References: <459BFAA1.8030900@videotron.ca> <0F3512F4-2758-43FD-BC43-6B2C68E5EECF@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Installing Apache as a service ------=_Part_2553_28961845.1167893201001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline One minor correction. In the default Windows installation the bin directory (containing httpd.exe) and the conf directory (containing httpd.conf) are in the same (Apache2.2) directory so if you double-click on the httpd.exe it will not find the httpd.conf file because it will start in the bin directory and look for a conf directory below that. You can only launch apache with a shortcut (which you would have to construct), a batch file (which you'd have to write) or a command. The command is the easiest. Open a command prompt, and navigate to "C:\Program Files\Apache Software\Foundation\Apache2.2" and then the command to start apache is bin\apache (with whatever arguments you need) On 03/01/07, Sander Temme wrote: > > > On Jan 3, 2007, at 10:49 AM, servandomontero wrote: > > > I'm a novice and im trying to install Apache 2.2 on my Windowx XP > > (SP2) machine. I've installed Apache using the install option "only > > for the Current User, on Port 8080, when started Manually" because > > i am running apache a as testing dev platform and dont want to > > listen to port 80 all the time (i dont know if this the right > > installation option) > > That sounds like a fine installation mode for your intended use. > Just remember to test using http://localhost:8080/... > > > Im reading the manual, and it says that i need to install Apache as > > a NT service (because i've specify to install it to my self only) > > from the command prompt at the Apache bin subdirectory using this > > command : httpd -k install > > I've tried it and i have this message from the command prompt console: > > 'http' is not recognized as an internal or external command, > > operable program or bach file > > For testing and development, you don't need to install a Service. If > you want to have the web server running while you are not logged in, > you would need to install the Service. > > As others have remarked, you'll need to find and call the httpd.exe > program in its install directory. This directory is not > automatically added to %PATH%. You can start the server, with its > configuration file in conf/httpd.conf under your install directory, > content in htdocs, etc. by running httpd.exe either from a command > prompt, or by navigating to the bin directory and double-clicking the > httpd.exe file. No service install needed. > > If you do want to install the service, for production or convenience, > follow the installation directions (httpd -k install -n Apache22 if I > recall correctly) but do remember that httpd.exe is not in your PATH. > > S. > > -- > sctemme@apache.org http://www.temme.net/sander/ > PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF > > > > > -- Steve Swift http://www.swiftys.org.uk ------=_Part_2553_28961845.1167893201001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline One minor correction. In the default Windows installation the bin directory (containing httpd.exe) and the conf directory (containing httpd.conf) are in the same (Apache2.2) directory so if you double-click on the httpd.exe it will not find the httpd.conf file because it will start in the bin directory and look for a conf directory below that.

You can only launch apache with a shortcut (which you would have to construct), a batch file (which you'd have to write) or a command. The command is the easiest. Open a command prompt, and navigate to "C:\Program Files\Apache Software\Foundation\Apache2.2" and then the command to start apache is bin\apache (with whatever arguments you need)

On 03/01/07, Sander Temme <sctemme@apache.org> wrote:

On Jan 3, 2007, at 10:49 AM, servandomontero wrote:

> I'm a novice and im trying to install Apache 2.2 on my Windowx XP
> (SP2) machine. I've installed Apache using the install option "only
> for the Current User, on Port 8080, when started Manually" because
> i am running apache a as testing dev platform and dont want to
> listen to port 80 all the time (i dont know if this the right
> installation option)

That sounds like a fine installation mode for your intended use.
Just remember to test using http://localhost:8080/...

> Im reading the manual, and it says that i need to install Apache as
> a NT service (because i've specify to install it to my self only)
> from the command prompt at the Apache bin subdirectory using this
> command : httpd -k install
> I've tried it and i have this message from the command prompt console:
> 'http' is not recognized as an internal or external command,
> operable program or bach file

For testing and development, you don't need to install a Service.  If
you want to have the web server running while you are not logged in,
you would need to install the Service.

As others have remarked, you'll need to find and call the httpd.exe
program in its install directory.  This directory is not
automatically added to %PATH%.  You can start the server, with its
configuration file in conf/httpd.conf under your install directory,
content in htdocs, etc. by running httpd.exe either from a command
prompt, or by navigating to the bin directory and double-clicking the
httpd.exe file.  No service install needed.

If you do want to install the service, for production or convenience,
follow the installation directions (httpd -k install -n Apache22 if I
recall correctly) but do remember that httpd.exe is not in your PATH.

S.

--
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF







--
Steve Swift
http://www.swiftys.org.uk ------=_Part_2553_28961845.1167893201001--