You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@algroup.co.uk> on 1997/10/17 20:26:47 UTC

Win32 binary

Right. I've just uploaded Apache32_1.3b2.exe to dist. This is absolutely
totally untested. Well, the setup is a somewhat mangled version of a
known-to-work setup. Beyond that, you are on your own. If its a total
fiasco, just delete it and let me know what is wrong, and I'll try to
get onto it tomorrow.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Re: Win32 binary

Posted by Brian Behlendorf <br...@organic.com>.
At 03:41 PM 10/17/97 -0400, Jim Jagielski wrote:
>Brian Behlendorf wrote:
>> All of these might be relatively easy to fix... I'd hold off on a public
>> announcement of this binary until these are addressed though.
>
>How about we announce 1.3b2 and in the announcement state that a
>binary of 1.3b2 will be available and announced ``shortly''?

Perfect.

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"it's a big world, with lots of records to play." - sig   brian@organic.com

Re: Win32 binary

Posted by Ben Laurie <be...@algroup.co.uk>.
Forgot a bit...

Ben Laurie wrote:
> > 4) Apache when it launches looks for "/apache/conf/httpd.conf" instead of
> > "/Program Files/apache/conf/httpd.conf"

Well, you are supposed to use the start menu icon...

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Re: Win32 binary

Posted by Ben Laurie <be...@algroup.co.uk>.
Brian Behlendorf wrote:
> 
> At 07:26 PM 10/17/97 +0100, Ben Laurie wrote:
> >Right. I've just uploaded Apache32_1.3b2.exe to dist. This is absolutely
> >totally untested. Well, the setup is a somewhat mangled version of a
> >known-to-work setup. Beyond that, you are on your own. If its a total
> >fiasco, just delete it and let me know what is wrong, and I'll try to
> >get onto it tomorrow.
> 
> Looks like a great start!
> 
> Coupla problems.  I chose all the defaults, except for a "full" install.
> Oh yeah, this is on Win95.  :)
> 
> 1) on the last screen, after the install, it says "you can choose to read
> the README file, or launch Apache, by choosing the options below".  There
> are no options, just a "finish" button, and as best I can tell it doesn't
> launch the server.

Changed it to read "Apache installation completed successfully."

> 2) The whole "Apache Server for Win32" folder got added to the "Startup"
> folder, but really only the server binary should be there; the whole folder
> should be under the top-level "Programs" menu.  (I went with all the
> defaults) And when I follow that link, I get a "searching" dialog box,
> suggesting the link wasn't prperly formed.

Doh. Part 1 was a typo (STARTUP instead of STARTMENU). Part 2 was
probably coz Apache.exe was in the wrong place.

> 
> 3) Apache.exe is found under "Modules".  I'd put it one level up, in the
> main \Program Files\Apache directory.

Fixed. It's where I'd meant to put it anyway.

> 
> 4) Apache when it launches looks for "/apache/conf/httpd.conf" instead of
> "/Program Files/apache/conf/httpd.conf"  And when I try and say
> 
>   apache -f C:\PROGRA~1\Apache\conf\httpd.conf
> 
> I get
> 
>   fopen: no such file or directory
>   httpd: could not open document config file
>     /apache/C:\PROGRA~1\Apache\conf\httpd.conf
> 
> Ick!

Gonna have to change code for this. -d works, though, even with a c:.

The appropriate patch, I think, is (but you'll still have to use slash
instead of backslash, unless we also change os_is_absolute_path()):

Index: http_config.c
===================================================================
RCS file: /export/home/cvs/apachen/src/main/http_config.c,v
retrieving revision 1.81
diff -u -r1.81 http_config.c
--- http_config.c       1997/10/07 19:33:58     1.81
+++ http_config.c       1997/10/18 17:59:36
@@ -891,14 +891,8 @@

 API_EXPORT(char *) server_root_relative(pool *p, char *file)
 {
-#ifdef __EMX__
-    /* Add support for OS/2 drive names */
-    if ((file[0] == '/') || (file[1] == ':'))
+    if(os_is_path_absolute(file))
        return file;
-#else
-    if (file[0] == '/')
-       return file;
-#endif
     return make_full_path(p, server_root, file);
 }

Shall I commit it? Is this still 1.3b2?

BTW, os_is_absolute_path does file && ... - I don't think it should.

> 
> 4.1) So I install in \apache, and everything works, except the server
> doesn't come up automatically, like it looks like it's trying to do.  When
> started manually it's fine.

See 2) and 3). I'm a bit averse to autostarting possibly buggy code, for
reasons I hope are obvious :-)

> 5) There's nothing in /src or /htdocs.  Did we decide to ship without these?

Snag is I have to include every file individually, or else get into
self-extracting zips or something. Now I know why people do that! I
suggest we provide these as a separate zip for now.

> 6) There's no README

Is there one? If so, I'll include it...

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Re: Win32 binary

Posted by Martin Kraemer <Ma...@mch.sni.de>.
It's easiest to start apache from a PIF file. It launches the command.com
shell that's required (and where stderr goes - I made a patch a while ago
to send logs to stderr too. Maybe I can recycle them with the new logging)
but you have the possibility to hardwire a startup directory and a parameter
to pass to the executable, with less overhead than starting a .bat file.

The bad news is that PIF files are binary and have to be created with PIFEDIT,
so it's not easy to replace the paths by the actual installation directory.

    Martin

On Fri, Oct 17, 1997 at 11:05:26PM +0000, Paul Sutton wrote:
> > 4.1) So I install in \apache, and everything works, except the server
> > doesn't come up automatically, like it looks like it's trying to do.  When
> > started manually it's fine.
> 
> I don't think this'll work on Win 95. It can start automatically on NT
> when it is installed as a service (with -i), but on 95 it has to run under
> a shell (COMMAND.COM). I'm not convinced you are run command.com apps from
> the startup menu (or indeed any menu). At least it didn't work when I
> tried it.
-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Re: Win32 binary

Posted by Ben Laurie <be...@algroup.co.uk>.
Alexei Kosut wrote:
> 
> BTW, a few notes on Win32 binaries (I really wish I had an NT box
> right now):
> 
> 1. Don't forget to update dev.apache.org/how-to-release.html with how
> to make a complete package from the source.

At some point, sure. We'll have to add the vast numbers of files IS uses
to the CVS tree, though.

> 2. Don't forget to rewrite www.apache.org/windows.html to explain how
> to a) install a binary release and run it, b) how to install a source
> release and compile it. (I'm presuming the InstallShield program
> contains both source and binaries, from which you can choose?)

It is supposed to, but currently doesn't. I'm still thinking about how
to do that (without having to individually include every source file
into IS).

> 3. Since it doesn't quite appear ready to work, can we put it in
> /httpd/dist instead of /apache/dist? Things should only go into
> /apache/dist if we actually want the world to use them. And is
> "Apache32_1.3b2.exe" really the best name? I don't like it being
> alphabetically on top of the list. I'd perfer a lowercase
> a. "apache_1.3b2-win32.exe" maybe.

Sure.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Re: Win32 binary

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
BTW, a few notes on Win32 binaries (I really wish I had an NT box
right now):

1. Don't forget to update dev.apache.org/how-to-release.html with how
to make a complete package from the source.

2. Don't forget to rewrite www.apache.org/windows.html to explain how
to a) install a binary release and run it, b) how to install a source
release and compile it. (I'm presuming the InstallShield program
contains both source and binaries, from which you can choose?)

3. Since it doesn't quite appear ready to work, can we put it in
/httpd/dist instead of /apache/dist? Things should only go into
/apache/dist if we actually want the world to use them. And is
"Apache32_1.3b2.exe" really the best name? I don't like it being
alphabetically on top of the list. I'd perfer a lowercase
a. "apache_1.3b2-win32.exe" maybe.

-- Alexei Kosut <ak...@nueva.pvt.k12.ca.us>


Re: Win32 binary

Posted by Ben Laurie <be...@algroup.co.uk>.
Paul Sutton wrote:
> > 4) Apache when it launches looks for "/apache/conf/httpd.conf" instead of
> > "/Program Files/apache/conf/httpd.conf"  And when I try and say
> 
> Um, /apache should be the default installation directory. It's the one
> compiled into the code.

What should happen is that the code should accomodate any install
directory. The default directory should be /Program Files/Apache, or,
perhaps, /Program Files/Apache Group/Apache.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Re: Win32 binary

Posted by Paul Sutton <pa...@ukweb.com>.
On Fri, 17 Oct 1997, Brian Behlendorf wrote:
> 3) Apache.exe is found under "Modules".  I'd put it one level up, in the
> main \Program Files\Apache directory.

Yep, that's where makefile.nt's been putting it anyway on a make install.
 
> 4) Apache when it launches looks for "/apache/conf/httpd.conf" instead of
> "/Program Files/apache/conf/httpd.conf"  And when I try and say

Um, /apache should be the default installation directory. It's the one
compiled into the code.

>   apache -f C:\PROGRA~1\Apache\conf\httpd.conf
> I get
>   fopen: no such file or directory
>   httpd: could not open document config file 
>     /apache/C:\PROGRA~1\Apache\conf\httpd.conf

Yeah, known bug number 764464 - Apache for NT doesn't understand the paths
which start X:/ are absolute, so it'll prepend the server root. You'll
have problems if you try and use stuff on multiple disks. Best stick
everything on C: and never use a drive spec.

> 4.1) So I install in \apache, and everything works, except the server
> doesn't come up automatically, like it looks like it's trying to do.  When
> started manually it's fine.

I don't think this'll work on Win 95. It can start automatically on NT
when it is installed as a service (with -i), but on 95 it has to run under
a shell (COMMAND.COM). I'm not convinced you are run command.com apps from
the startup menu (or indeed any menu). At least it didn't work when I
tried it.

> 5) There's nothing in /src or /htdocs.  Did we decide to ship without these?

I think the docs should be there, and source shouldn't.

//pcs



Re: Win32 binary

Posted by Brian Behlendorf <br...@organic.com>.
At 07:26 PM 10/17/97 +0100, Ben Laurie wrote:
>Right. I've just uploaded Apache32_1.3b2.exe to dist. This is absolutely
>totally untested. Well, the setup is a somewhat mangled version of a
>known-to-work setup. Beyond that, you are on your own. If its a total
>fiasco, just delete it and let me know what is wrong, and I'll try to
>get onto it tomorrow.

Looks like a great start!

Coupla problems.  I chose all the defaults, except for a "full" install.
Oh yeah, this is on Win95.  :)

1) on the last screen, after the install, it says "you can choose to read
the README file, or launch Apache, by choosing the options below".  There
are no options, just a "finish" button, and as best I can tell it doesn't
launch the server.

2) The whole "Apache Server for Win32" folder got added to the "Startup"
folder, but really only the server binary should be there; the whole folder
should be under the top-level "Programs" menu.  (I went with all the
defaults) And when I follow that link, I get a "searching" dialog box,
suggesting the link wasn't prperly formed.

3) Apache.exe is found under "Modules".  I'd put it one level up, in the
main \Program Files\Apache directory.

4) Apache when it launches looks for "/apache/conf/httpd.conf" instead of
"/Program Files/apache/conf/httpd.conf"  And when I try and say

  apache -f C:\PROGRA~1\Apache\conf\httpd.conf

I get

  fopen: no such file or directory
  httpd: could not open document config file 
    /apache/C:\PROGRA~1\Apache\conf\httpd.conf

Ick!

4.1) So I install in \apache, and everything works, except the server
doesn't come up automatically, like it looks like it's trying to do.  When
started manually it's fine.

5) There's nothing in /src or /htdocs.  Did we decide to ship without these?

6) There's no README

All of these might be relatively easy to fix... I'd hold off on a public
announcement of this binary until these are addressed though.

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"it's a big world, with lots of records to play." - sig   brian@organic.com