ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/10/27/17:27:54

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: "Cygwin-Apps" <cygwin-apps AT cygwin DOT com>
Cc: <tolj AT wapme-systems DOT de>, <webadmin-devel AT lists DOT sourceforge DOT net>
Subject: [PATCH]webmin with camp and cygwin
Date: Sat, 27 Oct 2001 23:32:10 +0200
Message-ID: <003d01c15f2e$d5b75220$651c440a@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400


for an intranet project in our company I have problems with iis and try to
migrate to apache. Apache is avaliable for windows or cygwin, but graphical
remote configuring apache was left. As I'm using webmin for other linux based
web server, I tried to use webmin on cygwin for doing this.

So I've downloaded camp 0.9 and webmin 0.88 and install it under cygwin 1.3.3.

Then after installing webmin I run into problems, because the main page could
be loaded, but if entering other pages in the server area ,for example apache,
fails with a "500 bad header" error.

Because my perl knowledge isn't good enough to understand and analyse
this problem with webmin's miniserv (with perl 5.6.1), I tried to configure
the camp distribution to enable apache configuring with webmin.

Now it's working, except authentification. Currently it uses a default
user 'admin' which is set in the apache VirtualHost configuration.

To enable webmin with the apache server, add/patch the below mentioned files.
Currently I have tested not very deeply, so there might be some more
places to patch, but for me it works.

1. restarting/stopping/starting apache does not work, because the webmin
   frontend depends on the apache server and doing this actions causes
   lost connections. So you have to restart apache remote over telnet or
   something else.

1. Install camp										http://apache.dev.wapme.net/packages/

2. Install webmin 								http://www.webmin.com
 	 use the "Linux from scratch" operations system

3. patch the below mentioned files.

4. restart apache

5. Start a browser and enter 	http://webmin/
	 (if you have used the below mentioned servername and HOSTS entry)

Note: Because my apache and webmin configuration knowledge is only
      very basic, please don't ask me for relating configuration hints.
      If you have questions, please look in the faq or mailing list on
      the relates web sites.

Have fun

Ralf Habacker

/usr/local/apache/conf/http.conf - add text

# This must be first for providing working localhost
<VirtualHost *>
    DocumentRoot /usr/local/apache/htdocs/
    ServerName <your workstation name>
    ErrorLog logs/error_log
    CustomLog logs/access_log common
  	DirectoryIndex index.html
		<Directory />
		    Options FollowSymLinks
		    AllowOverride Options

<VirtualHost *>
    ServerAdmin webmin AT localhost
    DocumentRoot /usr/local/webmin-0.88/
    ServerName webmin 	# or something else you want
    ErrorLog logs/webmin-error_log
    CustomLog logs/webmin-access_log common
		SetEnv WEBMIN_CONFIG /etc/webmin
		SetEnv WEBMIN_VAR 	 /var/webmin
		SetEnv REMOTE_USER	 admin
  	DirectoryIndex index.cgi
	  AddHandler cgi-script cgi pl
		<Directory />
		    Options FollowSymLinks +ExecCGI
		    AllowOverride Options

NameVirtualHost *

/c/winnt/system32/drivers/etc/hosts - add text
webmin or other ip adress your pc support

/usr/local/webmin-0.88/apache/reconfig_form.cgi - patch
$ diff reconfig_form.cgi.orig  reconfig_form.cgi -ubB
--- reconfig_form.cgi.orig      Sat Oct 27 20:52:34 2001
+++ reconfig_form.cgi   Sat Oct 27 20:52:56 2001
@@ -31,6 +31,12 @@
        elsif ($l->{'words'}->[1] =~ /lib([^\/\s]+)\.so/ && -r "mod_$1.pl") {
+       elsif ($l->{'words'}->[1] =~ /(mod_\S+)\.dll/ && -r "$1.pl") {
+               $inst{$1}++;
+               }
+       elsif ($l->{'words'}->[1] =~ /lib([^\/\s]+)\.dll/ && -r "mod_$1.pl") {
+               $inst{"mod_$1"}++;
+               }

 # build list of supported modules


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019