From: Jamie C. <jca...@we...> - 2011-03-14 20:52:18
|
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) <mp...@at...> 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 > mpe...@at... > > 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:rwh...@ar...] > Sent: Monday, March 14, 2011 2:33 PM > To: web...@li... > 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 mp...@at... > > > > 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 mp...@at... > > > > 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 > > mpe...@at... > > > > 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 web...@we... > > 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 web...@we... > 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 web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |