1小时配置功能强大的开源主机管理系统 — ISPCP

九月 25th, 2009 Posted in 1.操作系统, Centos, ISPCP, Ubuntu | 阅读次数: 1,343 次

制作:高进波
时间:2009-09-03

成功案例:www.hostcoming.com

IspCP Omega 简单介绍:
IspCP 是作为另一款开源虚拟主机管理系统VHCS2的替代产品,采用Apache2+PHP5(fastcgi模式,支持每个虚机独立的 php.ini)+MySQL5(提供内置的phpmyadmin)提供 Web 服务(也支持传统的 CGI),FTP 采用 Proftpd(也支持 webftp 功能),邮件是 postfix+courier+squirrermail,和 IspCPH管理平台(PHP 代码,支持管理员、代理商、虚拟主机用户三级用户,相互之间可以自由切换,自由增加子域名、FTP、MySQL、Mail 账号),另外对于每个虚拟主机都有独立的每天完整备份机制(可以用 FTP 下载)

1.环境
centos 5.3 x86
php5.2.x
注:php5.3不能正常运行ispcp1.02,会有很多BUG出现

yum –enablerepo=remi install php-5.2.10

2.下载安装依赖包
wget http://nchc.dl.sourceforge.net/project/ispcp/ispCP%20Omega/ispCP%20Omega%201.0.2/ispcp-omega-1.0.2.tar.bz2

tar xvjf ispcp-omega-1.0.2.tar.bz2
cd ispcp-omega-1.0.2
yum install `cat ./docs/CentOS/centos-packages`

先配置cpan
perl -MCPAN -e shell
一路YES,最后url输入两个
http://mirrors.geoexpat.com/cpan/
http://cpan.nctu.edu.tw/

cat ./docs/CentOS/centos-perl | xargs -I {} perl -MCPAN -e ‘install {}’

yum remove sendmail
yum install redhat-lsb

3.安装courier和mod_fcgi
wget http://www.thatfleminggent.com/packages/centos/5/i386/courier-authlib-0.62.2-1.el5.mf.i386.rpm
wget http://www.thatfleminggent.com/packages/centos/5/i386/courier-authlib-userdb-0.62.2-1.el5.mf.i386.rpm
wget http://www.thatfleminggent.com/packages/centos/5/i386/courier-imap-4.4.1-1.el5.mf.i386.rpm

groupadd courier -g 3000
useradd -u 3000 -c ‘Courier Mail Server’ -d /dev/null -g courier -s /bin/false courier

rpm -ivh courier*.rpm

wget http://centos.karan.org/el5/extras/testing/i386/RPMS/mod_fcgid-2.2-4.el5.kb.i386.rpm
rpm -i mod_fcgid-2.2-4.el5.kb.i386.rpm

4.安装
rm -f /etc/httpd/conf.d/*
cd ispcp-omega-1.0.2
sudo make -f Makefile.centos install

cp -RLf /tmp/ispcp/* /
ln -s /etc/rc.d/init.d /etc/init.d
mkdir /var/mail/virtual

5.配置bind和SASL and Postfix

mv /var/named/data /var/named/data2
ln -s /var/named/chroot/var/named/data /var/named/data

SASL and Postfix:
touch /etc/sasldb2
mkdir -p /var/spool/postfix/etc
cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2

vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

6.配置apache
echo ‘include vhosts/*.conf’ >> /etc/httpd/conf/httpd.conf
chown apache:apache /var/www/ispcp/gui/tools/webmail/data

7.Setup the system
cd /var/www/ispcp/engine/setup
perl ./ispcp-setup
rm -fR /tmp/ispcp

8.修得proftpd不能启动问题
vi /etc/proftpd.conf

DisplayFirstChdir修改为DisplayChdir

AuthOrder mod_sql.c mod_auth_pam.c* mod_auth_unix.c
修改为
AuthOrder mod_sql.c

9.自动启动相关服务
chkconfig –levels 345 ispcp_daemon on
chkconfig –levels 345 ispcp_network on
chkconfig –levels 235 postfix on
chkconfig –levels 235 httpd on
chkconfig –levels 235 mysqld on
chkconfig –levels 235 proftpd on

完成!

随机日志

3 Responses to “1小时配置功能强大的开源主机管理系统 — ISPCP”

  1. watch full movies online Says:

    Great Post!…

    [...] I found your entry interesting thus I’ve added a Trackback to it on my weblog :) [...]…


  2. gaojinbo Says:

    good man.Thank you!


  3. Pokersubito freeroll Says:

    [...]these online websites may possibly not be entirely related towards our web site however we unquestionably feel you all really should go to all of them[...]…

    [...]underneath you’ll discover the links to numerous webpages which we believe you should really visit[...]…


留下您的脚印