2回答

0收藏

webmin1.7.5安装教程

 

工程问答 工程问答 1612 人阅读 | 2 人回复 | 2015-06-20

Webmin是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前Webmin支持绝大多数的Unix系统,这些系统除了各种版本的linux以外还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。

安装Webmin:
用Putty或xshell等ssh客户端登陆服务器,逐行执行下面的命令:

  1. cd /usr/local/src

  2. wget [url]http://jaist.dl.sourceforge.net/project/webadmin/webmin/1.750/webmin-1.750.tar.gz[/url]

  3. tar zxvf webmin-1.750.tar.gz

  4. cd webmin-1.750

  5. chmod 777 ./setup.sh

  6. ./setup.sh
复制代码


开始安装:
1.选择webmin配置文件路径,如果自己要修改,输入新的路径后按回车确认,一般直接按回车默认即可。
1.png


2.选择日志文件路径,如果自己要修改,输入新的路径后按回车确认,一般直接按回车默认即可。

2.png


3.选择perl模块的安装路径,一般按回车默认即可。

3.png


4.选择访问webmin的服务器端口,默认是10000,建议更改为别的端口,以增加安全性,比如改成18888。

4.png


5.输入管理员用户名,默认是admin,建议更改,以增加安全性。

5.png


6.输入管理员密码:

6.png


7.再输入一次密码:

7.png


8.是否开启SSL,输入n回车,选择y后会以https:// 访问,也可以选择y
QQ截图20150620223021.png



9.选择是否开机启动,输入y后回车

8.png


10.安装完成,用浏览器访问你的服务器ip地址和相应端口进入webmin
如你的服务器ip是127.0.0.1,第四步输入的端口是18888,则访问http://127.0.0.1:18888进入webmin

回答|共 2 个

admin

admin 发表于 2015-6-20 23:30:32 | 显示全部楼层

webmin上安装最新版Virtualmin模块
Virtualmin是一个基于Webmin的虚拟主机管理模块。在自己的虚拟机上安装了Virtualmin,发现他的功能十分强大。个人感觉不比商业化的虚拟主机管理工具如DirectAdmin差。Virtualmin提供了完美的中文支持。
Virtualmin默认使用如下组件:  Apache, BIND, Postfix ,MySQL ,ProFTPD
我是以webmin的模块模式安装,点击 webmin>webmin配置>webmin模块>选中从 ftp 或 http URL这项,复制virtualmin的下载地址进去,这样就可以直接下载并安装了。当然也可以先下载在服务器再安装了。可以到webmin官方站点查看 最新的virtualmin模块的下载地址。



http://download.webmin.com/downl ... ver-3.77.gpl.wbm.gz

(直接修改版本号就能获得你想要的安装的virtualmin版本)

安装virtualmin之后,就会在webmin服务器栏里出现virtualmin这一项了,点击后要做些基本的设置才能正常使用。virtualmin有好几个功能插件,包括BIND DNS、apache、mysql、proftp、邮件等,在Features and Plugins这项里选择,看你需要哪些就选哪些,否则就不要选。(BING DNS 域和 域邮件 不要装 既占用内存 安装时麻烦提示错误)



我选了个apache,MySQL,保存,很可能会提示出错:

Suexec is enabled in the default template, but the Apache module mod_suexec is not installed or not enabled.

或者是这样的出错提示:

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

出现类似这些错误提示的解决办法是:

登陆SSL 以root 身份执行下面命令



mount –bind /var/www /home 安装完后编辑

/ etc / fstab 文件加入 /var/www /home none bind 这行



方法2:不推荐

virtualmin配置服务器模板:

选择配置服务器模板,左边栏System Settings——服务器模板,点击Default Settings,选择Apache网站,在“新网站指令和设置”尾部添加 php_admin_value open_basedir ${HOME}    (这行好像不加也行?) 把“自动添加适当的SuExec指令吗?”改为否,然后保存。

admin

admin 发表于 2015-6-20 23:31:19 | 显示全部楼层

webmin&virtualmin 安装时出现问题的解决方法
全局语言设置:webmin -> webmin Configuration -> Language

全局界面设置:webmin -> webmin Configuration -> Webmin Themes

个人语言及界面设置:webmin -> Change Language and Theme

设置https访问: webmin -> Webmin Configuration -> SSL Encryption -> Enable

检查Virtualmin环境:Server-> Virtualmin Virtual Servers (GPL)





The BIND DNS server version 8 or 9 does not appear to be installed on your system, or has not yet been set up properly in Webmin’s BIND DNS Server module. If your system does not use BIND, it should be disabled in Virtualmin’s module configuration page.

————————–

安装以下包:

bind-libs–6.P1.el5.i386.rpm

bind–6.P1.el5.i386.rpm

bind-chroot–6.P1.el5.i386.rpm

bind-devel–6.P1.el5.i386.rpm

bind-libbind-devel–6.P1.el5.i386.rpm

bind-utils–6.P1.el5.i386.rpm

postgresql-libs–1. el5_1.1.i386.rpm

bind-sdb–6.P1.el5.i386.rpm

caching-nameserver–6.P1.el5.i386.rpm

安装完成后点击” BIND DNS Server”链接

选择第一个选项

” Setup nameserver for internal non-internet use only”

然后点击”Create Primary Configuration File and Start Nameserver”按钮。





Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.

—————————-

点击” list of DNS servers”链接,在” DNS servers”项中填入本机的IP地址,然后点击”save”按钮。

None of the supported mail servers (Sendmail, Postfix and Qmail) were detected on your system. Maybe they are not installed, or their Webmin modules have not been set up properly.

——————————-

安装以下包: cyrus-sasl-2.1.22-4.i386.rpm postfix-2.3.3-2.i386.rpm

A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration

————————-

点击” Postfix configuration”链接,然后点击” Virtual Domains”链接,在” Domain mapping lookup table”选项里选择” Map specifications”一项,在后面的文本框里输入” hash:/etc/postfix/virtual”,然后点击”Save and Apply”按钮。

The Apache webserver does not appear to be installed on your system, or has not yet been set up properly in Webmin’s Apache Webserver module. If your system does not use Apache, it should be disabled in Virtualmin’s module configuration page.

—————————-

安装以下包: apr-1.2.7-11.i386.rpm apr-util-1.2.7-7.el5.i386.rpm mailcap-2.1.23-1.fc6.noarch.rpm

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed. —————————-

点击” Virtualmin Virtual Servers (GPL)”,然后点击”Edit Server Templates”,点击”Default Settings”在” Edit template section”选项后面选择”Apache website”,在Automatically add appropriate SuExec directive?后面选择“No”,然后点击”Save”按钮。

Webalizer does not appear to be installed on your system, or has not yet been set up properly in Webmin’s Webalizer Logfile Analysis module. If your system does not use Webalizer, it should be disabled in Virtualmin’s module configuration page.

—————————–

安装以下包: freetype-2.2.1-19.el5.i386.rpm fontconfig-2.4.1-7.el5.i386.rpm libXau-1.0.1-3.1.i386.rpm libXdmcp-1.0.1-2.1.i386.rpm xorg-x11-filesystem-7.1-2.fc6.noarch.rpm libX11-1.0.3-9.el5.i386.rpm libXpm-3.5.5-3.i386.rpm libjpeg-6b-37.i386.rpm libpng-1.2.10-7.1.el5_0.1.i386.rpm pkgconfig-0.21-2.el5.i386.rpm gd-2.0.33-9.4.el5_1.1.i386.rpm webalizer-2.01_10-30.1.i386.rpm

MySQL does not appear to be installed and running on your system, or has not yet been set up properly in Webmin’s MySQL Database module. If your system does not use MySQL, it should be disabled in Virtualmin’s module configuration page.

—————————-

perl-DBI-1.52-1.fc6.i386.rpm mysql-5.0.45-7.el5.i386.rpm perl-DBD-MySql-3.007-1.fc6.ie85.rpm mysql-server-5.0.45-7.el5.i386.rpm (需要启动mysql数据库,最好设置root用户密码)







The Logrotate program does not appear to be installed on your system, or has not yet been set up properly in Webmin’s Log File Rotation module. If your system does not use Logrotate, it should be disabled in Virtualmin’s module configuration page.

——————

安装以下包: logrotate-3.7.4-8.i386.rpm



Quotas are not enabled on the filesystem / which contains home directories under /home and email files under /var/spool/mail. Quota editing has been disabled. ————————-

此项可以跳过,如需解决,方式如下: 安装以下包: quota-3.13-1.2.3.2.el5.i386.rpm  vim /etc/fstab 修改第一行为以下格式 /dev/VolGroup00/LogVol00 / ext3     defaults,noatime,usrquota,grpquota 1  0 保存文件,退出。 重新mount mount -o remount / 检测整个系统 quotacheck -acguvm quotaon -avug 看看结果 repquota -a

Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

———————

此项可以跳过,但为了提供FTP服务,先安装以下包: vsftpd-2.0.5-12.el5.i386.rpm 在/etc/shells文件末尾处添加/bin/false
您需要登录后才可以回帖 登录 | 注册

本版积分规则

郑重声明:本站属技术交流,非赢利性网站。
本站言论纯属发表者个人意见,与“建筑在线”立场无关。
涉及政治言论一律删除,请所有会员注意. 本站资源由会员从网上收集整理所得,版权属于原作者。
本站所有资源是进行学习和科研测试之用,请在下载后24小时删除
本站出于学习和科研的目的进行交流和讨论,如有侵犯原作者的版权
请来信告知,我们将立即做出整改,并给予相应的答复,谢谢合作!