From: PEOPLES, M. P (ATTSI) <mp...@at...> - 2011-03-16 21:00:10
|
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 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: Jamie Cameron [mailto:jca...@we...] 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) <mp...@at...> 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 > 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: Jamie Cameron [mailto:jca...@we...] > 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) <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 > > ------------------------------------------------------------------------------ > 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 |