[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-devel
Subject:    Re: [webmin-devel] CORRECTION - PROBLEM NOT SOLVEDRE:Stumbling
From:       "PEOPLES, MICHAEL P (ATTSI)" <mp4783 () att ! com>
Date:       2011-03-20 20:45:31
Message-ID: C038F8186F9F1E4D8F7C0FDAB3317B1209841749 () misout7msgusr7c ! ugd ! att ! com
[Download RAW message or body]

The only way I know how to do this is via the suexec option in Apache.  This version \
of Apache (2.2.16) was not compiled with that option and attempts to do so have \
repeatedly failed (for some reason it doesn't like the OpenSSL install despite the \
fact that it is already using it (--with-ssl).

Running Apache as root is strongly discouraged, so what I'm asking is, do you have a \
way to do this that doesn't involve recompiling Apache to include suexec or running \
Apache under root?

If not, I guess I'll have to get this to compile with suexec.

I did notice some suexec related code within Webmin and was hoping that I could use \
Webmin to configure Apache, stop Webmin, and restart Apache with the new \
configuration.  I haven't found a reference to mod_suexec_directives in the \
webmin/apache directory anywhere, so I can't figure out where to access it.  I \
thought it might be because suexec wasn't compiled into Apache, but that would \
prevent it being referenced in some module.

Michael Peoples
Senior Systems Manager
AT&T - ATTSI
Office:            614-789-8559
Cell:    614-886-0923
FAX:   614-789-8975
mpeoples@att.com

This e-mail and any files transmitted with it are AT&T property, are confidential, \
and are intended solely for the use of the individual or entity to whom this email is \
addressed. If you are not one of the named recipient(s) or otherwise have reason to \
believe that you have received this message in error, please notify the sender and \
delete this message immediately from your computer. Any other use, retention, \
dissemination, forwarding, printing, or copying of this e-mail is strictly \
prohibited."

-----Original Message-----
From: Jamie Cameron [mailto:jcameron@webmin.com] 
Sent: Friday, March 18, 2011 10:05 PM
To: Webmin development list
Subject: Re: [webmin-devel]CORRECTION - PROBLEM NOT SOLVEDRE:StumblingForward RE: \
Getting Webmin torununderApacheforSolaris10-- Creating dent in desk frombanging head.

If you run index.cgi from the command line as root, make sure you run it using
the file path, like /opt/webmin/index.cgi .

If it is run by Apache, it needs to be run as root - or else the scripts won't
have permissions do actually do anything.

 - Jamie

On 18/Mar/2011 15:27 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote ..
> (Sorry for the potential duplicate, I flipped the last one to HTML and it got \
> quarantined on the mail server).
> 
> Firstly, this feels an awful like when I tried to run modules from the command
> line.  I was on an environment variable and "require" merry-go-round that was \
> frustrating. 
> I also want to mention that Apache is running under user 'apache', not 'root',
> if that's relevant.
> 
> ============================================================================================
>  
> I tried executing the index.cgi script as user 'apache' after executing the \
> following: 
> PERLLIB="/opt/webmin"; export PERLLIB
> WEBMIN_CONFIG="/etc/webmin" ; export WEBMIN_CONFIG
> WEBMIN_VAR="/var/webmin" ; export WEBMIN_VAR
> SERVER_ROOT="/opt/webmin" ; export SERVER_ROOT
> MINISERV_CONFIG="/etc/webmin/miniserv.conf" ; export MINISERV_CONFIG
> 
> I got the same error: Undefined subroutine &WebminCore::init_config called at \
> /dev/fd/3 line 7
> 
> ============================================================================================
>  
> I then executed the index.cgi script as user 'root' after executing the following:
> 
> PERLLIB="/opt/webmin"; export PERLLIB
> WEBMIN_CONFIG="/etc/webmin" ; export WEBMIN_CONFIG
> WEBMIN_VAR="/var/webmin" ; export WEBMIN_VAR
> SERVER_ROOT="/opt/webmin" ; export SERVER_ROOT
> MINISERV_CONFIG="/etc/webmin/miniserv.conf" ; export MINISERV_CONFIG
> 
> I got a different error message unrelated to the error above, most likely thrown
> by the web-lib-funcs.pl:
> 
> Error: Script was not run with full path (failed to find ./index.cgi under \
> /opt/webmin) JJ
> -----
> Script was not run with full path (failed to find ./index.cgi under /opt/webmin)
> -----
> 
> ============================================================================================
>  
> I shut down miniserv.pl, changed the Apache config, and restarted Apache cleanly.
> Apache was listening on port 10000.
> 
> I pointed my web browser at https://dubsol10.apt.att.com:10000/test.cgi.
> 
> A dialog box popped up asking for my user name and password.  I supplied that an
> the browser displayed the following.  Some data was removed and replaced with a
> <data> placeholder.  If it is relevant to anyone's analysis, I'll try to provide
> it.
> 
> ============================================================================================
>  
> uid=7788(apache) gid=8777(apache) groups=8777(apache),7000(nobody)
> AUTH_TYPE=Basic
> DOCUMENT_ROOT=/opt/webmin
> GATEWAY_INTERFACE=CGI/1.1
> HTTPS=on
> HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
> HTTP_ACCEPT_ENCODING=gzip,deflate
> HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
> HTTP_CONNECTION=keep-alive
> HTTP_COOKIE=<data>
> HTTP_HOST=dubsol10.apt.att.com:10000
> HTTP_KEEP_ALIVE=115
> HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) \
> Gecko/20101203 Firefox/3.6.13
> MINISERV_CONFIG=/etc/webmin/miniserv.conf
> PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/sbin:/usr/ccs/bin:
> PERL5LIB=
> PERLLIB=/opt/webmin
> QUERY_STRING=
> REMOTE_ADDR=<data>
> REMOTE_PORT=<data>
> REMOTE_USER=root
> REQUEST_METHOD=GET
> REQUEST_URI=/test.cgi
> SCRIPT_FILENAME=/opt/webmin/test.cgi
> SCRIPT_NAME=/test.cgi
> SERVER_ADDR=<data>
> SERVER_ADMIN=mp4783@att.com
> SERVER_NAME=dubsol10.apt.att.com
> SERVER_PORT=10000
> SERVER_PROTOCOL=HTTP/1.1
> SERVER_ROOT=/opt/webmin
> SERVER_SIGNATURE=
> SERVER_SOFTWARE=Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.7d PHP/5.3.3
> SSL_CIPHER=<data>
> SSL_CIPHER_ALGKEYSIZE=<data>
> SSL_CIPHER_EXPORT=false
> SSL_CIPHER_USEKEYSIZE=<data>
> SSL_CLIENT_VERIFY=<data>
> SSL_COMPRESS_METHOD=<data>
> SSL_PROTOCOL=<data>
> SSL_SECURE_RENEG=<data>
> SSL_SERVER_A_KEY=<data>
> SSL_SERVER_A_SIG=<data>
> SSL_SERVER_I_DN=<data>
> SSL_SERVER_I_DN_C=US
> SSL_SERVER_I_DN_CN=VeriSign Class 3 Secure Server CA - G3
> SSL_SERVER_I_DN_O=VeriSign, Inc.
> SSL_SERVER_I_DN_OU=VeriSign Trust Network
> SSL_SERVER_I_DN_OU_1=Terms of use at https://www.verisign.com/rpa (c)10
> SSL_SERVER_M_SERIAL=<data>
> SSL_SERVER_M_VERSION=3
> SSL_SERVER_S_DN=<data>
> SSL_SERVER_S_DN_C=US
> SSL_SERVER_S_DN_CN=dubsol10.apt.att.com
> SSL_SERVER_S_DN_L=<data>
> SSL_SERVER_S_DN_O=<data>
> SSL_SERVER_S_DN_OU=<data>
> SSL_SERVER_S_DN_ST=<data>
> SSL_SERVER_V_END=Feb  1 23:59:59 2012 GMT
> SSL_SERVER_V_START=Feb  1 00:00:00 2011 GMT
> SSL_SESSION_ID=<data>
> SSL_VERSION_INTERFACE=mod_ssl/2.2.16
> SSL_VERSION_LIBRARY=OpenSSL/0.9.7d
> TZ=US/Eastern
> UNIQUE_ID=<data>
> WEBMIN_CONFIG=/etc/webmin
> WEBMIN_VAR=/var/webmin
> 
> ============================================================================================
>  
> Based upon all of the above, this all but has to be a permissions issue
> 
> Thanks again and have a great weekend!
> 
> Michael Peoples
> Senior Systems Manager
> AT&T - ATTSI
> Office:            614-789-8559
> Cell:    614-886-0923
> FAX:   614-789-8975
> mpeoples@att.com
> 
> This e-mail and any files transmitted with it are AT&T property, are confidential,
> and are intended solely for the use of the individual or entity to whom this email
> is addressed. If you are not one of the named recipient(s) or otherwise have reason
> to believe that you have received this message in error, please notify the sender
> and delete this message immediately from your computer. Any other use, retention,
> dissemination, forwarding, printing, or copying of this e-mail is strictly \
> prohibited." 
> 
> -----Original Message-----
> From: Jamie Cameron [mailto:jcameron@webmin.com] 
> Sent: Friday, March 18, 2011 5:00 PM
> To: Webmin development list
> Subject: Re: [webmin-devel]CORRECTION - PROBLEM NOT SOLVED RE:StumblingForward
> RE: Getting Webmin to rununderApacheforSolaris10-- Creating dent in desk from \
> banging head.
> 
> One thing to check is if CGI scripts are being executed by Apache properly
> and with the correct permissions. Try putting a file named test.cgi in the 
> Webmin root directory (/opt/webmin) , and then accessing it in your browser.
> The script should contain :
> 
> #!/bin/sh
> echo Content-type: text/plain
> echo ""
> id -a
> env
> 
> And then post the output here.
> 
> - Jamie
> 
> On 17/Mar/2011 17:30 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote ..
> > No luck with just the PERLLIB setting.  PERL5LIB is set in the default \
> > environment, so it is most likely still "active".  Would that make a difference? \
> > I suppose
> it
> > probably would if webmin can't find the proper Perl.
> > 
> > It tried the following in both files to "suppress" the PERL5LIB value:
> > 
> > SetEnv PER5LIB ""
> > 
> > But it still failed.
> > 
> > Does anyone need to see something in particular to help me here?  I'll provide
> > what I can.
> > 
> > Michael Peoples
> > Senior Systems Manager
> > AT&T - ATTSI
> > Office:            614-789-8559
> > Cell:    614-886-0923
> > FAX:   614-789-8975
> > mpeoples@att.com
> > 
> > This e-mail and any files transmitted with it are AT&T property, are \
> > confidential, and are intended solely for the use of the individual or entity to \
> > whom this
> email
> > is addressed. If you are not one of the named recipient(s) or otherwise have
> reason
> > to believe that you have received this message in error, please notify the sender
> > and delete this message immediately from your computer. Any other use, retention,
> > dissemination, forwarding, printing, or copying of this e-mail is strictly \
> > prohibited." 
> > 
> > -----Original Message-----
> > From: Jamie Cameron [mailto:jcameron@webmin.com] 
> > Sent: Thursday, March 17, 2011 2:22 PM
> > To: Webmin development list
> > Subject: Re: [webmin-devel]CORRECTION - PROBLEM NOT SOLVED RE: StumblingForward
> > RE: Getting Webmin to rununderApache forSolaris10-- Creating dent in desk from
> > banging head.
> > 
> > Are you sure you want to set PERL5LIB as well? That might be overriding PERLLIB
> > , which
> > is set correctly.
> > 
> > On 17/Mar/2011 06:31 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote ..
> > > I jumped the gun on this one.  My browser auto-filled another server with a
> similar
> > > name, and I failed to notice.  
> > > 
> > > The original problem still exists, with the same error messages as before.
> > > 
> > > I placed the following lines in both the main httpd.conf file and the virtual
> > server
> > > definition file.
> > > 
> > > SetEnv PERL5LIB "/usr/local/lib/perl5"
> > > SetEnv PERLLIB "/opt/webmin"
> > > 
> > > What else might I try?
> > > 
> > > Michael Peoples
> > > Senior Systems Manager
> > > AT&T - ATTSI
> > > Office:            614-789-8559
> > > Cell:    614-886-0923
> > > FAX:   614-789-8975
> > > mpeoples@att.com
> > > 
> > > This e-mail and any files transmitted with it are AT&T property, are \
> > > confidential, and are intended solely for the use of the individual or entity \
> > > to whom this
> > email
> > > is addressed. If you are not one of the named recipient(s) or otherwise have
> > reason
> > > to believe that you have received this message in error, please notify the
> sender
> > > and delete this message immediately from your computer. Any other use, \
> > > retention, dissemination, forwarding, printing, or copying of this e-mail is \
> > > strictly
> prohibited."
> > > 
> > > 
> > > -----Original Message-----
> > > From: PEOPLES, MICHAEL P (ATTSI) 
> > > Sent: Thursday, March 17, 2011 9:10 AM
> > > To: Webmin development list
> > > Subject: Re: [webmin-devel] Stumbling Forward RE: Getting Webmin to \
> > > rununderApache for Solaris10-- Creating dent in desk from banging head.
> > > 
> > > That did the trick.  You might wish to consider putting that in the \
> > > documentation also.
> > > 
> > > Thanks.
> > > 
> > > Michael Peoples
> > > Senior Systems Manager
> > > AT&T - ATTSI
> > > Office:            614-789-8559
> > > Cell:    614-886-0923
> > > FAX:   614-789-8975
> > > mpeoples@att.com
> > > 
> > > This e-mail and any files transmitted with it are AT&T property, are \
> > > confidential, and are intended solely for the use of the individual or entity \
> > > to whom this
> > email
> > > is addressed. If you are not one of the named recipient(s) or otherwise have
> > reason
> > > to believe that you have received this message in error, please notify the
> sender
> > > and delete this message immediately from your computer. Any other use, \
> > > retention, dissemination, forwarding, printing, or copying of this e-mail is \
> > > strictly
> prohibited."
> > > 
> > > -----Original Message-----
> > > From: Jamie Cameron [mailto:jcameron@webmin.com] 
> > > Sent: Wednesday, March 16, 2011 7:53 PM
> > > To: Webmin development list
> > > Subject: Re: [webmin-devel]Stumbling Forward RE: Getting Webmin to run \
> > > underApache for Solaris10-- Creating dent in desk from banging head.
> > > 
> > > Sounds like maybe the PERLLIB environment variable isn't set to the webmin
> > > root directory (typically /usr/libexec/webmin or /usr/share/webmin). You will
> > > need to set that in your apache config, like WEBMIN_CONFIG is defined.
> > > 
> > > On 16/Mar/2011 13:57 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote ..
> > > > I have the Apache server responding on port 10000.  It even threw up a \
> > > > "Windows" login dialog box (versus the standard Webmin login page).But now \
> > > > it's throwing internal server (apache) errors:
> > > > 
> > > > Undefined subroutine &WebminCore::init_config called at /dev/fs/4 line 7.
> > > > Premature end of script headers: index.cgi
> > > > 
> > > > I can infer that Perl didn't effectively process the "use WebminCore;" line
> > properly,
> > > > but that may not be the issue.  This message seems very familiar to me for
> > some
> > > > reason.
> > > > 
> > > > Running index.cgi at the command line produces the following error:
> > > > 
> > > > # perl -w ./index.cgi
> > > > Name "WebminCore::STEST" used only once: possible typo at web-lib-funcs.pl
> > line
> > > > 1898.
> > > > Name "main::remote_user" used only once: possible typo at ./index.cgi line
> > 73.
> > > > WEBMIN_CONFIG not set at web-lib-funcs.pl line 3943.
> > > > Use of uninitialized value $callpkg in concatenation (.) or string at \
> > > > web-lib-funcs.pl line 9231.
> > > > Use of uninitialized value $initial_module_name in string eq at \
> > > > web-lib-funcs.pl line 8200.
> > > > Use of uninitialized value in string eq at web-lib-funcs.pl line 8200.
> > > > 
> > > > I would sort of expect that given that key environment variables are not
> set.
> > > > 
> > > > In both the httpd.conf file and the separate included file containing the
> Webmin
> > > > virtual server configuration, I have the four SetEnv statements.
> > > > 
> > > > I'm running Perl 5.12.0 and Webmin 1.530
> > > > 
> > > > Any thoughts?
> > > > 
> > > > Michael Peoples
> > > > Senior Systems Manager
> > > > AT&T - ATTSI
> > > > Office:            614-789-8559
> > > > Cell:    614-886-0923
> > > > FAX:   614-789-8975
> > > > mpeoples@att.com
> > > > 
> > > > This e-mail and any files transmitted with it are AT&T property, are \
> > > > confidential, and are intended solely for the use of the individual or entity \
> > > > to whom this
> > > email
> > > > is addressed. If you are not one of the named recipient(s) or otherwise have
> > > reason
> > > > to believe that you have received this message in error, please notify the
> > sender
> > > > and delete this message immediately from your computer. Any other use, \
> > > > retention, dissemination, forwarding, printing, or copying of this e-mail is \
> > > > strictly
> > prohibited."
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Jamie Cameron [mailto:jcameron@webmin.com] 
> > > > Sent: Monday, March 14, 2011 8:15 PM
> > > > To: Webmin development list
> > > > Subject: Re: [webmin-devel]Getting Webmin to run under Apache for Solaris10--
> > > Creating
> > > > dent in desk from banging head.
> > > > 
> > > > On 14/Mar/2011 16:57 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote ..
> > > > > Jamie,
> > > > > 
> > > > > As always, I very much appreciate your prompt responses and help, as I
> know
> > > you
> > > > > have another life creating other great software.
> > > > > 
> > > > > If I missed, in the documentation, the need to put that directive in the
> > main
> > > > (global)
> > > > > Apache configuration, I apologize.  I really do RTFM before I bother busy
> > people.
> > > > > If I didn't miss it, perhaps if should be added.  I would be happy to make
> > > updates
> > > > > to the documents, particularly in areas where I was confused, but I have
> > no
> > > access.
> > > > 
> > > > Hi Michael,
> > > > 
> > > > The docs didn't mention that as most users who run webmin under apache do
> it
> > > because
> > > > they want or need to use port 80, which apache is already listening on. I
> will
> > > > update
> > > > the docs to mention this.
> > > > 
> > > > > Your question is a good one.  I was going to try it merely to see if there
> > > was
> > > > > an appreciable difference in performance.  What I can tell you within the
> > bounds
> > > > > of proprietary information is, and you may have guessed some of this from
> > previous
> > > > > questions, I (we) are using Webmin on a single server in an attempt to
> provide
> > > > > a front end for Enterprise management.  
> > > > > 
> > > > > We have come a long way and my feeling now is that it was the right \
> > > > > decision. I believe we can leverage existing Webmin code and modules in an \
> > > > > "abstracted"
> > > > manner
> > > > > where the interface is centrally located on an extremely secure server
> with
> > > secure
> > > > > access to large numbers of servers.  
> > > > > 
> > > > > So, I'm not suggesting there were any problems with miniserv.pl.  In fact,
> > > there's
> > > > > no inherent reason I couldn't use it to throw up any "web" language  I
> choose.
> > > > > 
> > > > > Sorry about being a bit fuzzy on the details, but I assure you that I will
> > > make
> > > > > every effort to publish what I can and still keep my job (the mortgage
> company
> > > > > is very fond of that monthly payment).
> > > > > 
> > > > > I'll put that directive in and run some comparative tests.
> > > > 
> > > > Ok, let us know how the performance tests work out ...
> > > > 
> > > > - Jamie
> > > > 
> > > > > Again, thanks for all of the work you've done to help the larger IT \
> > > > > community. 
> > > > > Michael Peoples
> > > > > Senior Systems Manager
> > > > > AT&T - ATTSI
> > > > > Office:            614-789-8559
> > > > > Cell:    614-886-0923
> > > > > FAX:   614-789-8975
> > > > > mpeoples@att.com
> > > > > 
> > > > > This e-mail and any files transmitted with it are AT&T property, are \
> > > > > confidential, and are intended solely for the use of the individual or \
> > > > > entity to whom
> this
> > > > email
> > > > > is addressed. If you are not one of the named recipient(s) or otherwise
> have
> > > > reason
> > > > > to believe that you have received this message in error, please notify
> the
> > > sender
> > > > > and delete this message immediately from your computer. Any other use,
> retention,
> > > > > dissemination, forwarding, printing, or copying of this e-mail is strictly
> > > prohibited."
> > > > > 
> > > > > 
> > > > > -----Original Message-----
> > > > > From: Jamie Cameron [mailto:jcameron@webmin.com] 
> > > > > Sent: Monday, March 14, 2011 4:52 PM
> > > > > To: Webmin development list
> > > > > Subject: Re: [webmin-devel]Getting Webmin to run under Apache for Solaris10
> > > --
> > > > > Creating dent in desk from banging head.
> > > > > 
> > > > > Hi Michael,
> > > > > 
> > > > > Did you add the line :
> > > > > 
> > > > > Listen 10000
> > > > > 
> > > > > to your Apache config? Without this, Apache won't even accept connections
> > on
> > > > > port 10000.
> > > > > 
> > > > > Regarding the speed of Apache vs miniserv, even though Apache is far better
> > > webserver
> > > > > in general and written in a faster language (C), miniserv may actually
> be
> > more
> > > > > efficient
> > > > > for running Webmin as it can execute the perl CGI scripts within the same
> > process,
> > > > > without needing to launch a perl interpreter for each request as Apache
> would.
> > > > > 
> > > > > Could you tell us more about the kind of app you are running, and the \
> > > > > performance issues you are seeing with regular Webmin?
> > > > > 
> > > > > - Jamie
> > > > > 
> > > > > On 14/Mar/2011 12:38 PEOPLES, MICHAEL P (ATTSI) <mp4783@att.com> wrote
> ..
> > > > > > Reports are, there are advantages (speed at least) to running it under
> > Apache.
> > > > > > 
> > > > > > I hope I'm not telling you something you already know, I apologize if
> I
> > am,
> > > > but
> > > > > > the miniserv.pl (the Webmin web server) is essentially a looping Perl
> script.
> > > > > > Rather clever in my opinion and certainly much lighter than a full Apache
> > > implementation.
> > > > > > 
> > > > > > In our particular case, we're doing some unusual things with Webmin,
> so
> > I'm
> > > > trying
> > > > > > to squeeze every ounce of performance out of it.
> > > > > > 
> > > > > > Michael Peoples
> > > > > > Senior Systems Manager
> > > > > > AT&T - ATTSI
> > > > > > Office:            614-789-8559
> > > > > > Cell:    614-886-0923
> > > > > > FAX:   614-789-8975
> > > > > > mpeoples@att.com
> > > > > > 
> > > > > > This e-mail and any files transmitted with it are AT&T property, are
> confidential,
> > > > > > and are intended solely for the use of the individual or entity to whom
> > this
> > > > > email
> > > > > > is addressed. If you are not one of the named recipient(s) or otherwise
> > have
> > > > > reason
> > > > > > to believe that you have received this message in error, please notify
> > the
> > > > sender
> > > > > > and delete this message immediately from your computer. Any other use,
> > retention,
> > > > > > dissemination, forwarding, printing, or copying of this e-mail is \
> > > > > > strictly
> > > > prohibited."
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Ron Wheeler [mailto:rwheeler@artifact-software.com] 
> > > > > > Sent: Monday, March 14, 2011 2:33 PM
> > > > > > To: webadmin-devel@lists.sourceforge.net
> > > > > > Subject: Re: [webmin-devel] Getting Webmin to run under Apache for \
> > > > > > Solaris
> > > > 10
> > > > > --
> > > > > > Creating dent in desk from banging head.
> > > > > > 
> > > > > > Why not just run it the way it is supposed to run on port 10000?
> > > > > > 
> > > > > > Ron
> > > > > > 
> > > > > > On 14/03/2011 2:25 PM, PEOPLES, MICHAEL P (ATTSI) wrote:
> > > > > > > I have spent days trying to get Webmin to run under Apache, but to
> no
> > > > > > > avail.  Despite attempting to follow both follow the instructions to
> > the
> > > > > > > letter, as well as interpret them as best I could, it doesn't work.
> > I'm
> > > > > > > sure it works, because Jamie says it does, and Jamie knows what he's
> > > > > > > talking about.  The problem is me.
> > > > > > > 
> > > > > > > I am trying to run it as a virtual server on a Solaris 10 box running
> > > > > > > Apache 2.2.16.  I did the following:
> > > > > > > 
> > > > > > > Created a virtual server
> > > > > > > 
> > > > > > > <VirtualHost _default_:10000>
> > > > > > > 
> > > > > > > ServerName myserver.att.com:10000
> > > > > > > 
> > > > > > > DocumentRoot /opt/webmin
> > > > > > > 
> > > > > > > ServerAdmin mp4783@att.com
> > > > > > > 
> > > > > > > ErrorLog "/usr/apache2_2_16/logs/error_log"
> > > > > > > 
> > > > > > > TransferLog "/usr/apache2_2_16/logs/access_log"
> > > > > > > 
> > > > > > > ScriptAlias /cgi-bin/ "/usr/apache2_2_16/cgi-bin/"
> > > > > > > 
> > > > > > > ScriptAlias /script-cgi-bin/ "/usr/apache2_2_16/htdocs/scripts/"
> > > > > > > 
> > > > > > > SSLEngine on
> > > > > > > SSLCertificateFile "/usr/apache2_2_16/conf/myserver.crt"
> > > > > > > SSLCertificateKeyFile "/usr/apache2_2_16/conf/myserver.key"
> > > > > > > SSLCACertificateFile "/usr/apache2_2_16/conf/myserver.CA.root.crt"
> > > > > > > SSLCACertificateFile
> > > > > > > "/usr/apache2_2_16/conf/myserver.intermediate.crt"
> > > > > > > 
> > > > > > > <FilesMatch "\.(cgi|shtml|phtml|php)$">
> > > > > > > SSLOptions +StdEnvVars
> > > > > > > </FilesMatch>
> > > > > > > 
> > > > > > > <Directory "/usr/apache2_2_16/cgi-bin">
> > > > > > > SSLOptions +StdEnvVars
> > > > > > > </Directory>
> > > > > > > 
> > > > > > > BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown
> > > > > > > downgrade-1.0 force-response-1.0
> > > > > > > 
> > > > > > > CustomLog "/usr/apache2_2_16/logs/ssl_request_log"           "%t
> > %h
> > > > > > > %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> > > > > > > 
> > > > > > > <Directory "/opt/webmin">
> > > > > > > allow from all
> > > > > > > Options +Indexes
> > > > > > > AuthName Webmin
> > > > > > > AuthType basic
> > > > > > > AuthUserFile /etc/webmin/htusers
> > > > > > > require valid-user
> > > > > > > </Directory>
> > > > > > > 
> > > > > > > </VirtualHost>
> > > > > > > 
> > > > > > > Added AddHandler directive to MAIN Apache configuration section
> > > > > > > 
> > > > > > > AddHandler cgi-script .cgi
> > > > > > > 
> > > > > > > Added index.cgi directive to MAIN Apache configuration section
> > > > > > > 
> > > > > > > DirectoryIndex index.html index.cgi
> > > > > > > 
> > > > > > > Added the following directives to MAIN Apache configuration section
> > > > > > > 
> > > > > > > 		SetEnv WEBMIN_CONFIG /etc/webmin
> > > > > > > 		SetEnv WEBMIN_VAR /var/webmin
> > > > > > > 		SetEnv SERVER_ROOT /opt/webmin
> > > > > > > 		SetEnv MINISERV_CONFIG /etc/webmin/miniserv.conf
> > > > > > > 
> > > > > > > Added the following directives to MAIN Apache configuration section
> > > > > > > 
> > > > > > > <Directory "/opt/webmin">
> > > > > > > allow from all
> > > > > > > Options +Indexes
> > > > > > > AuthName Webmin
> > > > > > > AuthType basic
> > > > > > > AuthUserFile /etc/webmin/htusers
> > > > > > > require valid-user
> > > > > > > </Directory>
> > > > > > > 
> > > > > > > 
> > > > > > > /etc/webmin/htusers file setup
> > > > > > > 
> > > > > > > Again, it's not clear what is being requested here.  I created a file
> > > > > > > with each of the users in it, one to a line, like the following:
> > > > > > > 
> > > > > > > 		root
> > > > > > > 		user1
> > > > > > > 		user2
> > > > > > > 
> > > > > > > I also tried using htpasswd to create a file called \
> > > > > > > /etc/webmin/htusers, but that also did not change things.
> > > > > > > 
> > > > > > > To be frank, I'm not sure what should be in this file.  Explicit
> > > > > > > examples would be helpful.
> > > > > > > 
> > > > > > > Ran the ownership and permission attribute change commands
> > > > > > > 
> > > > > > > 		chown -R root:root /opt/webmin
> > > > > > > 		chmod -R 6755 /opt/webmin
> > > > > > > 
> > > > > > > > From directory /opt/webmin, ran the following command
> > > > > > > 
> > > > > > > find . -name "*.cgi" -o -name "*.pl" | perl perlpath.pl "/usr/bin/perl
> > > > > > > -U" -
> > > > > > > 
> > > > > > > Configure Webmin to use the 'Default Webmin Theme'
> > > > > > > 
> > > > > > > There's nothing I could do here.  The only theme I have is the "blue"
> > > > > > > theme.  There is nothing in the Webmin Solaris package that might be
> > > > > > > considered a "default theme".
> > > > > > > 
> > > > > > > I also tried it putting all (or most) of the above within the virtual
> > > > > > > host definition:
> > > > > > > 
> > > > > > > <VirtualHost _default_:10000>
> > > > > > > 
> > > > > > > ServerName myserver.att.com:10000
> > > > > > > 
> > > > > > > DocumentRoot /opt/webmin
> > > > > > > 
> > > > > > > ServerAdmin mp4783@att.com
> > > > > > > 
> > > > > > > ErrorLog "/usr/apache2_2_16/logs/error_log"
> > > > > > > 
> > > > > > > TransferLog "/usr/apache2_2_16/logs/access_log"
> > > > > > > 
> > > > > > > ScriptAlias /cgi-bin/ "/usr/apache2_2_16/cgi-bin/"
> > > > > > > 
> > > > > > > ScriptAlias /script-cgi-bin/ "/usr/apache2_2_16/htdocs/scripts/"
> > > > > > > 
> > > > > > > SSLEngine on
> > > > > > > SSLCertificateFile "/usr/apache2_2_16/conf/myserver.crt"
> > > > > > > SSLCertificateKeyFile "/usr/apache2_2_16/conf/myserver.key"
> > > > > > > SSLCACertificateFile "/usr/apache2_2_16/conf/myserver.CA.root.crt"
> > > > > > > SSLCACertificateFile
> > > > > > > "/usr/apache2_2_16/conf/myserver.intermediate.crt"
> > > > > > > 
> > > > > > > AddHandler cgi-script .cgi
> > > > > > > 
> > > > > > > <FilesMatch "\.(cgi|shtml|phtml|php)$">
> > > > > > > SSLOptions +StdEnvVars
> > > > > > > </FilesMatch>
> > > > > > > 
> > > > > > > <Directory "/usr/apache2_2_16/cgi-bin">
> > > > > > > SSLOptions +StdEnvVars
> > > > > > > </Directory>
> > > > > > > 
> > > > > > > BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown
> > > > > > > downgrade-1.0 force-response-1.0
> > > > > > > 
> > > > > > > CustomLog "/usr/apache2_2_16/logs/ssl_request_log"           "%t
> > %h
> > > > > > > %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> > > > > > > 
> > > > > > > <Directory "/opt/webmin">
> > > > > > > allow from all
> > > > > > > Options +Indexes
> > > > > > > AuthName Webmin
> > > > > > > AuthType basic
> > > > > > > AuthUserFile /etc/webmin/htusers
> > > > > > > require valid-user
> > > > > > > </Directory>
> > > > > > > 
> > > > > > > SetEnv WEBMIN_CONFIG "/etc/webmin"
> > > > > > > SetEnv WEBMIN_VAR "/var/webmin"
> > > > > > > SetEnv SERVER_ROOT "/opt/webmin"
> > > > > > > SetEnv MINISERV_CONFIG "/etc/webmin/miniserv.conf"
> > > > > > > </VirtualHost>
> > > > > > > 
> > > > > > > I restarted Apache after each change, but never got the Webmin site
> or
> > > > > > > any error messages even referring to it.  Nothing was listening on
> port
> > > > > > > 10000.
> > > > > > > 
> > > > > > > I also tried the "Apache In A Sub-Directory" method, but it didn't
> work.
> > > > > > > 
> > > > > > > If I fire up Webmin as I normally would, it works.  I just can't get
> > it
> > > > > > > to work under Apache.
> > > > > > > 
> > > > > > > Sorry for the long e-mail, but thanks for any help anyone can offer.
> > > > > > > 
> > > > > > > Michael Peoples
> > > > > > > Senior Systems Manager
> > > > > > > AT&T - ATTSI
> > > > > > > Office:            614-789-8559
> > > > > > > Cell:    614-886-0923
> > > > > > > FAX:   614-789-8975
> > > > > > > mpeoples@att.com
> > > > > > > 
> > > > > > > This e-mail and any files transmitted with it are AT&T property, are
> > > > > > > confidential, and are intended solely for the use of the individual
> or
> > > > > > > entity to whom this email is addressed. If you are not one of the named
> > > > > > > recipient(s) or otherwise have reason to believe that you have received
> > > > > > > this message in error, please notify the sender and delete this message
> > > > > > > immediately from your computer. Any other use, retention, \
> > > > > > > dissemination, forwarding, printing, or copying of this e-mail is \
> > > > > > > strictly prohibited." 
> > > > > > > 
> > > > > > > 
> > > > > > > ------------------------------------------------------------------------------
> > > > > > >  Colocation vs. Managed Hosting
> > > > > > > A question and answer guide to determining the best fit
> > > > > > > for your organization - today and in the future.
> > > > > > > http://p.sf.net/sfu/internap-sfd2d
> > > > > > > -
> > > > > > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > > > > > To remove yourself from this list, go to
> > > > > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > > ------------------------------------------------------------------------------
> > > > > >  Colocation vs. Managed Hosting
> > > > > > A question and answer guide to determining the best fit
> > > > > > for your organization - today and in the future.
> > > > > > http://p.sf.net/sfu/internap-sfd2d
> > > > > > -
> > > > > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > > > > To remove yourself from this list, go to
> > > > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > > > > 
> > > > > > ------------------------------------------------------------------------------
> > > > > >  Colocation vs. Managed Hosting
> > > > > > A question and answer guide to determining the best fit
> > > > > > for your organization - today and in the future.
> > > > > > http://p.sf.net/sfu/internap-sfd2d
> > > > > > -
> > > > > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > > > > To remove yourself from this list, go to
> > > > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > > > 
> > > > > ------------------------------------------------------------------------------
> > > > >  Colocation vs. Managed Hosting
> > > > > A question and answer guide to determining the best fit
> > > > > for your organization - today and in the future.
> > > > > http://p.sf.net/sfu/internap-sfd2d
> > > > > -
> > > > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > > > To remove yourself from this list, go to
> > > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > > 
> > > > ------------------------------------------------------------------------------
> > > >  Colocation vs. Managed Hosting
> > > > A question and answer guide to determining the best fit
> > > > for your organization - today and in the future.
> > > > http://p.sf.net/sfu/internap-sfd2d
> > > > -
> > > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > > To remove yourself from this list, go to
> > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > 
> > > ------------------------------------------------------------------------------
> > > Colocation vs. Managed Hosting
> > > A question and answer guide to determining the best fit
> > > for your organization - today and in the future.
> > > http://p.sf.net/sfu/internap-sfd2d
> > > -
> > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > To remove yourself from this list, go to
> > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > > 
> > > ------------------------------------------------------------------------------
> > > Colocation vs. Managed Hosting
> > > A question and answer guide to determining the best fit
> > > for your organization - today and in the future.
> > > http://p.sf.net/sfu/internap-sfd2d
> > > -
> > > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > > To remove yourself from this list, go to
> > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> > 
> > ------------------------------------------------------------------------------
> > Colocation vs. Managed Hosting
> > A question and answer guide to determining the best fit
> > for your organization - today and in the future.
> > http://p.sf.net/sfu/internap-sfd2d
> > -
> > Forwarded by the Webmin development list at webmin-devel@webmin.com
> > To remove yourself from this list, go to
> > http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> 
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> -
> Forwarded by the Webmin development list at webmin-devel@webmin.com
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
-
Forwarded by the Webmin development list at webmin-devel@webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic