亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 2023 | 回復(fù): 2
打印 上一主題 下一主題

在redhat,fedora3,fedora4和centOS4.x上安裝vhcs2 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2006-04-06 17:39 |只看該作者 |倒序?yàn)g覽
在redhat,fedora3,fedora4和centOS4.x上安裝vhcs2

來(lái)源:http://oisp.net

好多朋友在問我,怎么在redhat9,fedora3,fedora4以及centOS上安裝vhcs2。
就寫了這篇文章,希望對(duì)大家有用,感謝支持我的朋友們!


在redhat,fedora3,fedora4和centOS4.x上安裝vhcs2的步驟:

1.裝redhat系統(tǒng)時(shí),對(duì)于新手來(lái)說(shuō),建議在裝系統(tǒng)時(shí)選擇everything,把所有的rpm包都裝上。并且不要用啟用SElinux
如果你是老鳥,那就另當(dāng)別論了~ ~。

2.我建議用redhat的apt來(lái)安裝,這樣對(duì)于以后裝其他的都容易點(diǎn)。
wget http://ftp.freshrpms.net/pub/fre ... 1.1.fc3.fr.i386.rpm
rpm -Uvh apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm
apt-get update
apt-get dist-upgrade

3.運(yùn)行:apt-get install  php-pear php-imap php-gd ncftp \
                         bind libmcrypt libmcrypt-devel \
                         libmcrypt libmcrypt-devel \
                         libxslt-devel libjpeg-devel libpng-devel \
                         freetype-devel libc-client-devel php-imap \
                         php-snmp net-snmp-devel



4.修改/etc/fstab系統(tǒng)支持quota
例如:把LABEL=/   /   ext3    defaults    1 1修改成:
        LABEL=/   /   ext3    defaults,usrquota     1 1
# touch /aquota.user
# chmod 600 /aquota.user
# mount -o remount /
# quotacheck -avugm


5.安裝ftp服務(wù)proftpd:

wget ftp://ftp.ibiblio.org/pub/mirror ... oftpd-1.2.10.tar.gz
tar zxvf proftpd-1.2.10.tar.gz
mv proftpd-1.2.10 proftpd
cd /usr/local/proftpd
./configure \
--sysconfdir=/etc \
--localstatedir=/var \
--prefix=/usr \
--with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql \
--with-includes=/usr/include/mysql \
--with-libraries=/usr/lib/mysql
make
make install

6.redhat安裝vhcs2時(shí),一般都必須安裝perl的一些模塊:

# perl -MCPAN -e shell
After configuring CPAN ( multiple prompts ), install the following modules:
cpan> install MIME::Entity MIME:arser MIME::Base64 Crypt::CBC Crypt::Blowfish Term::ReadPassword

7.安裝openssl-perl:
apt-get install openssl-perl*    #不安裝的話,將會(huì)在安裝courier時(shí)出現(xiàn)錯(cuò)誤。


8.如果要自己重新編譯安裝php的話,使用下面命令:
cd /usr/local/
wget http://us2.php.net/distributions/php-4.3.10.tar.bz2
tar xjvf php-4.3.10.tar.bz2
mv php-4.3.10 php
cd php
./configure \
--with-mysel --with-pgsql --with-mcrypt=/usr/lib \
--build=i386-redhat-linux --target=i386-redhat-linux-gnu \
--with-jpeg --with-openssl --with-png \
--with-pear --with-calendar --with-xml \
--with-ftp --with-freetype --with-bz2 --with-iconv \
--sysconfdir=/etc --mandir=/usr/share/man \
--enable-sockets --enable-calendar --enable-bcmath \
--enable-ctype --enable-exif --enable-filepro \
--enable-ftp --enable-memory-limit \
--enable-sigchild --enable-magic-quotes \
--enable-yp --enable-track-vars \
--with-apxs2=/usr/sbin/apxs
make  
make instal

也可以使用系統(tǒng)自己安裝配置的php。


9.安裝cyrus-sasl:

# cd /usr/local/
# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.20.tar.gz
# tar xvfz cyrus-sasl-2.1.20.tar.gz
# mv cyrus-sasl-2.1.20 cyrus-sasl
# cd cyrus-sasl
#./configure
# make                 
# make install
# ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
# perl -pi.bak -e "s/saslauthd/auxprop/g" /usr/local/lib/sasl2/smtpd.conf

10.安裝postfix服務(wù):

# wget http://postfix.energybeam.com/so ... ostfix-2.2.1.tar.gz
# tar xvfz postfix-2.2.1.tar.gz
# mv postfix-2.2.1 /usr/local/postfix
# cd /usr/local/postfix
# make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl" \
# AUXLIBS="-L/usr/local/lib -lsasl2"
# make
# make install

10.安裝Courier-pop3d,imapd和authd:
# cd /usr/local/
# wget http://internap.dl.sourceforge.n ... uthlib-0.55.tar.bz2
# tar xjvf courier-authlib-0.55.tar.bz2
# mv courier-authlib-0.55 courier-authlib
# cd /usr/local/courier-authlib
# ./configure --with-redhat --disable-root-check \
--with-mailuser=courier --with-mailgroup=courier
# make
# make install
# make install-configure
# groupadd courier

11.安裝courier:

# useradd -c 'Courier Mail Server' -d /dev/null -g courier -s /bin/false courier
# cd /usr/local
# wget http://unc.dl.sourceforge.net/so ... rier-0.49.0.tar.bz2
# tar xjvf courier-0.49.0.tar.bz2
# mv courier-0.49.0 courier
# cd /usr/local/courier
# ./configure --with-redhat --disable-root-check \
--with-mailuser=courier --with-mailgroup=courier \
--with-db=gdbm
# make
# make install
# make install-configure

12.做一些腳本的連接工作:

# echo 'su -c "/usr/lib/courier/share/sqwebmail/cleancache.pl" bin' >> /etc/cron.hourly/courier.cron
# touch /usr/local/etc/authlib/userdb
# chown daemon /usr/local/etc/authlib/userdb
# chgrp daemon /usr/local/etc/authlib/userdb
# chhmod 600 /usr/local/etc/authlib/userdb
# ln -s /usr/lib/courier/sbin/webmaild /etc/init.d
# echo '/usr/local/sbin/authdaemond start' >> /etc/rc.local
# echo '/usr/lib/courier/sbin/courier start' >> /etc/rc.local
# echo '/usr/lib/courier/sbin/pop3d start' >> /etc/rc.local
# echo '/usr/lib/courier/sbin/imapd start' >> /etc/rc.local

# ln -s /usr/libexec/postfix /usr/lib/postfix
# ln -s /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so /lib/
# cp -p /usr/local/courier/rfc822/rfc822.h /usr/local/include/

# service named start    #把bind啟動(dòng)起來(lái)
# ln -s /etc/httpd /etc/apache2
# adduser www-data   新建網(wǎng)站用戶


13.修改$home/engine/vhcs2.conf文件:

SERVER_HOSTNAME = <YOUR HOST NAME>
BASE_SERVER_IP = <YOUR IP ADDDRESS>
DATABASE_PASSWORD = <YOUR MYSQL PASSWORD>
BIND_CONF_FILE = /usr/sbin/apachectl
BIND_DB_DIR = /var/named/
BIND_DB_DIR = /var/named/
APACHE_CMD = /etc/rc.d/init.d/httpd
APACHE_NAME = httpd
APACHE_LOG_DIR = /var/log/httpd
APACHE_USERS_LOG_DIR = /var/log/httpd/users
APACHE_BACKUP_LOG_DIR = /var/log/httpd/backup
APACHE_CONF_FILE = /etc/httpd/sites-available/vhcs2.conf
APACHE_USER = apache
APACHE_GROUP = apache
MTA_SASLDB_FILE = /etc/sasldb2
MTA_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
CMD_MAKEUSERDB = /usr/local/sbin/makeuserdb
CMD_NAMED = /etc/init.d/named
CMD_HTTPD = /etc/init.d/httpd
MAIL_TRAFF_LOG = maillog


14.tar xvjf vhcs2.4.tar.bz2 cd ./vhcs-2.4 make install


15.因?yàn)閯偛艑⑺械奈募傻?/tmp/vhcs2下面了
cp -R /tmp/vhcs2/etc/* /etc/
cp -R /tmp/vhcs2/var/* /var/
cp -R /tmp/vhcs2/usr/* /usr/

改變MySQL的數(shù)據(jù)庫(kù)管理員密碼
mysqladmin -u root -p password "new password here"然后運(yùn)行配置腳本
/var/www/vhcs2/engine/setup/vhcs2-setup會(huì)問你幾個(gè)問題,如密碼,IP等


16.編輯apache2的配置文件,將vhcs2.conf的配置包含進(jìn)去
pico /etc/apache2/httpd.conf加到最后一行

Include /etc/apache2/sites-available/vhcs2.conf重新啟動(dòng)apache

/etc/init.d/apache2 restart9.將vhcs的服務(wù)加到啟動(dòng)腳本
update-rc.d vhcs2_daemon defaults update-rc.d vhcs2_network defaults

17.運(yùn)行下面的命令:

echo 'include /etc/httpd/sites-available/vhcs2.conf' >> /etc/httpd/conf/httpd.conf
cd /etc/vhcs2/bind/parts/
cp -p cfg_entry.tpl cfg_entry.tpl.bak
perl -pi.bak -e "s/\{DB_DIR\}\/\{DMN_NAME\}\.db/\{DMN_NAME\}\.db/g" cfg_entry.tpl
perl -pi.bak -e "s/0700/0755/g" /var/www/vhcs2/engine/vhcs2-*

18.需要建立下面的腳本:/etc/init.d/vhcs2內(nèi)容如下:

<------------------- CUT HERE---------------------->
#!/bin/bash
# description: Start or stop the vhcs2 daemon
#
### BEGIN INIT INFO
# Provides: vhcs2
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the vhcs2 daemon
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

name='vhcs2'
lockfile=/var/lock/subsys/vhcs2
conffile=/etc/vhcs2/vhcs2.conf
pidfile=/var/run/vhcs2.pid
daemon=/var/www/vhcs2/daemon/vhcs2_daemon
name=vhcs2_daemon
RETVAL=0
start() {
        echo -n $"Starting $prog: "
        daemon "$daemon -p $pidfile"
        RETVAL=$?
        if ?"$RETVAL" = "0"; then
                touch $lockfile
        fi
        echo
}
stop() {
        echo -n $"Stopping $prog: "
        killproc $daemon -TERM
        RETVAL=$?
        if ?"$RETVAL" = "0"; then
                rm -f $lockfile
        fi
        echo
}

case "$1" in
'start')
        start
        ;;
'stop')
        stop
        ;;
'status')
        status $daemon
        ;;
'restart')
        stop
        start
        ;;
*)
        echo "Usage: $0 { start | stop | restart }"
        RETVAL=1
        ;;
esac

exit $RETVAL
<------------------- CUT HERE---------------------->


其實(shí)在redhat9,fedora3,fedora4和centOS4.x上安裝都是很相似的,都可以按照上面的方法來(lái)做。

本人已經(jīng)成功的在redhat9,fedora3,fedora4和centOS4.x成功的配置vhcs2這個(gè)開源的系統(tǒng)。

[ 本帖最后由 yhchai 于 2006-4-6 17:42 編輯 ]

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2006-04-13 10:28 |只看該作者

郁悶中··················

我估計(jì)還有人不知道vhcs2這個(gè)東西吧 呵呵

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2006-08-18 09:38 |只看該作者
做虛擬主機(jī)又玩開源,有想省錢的人肯定知道這個(gè)東西吧。呵呵。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP