Debian安装Webmin+Virtualmin
打造LAMP(linux Apache2 Mysql-server-5.0 PHP5)虚拟主机管理系统,使用到的是大名鼎鼎的Webmin与Virtualmin模块.
详细安装步骤:
在debian上安装webmin+virtualmin虚拟主机管理系统
最小化安装debian 5.0
- apt源 ( /etc/apt/sources.list )
- deb http://mirrors.163.com/debian stable main contrib main non-free
- deb-src http://mirrors.163.com/debian stable main contrib main non-free
- apt-get update
- apt-get install perl -y
- apt-get install libnet-ssleay-perl openssl libauthen-pam-perl libio-pty-perl libmd5-perl -y
- wget -c http://prdownloads.sourceforge.net/webadmin/usermin_1.400_all.deb
- dpkg -i usermin_1.40_all.deb
- wget -c http://software.virtualmin.com/gpl/scripts/install.sh
- chmod +x install.sh
- ./install.sh
- The systems currently supported by install.sh are:
- CentOS 4 and 5 on i386 and x86_64
- Debian 4.0 and 5.0 on i386 and amd64
- Ubuntu 8.04 LTS on i386 and amd64
- If your OS is not listed above, this script will fail. More details
- about the systems supported by the script can be found here:
- Continue? (y/n) Y
- Please enter a fully qualified hostname (for example, example.com): debian.com #输入您的域名
- 安装开始..
- #-------------------------------------------------------------------------------------------
- INFO - Removing Debian standard Webmin package, if they exist (because they're broken)...
- INFO - Removing Debian apache packages...
- INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip postfix-tls
- ...in progress, please wait...
- 在这段上会卡住比较久,正在下载并安装,请不要CTRL + C 我停留了大概15分钟的时间,具体的时间取决于机器的网速
- #-------------------------------------------------------------------------------------------
- INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base
- ...in progress, please wait...
- Extracting templates from packages: 100%
- Extracting templates from packages: 100%
- 这里也会比较久 也是15分钟左右, 然后安装就结束了.
- 最后再加这些:
- debian:~# vi /etc/php5/apache2/php.ini
- 加入 extension=mysql.so 使php5支持mysql
- 还有安装GD库 ( 虚拟主机必不可少的 )
- debian:~# apt-get install php5-gd -y
- #-------------------------------------------------------------------------------------------
软件都自动安装上了,例如常用的 apache2 mysql-server-5.0 php5 ssh postfix quota bind9 等等..
用 https://YourDomainName:10000 登陆,本机的root账号密码登陆.
debian 升级到6 竟然 sh ./install.sh时候检测到不到是合适的版本
你好,还未使用过debian 6
毡鞋博主的风箱