|
From: PEOPLES, M. P (ATTSI) <mp...@at...> - 2011-03-14 18:26:14
|
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."
|