httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: Win32 binary
Date Sat, 18 Oct 1997 18:19:10 GMT
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

Mime
View raw message