Ê×Ò³ | Óʼþ×ÊѶ | ¼¼Êõ½Ì³Ì | ½â¾ö·½°¸ | ²úÆ·ÆÀ²â | ÓʼþÈ˲Š| Óʼþ²©¿Í | ÓʼþϵͳÂÛ̳ | Èí¼þÏÂÔØ | ÓʼþÖÜ¿¯ | ÈȵãרÌâ | ¹¤¾ß
ÍøÂç¼¼Êõ | ²Ù×÷ϵͳ | Óʼþϵͳ | ¿Í»§¶Ë | µç×ÓÓÊÏä | ·´À¬»øÓʼþ | Óʼþ°²È« | ÓʼþÓªÏú | ÒÆ¶¯µçÓÊ | ÓʼþÈí¼þÏÂÔØ | µç×ÓÊéÏÂÔØ

²Ù×÷ϵͳ

Vista | Windows 9X | Windows Server | Linux&Uinx | FreeBSD | ÆäËü²Ù×÷ϵͳ |
Ê×Ò³ > ²Ù×÷ϵͳ > ÆäËü²Ù×÷ϵͳ > ISPConfig°²×°·½·¨ > ÕýÎÄ

ISPConfig°²×°·½·¨

³ö´¦£ºupsdn.net ×÷ÕߣºJohnny ʱ¼ä£º2006-10-12 10:53:00

°²×°»ù±¾ÏµÍ³

1.°²×°»ù±¾ÏµÍ³µÄ¹ý³Ì¿ÉÒÔÉèÖà Ö÷»úÃû ºÍ ÓòÃû

2.²»ÒªÉèÖÃÓ²¼þʱÖÓΪGMT

3.¼ÌÐø°²×°libc-client²»ÒªMaildirÖ§³Ö£¨ÎÒÃÇÒÔºó¿ÉÑ¡Ôñ°²×° Courier-POP3/Courier-IMAP,ËùÒÔ²»±Øµ£ÐÄ)

4.²»ÒªÅäÖÃexmi,ÒòΪÎÒÃÇÒª°²×°postfix

ÅäÖÃÍøÂç

±à¼­/etc/network/interfaces,Ϊ·þÎñÆ÷ÉèÖþ²Ì¬IP »¹¿ÉÒÔÉèÖÃIP±ðÃû£¨Ò²¾ÍÊÇÒ»¸öÍø¿¨°ó¶¨2¸öIP£©

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

auto eth0:0
iface eth0:0 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


ÖØÆôÍø¿¨

/etc/init.d/networking restart

Ôö¼ÓÓòÃû·þÎñÆ÷

search server
nameserver 145.253.2.75
nameserver 193.174.32.18
nameserver 194.25.0.60


½«ÐÂÔö¼ÓµÄIPÌîÈëµ½/etc/hosts

127.0.0.1       localhost.localdomain   localhost       server1
192.168.0.100 server1.example.com server1
192.168.0.101 virtual-ip1.example.com virtual-ip1


# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

ÉèÖÃÖ÷»úÃû

echo server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname

°²×°£¯É¾³ýһЩÈí¼þ

ÏȰ²×°Ò»Ð©ÎÒÃÇÐèÒªµÄ

apt-get install wget bzip2 rdate fetchmail libdb3++-dev unzip zip 
ncftp xlispstat libarchive-zip-perl zlib1g-dev libpopt-dev
nmap openssl lynx fileutils

(×¢Ò⣺ÉÏÃæµÄÃüÁîдÔÚÒ»ÐÐÀï)

ÔÙÒÆ³ýһЩÓò»×ŵÄ

apt-get remove lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig

update-rc.d -f exim remove
update-inetd --remove daytime
update-inetd --remove telnet
update-inetd --remove time
update-inetd --remove finger
update-inetd --remove talk
update-inetd --remove ntalk
update-inetd --remove ftp
update-inetd --remove discard

ÒÆ³ýÈí¼þʱÐèÒªÅäÖ㬻شðYES

ÖØÐ¼ÓÔØinetd·þÎñ

/etc/init.d/inetd reload

´ÅÅÌÏÞ¶î

°²×°´ÅÅÌÏ޶¾ß

apt-get install quota quotatool

ÅäÖÃʱ£¬»Ø´ðNO

ÏñÏÂÃæÕâÑù±à¼­/etc/fstab £¬ÎÒÔö¼ÓÁËuserquota,grpquot¸øroot·ÖÇø

# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1 /dev/sda5 none swap sw 0 0 /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

È»ºóÔËÐÐ

touch /quota.user /quota.group chmod 600 /quota.* mount -o remount / quotacheck -avugm quotaon -avug


DNS·þÎñÆ÷

°²×°Bind9

apt-get install bind9

Ϊ°²È«·½ÃæµÄ¿¼ÂÇ£¬ ÒÔchroot·½Ê½ÔËÐÐBIND£º Ê×ÏÈÍ£Ö¹·þÎñ

/etc/init.d/bind9 stop

±à¼­/etc/default/bind9,ÈÃbindÒÔ·ÇÌØÈ¨Óû§¡®bind¡¯À´ÔËÐУ¬chrootµ½/var/lib/named.

Ò²¾ÍÊǽ«

OPTS="-u bind" 

ÕâÒ»ÐиijÉ

OPTIONS="-u bind -t /var/lib/named"

ÔÚ /var/lib½¨Á¢±ØÒªµÄĿ¼

mkdir -p /var/lib/named/etc
mkdir /var/lib/named/dev
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run

½«ÅäÖÃÎļþ´Ó/etcÒÆ¶¯µ½ /var/lib/named/etc:

mv /etc/bind /var/lib/named/etc

ΪÁ˱ÜÃ⵱δÀ´bindÉý¼¶Ê±µÄһЩÎÊÌ⣬ÎÒÃÇÔھɵÄλÖ㬽¨Á¢Ò»¸öµ½ÐÂλÖõķûºÅÁ¬½Ó

ln -s /var/lib/named/etc/bind /etc/bind


²úÉúnullºÍrandomÉ豸£¬ÐÞÕýĿ¼ȨÏÞ

mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind


ÎÒÃÇÐèÒªÐÞ¸ÄsysklogdµÄÆô¶¯½Å±¾/etc/init.d/sysklogd ,ÒÔ±ãÎÒÃÇ»¹Äܹ»µÃµ½ÖØÒªµÄµÇ¼ÐÅÏ¢µ½ÏµÍ³ÈÕÖ¾¡£ÐÞ¸ÄÕâÐÐ

SYSLOGD=""

³É

SYSLOGD="-a /var/lib/named/dev/log"

Ò²¾ÍÊǸijÉ

#! /bin/sh
# /etc/init.d/sysklogd: start the system log daemon.

PATH=/bin:/usr/bin:/sbin:/usr/sbin

pidfile=/var/run/syslogd.pid
binpath=/sbin/syslogd

test -x $binpath || exit 0

# Options for start/restart the daemons
# For remote UDP logging use SYSLOGD="-r"
#
SYSLOGD="-a /var/lib/named/dev/log"

create_xconsole()
{
if [ ! -e /dev/xconsole ]; then
mknod -m 640 /dev/xconsole p
else
chmod 0640 /dev/xconsole
fi
chown root:adm /dev/xconsole
}

running()
{
# No pidfile, probably no daemon present
#
if [ ! -f $pidfile ]
then
return 1
fi

pid=`cat $pidfile`

# No pid, probably no daemon present
#
if [ -z "$pid" ]
then
return 1
fi

if [ ! -d /proc/$pid ]
then
return 1
fi

cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1`

# No syslogd?
#
if [ "$cmd" != "$binpath" ]
then
return 1
fi

return 0
}

case "$1" in
start)
echo -n "Starting system log daemon: syslogd"
create_xconsole
start-stop-daemon --start --quiet --exec $binpath -- $SYSLOGD
echo "."
 ;;
stop)
echo -n "Stopping system log daemon: syslogd"
start-stop-daemon --stop --quiet --exec $binpath --pidfile $pidfile
echo "."
 ;;
reload|force-reload)
echo -n "Reloading system log daemon: syslogd"
start-stop-daemon --stop --quiet --signal 1 --exec $binpath --pidfile $pidfile
echo "."
 ;;
restart)
echo -n "Restarting system log daemon: syslogd"
start-stop-daemon --stop --quiet --exec $binpath --pidfile $pidfile
sleep 1
start-stop-daemon --start --quiet --exec $binpath -- $SYSLOGD
echo "."
 ;;
reload-or-restart)
if running
then
echo -n "Reloading system log daemon: syslogd"
start-stop-daemon --stop --quiet --signal 1 --exec $binpath --pidfile $pidfile
else
echo -n "Restarting system log daemon: syslogd"
start-stop-daemon --start --quiet --exec $binpath -- $SYSLOGD
fi
echo "."
 ;;
*)
echo "Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart}"
exit 1
esac

exit 0

ÖØÆôÈÕÖ¾·þÎñ

/etc/init.d/sysklogd restart

Æô¶¯bind,Èç¹ûÓÐʲô´íÎ󣬿ÉÒԲ鿴 /var/log/syslog

/etc/init.d/bind9 start

MySQL

°²×°

apt-get install mysql-server mysql-client libmysqlclient12-dev

Ð޸ĹÜÀíÔ±ÃÜÂë

mysqladmin -u root password yourrootsqlpassword

µ±ÄãÔËÐÐnetstat -tap,ÄãÓ¦¸Ã¿´µ½ÀàËÆÓÚÏÂÃæµÄÒ»ÐÐ

tcp        0      0 localhost.localdo:mysql *:*                     LISTEN     2449/mysqld


ÕâÑùµÄ»°£¬Òâζ×ÅMySQL¿ÉÒÔͨ¹ý3306¶Ë¿Ú·ÃÎÊÁË£¬Äã¿ÉÒÔµ½ÏÂÒ»½ÚPostfixÁË¡£Èç¹ûÄãûÓп´µ½ÉÏÃæµÄÄÇÒ»ÐУ¬±à¼­ /etc/mysql/my.cnf£¬×¢ÊÓµô skip-networking

# skip-networking


Èç¹ûÄã±à¼­ÁË/etc/mysql/my.cnf£¬ÇëÖØÆôMySQL

/etc/init.d/mysql restart

Postfix/POP3/IMAP

ΪÁ˰²×°Postfix´øSMTP-AUTHºÍTLS£¬POP3·þÎñÆ÷Ö§³ÖPOP3s(¶Ë¿Ú995)ºÍIMAP·þÎñÆ÷Ö§³ÖIMAPs(¶Ë¿Ú993):

apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules ipopd-ssl uw-imapd-ssl (ÔÚÒ»ÐÐÃüÁîÀïÊäÈë)

ÅäÖûشð

<- pop3 and pop3s

<- No


<- Internet Site

<- NONE


<- server1.example.com

<- server1.example.com, localhost.example.com, localhost

<- No


postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
postconf -e 'inet_interfaces = all'
echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf


mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650


postconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_use_tls = yes'
postconf -e 'smtpd_use_tls = yes'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'

Îļþ /etc/postfix/main.cf Ó¦¸ÃÏñÕâÑù:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = server1.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.example.com, localhost.example.com, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

ÖØÆôpostfix

/etc/init.d/postfix restart


ÊÚȨ½«ÓÉsaslauthd´¦Àí. ÎÒÃDZØÐë¸Ä±äһЩ¶«Î÷À´ÈÃËüÕýÈ·µØ¹¤×÷.ÒòΪ Postfix chrootµ½ /var/spool/postfix Ŀ¼ ÔËÐУ¬ÎÒÃDZØÐëÕâÑù×÷:

mkdir -p /var/spool/postfix/var/run/saslauthd rm -fr /var/run/saslauthd

ΪÁ˼¤»î saslauthd£¬ÏÖÔÚÎÒÃDZØÐë±à¼­ /etc/default/saslauthd . ÒÆ³ýÔÚ START=yesµÄ#£¬ ²¢ Ôö¼ÓÒ»ÐÐ PARAMS="-m /var/spool/postfix/var/run/saslauthd":

# This needs to be uncommented before saslauthd will be run automatically
START=yes

PARAMS="-m /var/spool/postfix/var/run/saslauthd"

# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"

MECHANISMS="pam"


×îºó±ØÐë±à¼­ /etc/init.d/saslauthd,½«ÕâÒ»ÐÐ

dir=`dpkg-statoverride --list $PWDIR`

¸Ä³É

#dir=`dpkg-statoverride --list $PWDIR`

ÔÚÎļþµÄ¿ªÍ·£¬¸Ä±ä±äÁ¿ PWDIR ºÍ PIDFILE£¬Ôö¼Ó±äÁ¿dir

PWDIR="/var/spool/postfix/var/run/${NAME}" PIDFILE="${PWDIR}/saslauthd.pid" dir="root sasl 755 ${PWDIR}"

/etc/init.d/saslauthdÏÖÔÚÓ¦¸ÃÊÇÕâÑù×ÓÁË£º

#!/bin/sh -e

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR="/var/spool/postfix/var/run/${NAME}"
PIDFILE="${PWDIR}/saslauthd.pid"
dir="root sasl 755 ${PWDIR}"

createdir() {
# $1 = user
# $2 = group
# $3 = permissions (octal)
# $4 = path to directory
[ -d "$4" ] || mkdir -p "$4"
chown -c -h "$1:$2" "$4"
chmod -c "$3" "$4"
}

test -f "${DAEMON}" || exit 0

# Source defaults file; edit that file to configure this script.
if [ -e "${DEFAULTS}" ]; then
. "${DEFAULTS}"
fi

# If we're not to start the daemon, simply exit
if [ "${START}" != "yes" ]; then
exit 0
fi

# If we have no mechanisms defined
if [ "x${MECHANISMS}" = "x" ]; then
echo "You need to configure ${DEFAULTS} with mechanisms to be used"
exit 0
fi

# Add our mechanimsms with the necessary flag
PARAMS="${PARAMS} -a ${MECHANISMS}"

START="--start --quiet --pidfile ${PIDFILE} --startas ${DAEMON} --name ${NAME} -- ${PARAMS}"

# Consider our options
case "${1}" in
start)
echo -n "Starting ${DESC}: "
#dir=`dpkg-statoverride --list $PWDIR`
test -z "$dir" || createdir $dir
if start-stop-daemon ${START} >/dev/null 2>&1 ; then
echo "${NAME}."
else
if start-stop-daemon --test ${START} >/dev/null 2>&1; then
echo "(failed)."
exit 1
else
echo "${DAEMON} already running."
exit 0
fi
fi
 ;;
stop)
echo -n "Stopping ${DESC}: "
if start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" \
--startas ${DAEMON} --retry 10 --name ${NAME} \
>/dev/null 2>&1 ; then
echo "${NAME}."
else
if start-stop-daemon --test ${START} >/dev/null 2>&1; then
echo "(not running)."
exit 0
else
echo "(failed)."
exit 1
fi
fi
 ;;
restart|force-reload)
$0 stop
exec $0 start
 ;;
*)
echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload}" >&2
exit 1
 ;;
esac

exit 0

ÖØÐÂÆô¶¯saslauthd

/etc/init.d/saslauthd start

ÏÖÔÚ¿ÉÒÔ¼ì²é SMTP-AUTH ºÍ TLS ÊÇ·ñ¹¤×÷Õý³££º

telnet localhost 25

ÄãÒѾ­½¨Á¢Ò»¸öµ½postfixÓʼþ·þÎñÆ÷µÄÁ¬½Ó

ehlo localhos

Èç¹ûÄã¿´µ½

250-STARTTLS

ºÍ

250-AUTH

ÄÇô¾ÍOKÁË

¼üÈë

quit

·µ»Øµ½ÏµÍ³shell


Courier-IMAP/Courier-POP3

Èç¹ûÄãÏëÓÃPOP3/IMAP·þÎñ£¬´øMaildirÖ§³ÖµÄ£¨Èç¹ûÄã²»ÏëÓã¬ÄÇô¾ÍÓô«Í³µÄUnix mailbox¸ñʽ£©£¬Äã¾Í¿ÉÒÔ°²×°Courier-IMAP/Courier-IMAP-SSL£¨IMAPsÔËÐÐÔÚ993¶Ë¿Ú)ºÍCourier- POP3/Courier-POP3-SSL£¨POP3s ÔËÐÐÔÚ 995¶Ë¿Ú£©¡£Òª²»£¬Äã¿ÉÒÔÓÃApacheµÄÅäÖÃÀ´´¦Àí

apt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl

ÅäÖÃʱ£¬»Ø´ð NO

ipopd ºÍ UW-IMAP ½«±»Ìæ»»

È»ºó£¬ÅäÖÃPostfix ´«µÝEmail¸øÓû§µÄ Maildir*:

postconf -e 'home_mailbox = Maildir/' postconf -e 'mailbox_command =' /etc/init.d/postfix restart

×¢Òâ Èç¹ûÄãÏëÓÃISPConfigÓÃprocmail×÷±ØÒªÅäÖã¬Äã²»±Ø×÷ÉÏÃæµÄ¡£µ«ÊÇÇëÄ㼤»îMaildir,ÔÚISPµÄµÄweb¹ÜÀí½çÃæManagement -> Settings -> EMail


Apache

°²×°

apt-get install apache2 apache2-doc
apt-get install libapache2-mod-php4 libapache2-mod-perl2 php4
php4-cli php4-common php4-curl php4-dev
php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash
php4-mysql php4-odbc php4-pear php4-xslt curl
libwww-perl imagemagick (дÔÚÒ»ÐÐÃüÁîÀÒòΪÕâЩÊÇÓÐÒÀÀµ¹ØÏµµÄ)

±à¼­/etc/apache2/apache2.conf,½«

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

¸Ä³É

DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml

±à¼­/etc/mime.types ×¢Ê͵ôÏÂÃæÕâЩÐÐ:

#application/x-httpd-php                                phtml pht php
#application/x-httpd-php-source phps
#application/x-httpd-php3 php3
#application/x-httpd-php3-preprocessed php3p
#application/x-httpd-php4 php4


±à¼­/etc/apache2/mods-enabled/php4.conf£¬×¢Ê͵ôÏÂÃæÕâЩÐУº

<IfModule mod_php4.c>
# AddType application/x-httpd-php .php .phtml .php3
# AddType application/x-httpd-php-source .phps
</IfModule>


±à¼­ /etc/apache2/ports.conf £¬Ôö¼Ó Listen 443:

Listen 80
Listen 443


ÏÖÔÚ£¬ÎÒÃDZØÐ뼤»îһЩģ¿é(SSL,rewrite,suexec):

cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/ssl.conf ssl.conf
ln -s /etc/apache2/mods-available/ssl.load ssl.load
ln -s /etc/apache2/mods-available/rewrite.load rewrite.load
ln -s /etc/apache2/mods-available/suexec.load suexec.load
ln -s /etc/apache2/mods-available/include.load include.load

ÖØÆôApache:

/etc/init.d/apache2 restart


Proftpd

°²×°

apt-get install proftpd

ÅäÖÃʱ£¬Ñ¡Ôñ standalone


Ϊ°²È«µÄÔ­Òò£¬Äã±ØÐëÔö¼ÓÏÂÃæµÄÐе½ /etc/proftpd.conf£º

DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."

¾ÍÊÇÆÁ±Îµô°æ±¾ÐÅÏ¢ºÍÏÞÖÆÓû§ÔÚ×Ô¼ºµÄĿ¼

ÖØÆôproftpd

/etc/init.d/proftpd restart

Webalizer

°²×°

apt-get install webalizer

ÅäÖÃʱ»Ø´ð

<- /var/www/webalizer
<- Usage Statistics for
<- /var/log/apache/access.log.1

ͬ²½ÏµÍ³Ê±ÖÓ

Èç¹ûÄãÏ뽫·þÎñÆ÷µÄϵͳʱÖÓÓÚNTP·þÎñÆ÷ͬ²½£¬Äã¿ÉÒÔÔö¼ÓÏÂÃæµÄÒ»Ðе½/var/spool/cron/crontabs/root (Èç¹ûÎļþ²»´æÔÚ£¬Çë´´½¨Ò»¸ö touch /var/spool/cron/crontabs/root)

# update time with ntp server 0 3,9,15,21 * * * /usr/sbin/rdate 128.2.136.71 | logger -t NTP

È»ºóÔËÐÐ:

chmod 600 /var/spool/cron/crontabs/root /etc/init.d/cron restart

°²×°PerlÄ£¿é

ΪÁË·´À¬»øÓʼþ£¬ÎÒÃÇÒª°²×°Ò»Ð©Perl Ä£¿é£¬ÓÃPerl ShellÀ´°²×°ºÜ·½±ã

ÒÔrootµÇ¼£¬ÔËÐÐÏÂÃæµÄÃüÁʼPerl Shell:

perl -MCPAN -e shell

Èç¹ûÕâÊÇÄãµÚÒ»´ÎÔËÐÐPerl Shell£¬ÄÇôÄã»á±»Îʼ¸¸öÎÊÌâ¡£´ó¶àÊýÇé¿öÏ£¬Ä¬ÈϵĻشð¾ÍÐÐÁË

Çë×¢Òâ: Èç¹ûÔÚÄãµÄϵͳÖÐÔËÐÐÓзÀ»ðǽ£¬ÇëÏȹصôËü¡£ÕâÑù¿ÉÈÃPerl Shell±È½Ï¿ìµØÈ¡µÃ±ØÒªµÄÄ£¿é¡£Íê³ÉÖ®ºóÔÙ´ò¿ª·À»ðǽ

ÓÃPerl Shell½ÏÖ®ÆäËûÁ½ÖÖ·½·¨µÄ×î´óºÃ´¦£¬¾ÍÊǰ²×°ÐÂÄ£¿éʱºò£¬Äܹ»ºÜºÃµØ´¦ÀíÒÀÀµ¹ØÏµ£ºÒ²¾ÍÊÇ˵£¬µ±Äã°²×°Ò»¸öÄ£¿éʱ£¬Èç¹ûÐèÒªÔ¤ÏȰ²×°Ê²Ã´Ä£¿é£¬Ëý»á×Ô¶¯ÌáʾÄã°²×°£¬Äã±ØÐë»Ø´ðYES

ÔËÐÐÏÂÃæµÄÃüÁî°²×° SpamAssassinËùÐèÒªµÄÄ£¿é:

install HTML::Parser install DB_File install Net::DNS (µ±ÌáʾÄãÊÇ·ñÒª²âÊÔʱ£¬ÇëÑ¡Ôñno£¬Õâ¸ö¹ý³ÌÌ«³¤ÁË£¬²»ÖµµÃ) q (Í˳öperl shell)

Èç¹ûÒ»¸öÄ£¿éÒѾ­°²×°£¬ÎÒÃÇ»áµÃµ½ÀàËÆÓÚÏÂÃæµÄÐÅÏ¢:

HTML::Parser is up to date.

³É¹¦°²×°Ò»¸öÄ£¿é»á³öÏÖÏÂÃæµÄÐÅÏ¢:

/usr/bin/make install -- OK

CompileÒ»¸ö¶¨ÖƵÄÄÚºË

Çë·ÃÎÊ

http://www.linuxsir.org

http://www.debian.org

»ñÈ¡ÏêϸÐÅÏ¢


¸½Â¼:¹ØÓÚSuExec

Èç¹ûÄãÏëÔÚsuExecÏÂÔËÐÐCGI½Å±¾£¬ÄãÓ¦¸ÃÖ¸¶¨/var/www×÷ΪISPConifg½¨Á¢websitesµÄhomeĿ¼£¬ÒòΪ DebianµÄsuExecÊÇÓÃ/var/www×÷ΪDoc_Root À´±àÒëµÄ¡£ÔËÐÐ/usr/lib/apache2/suexec2 -V,»á²úÉúÈçÏÂÊä³ö:

-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www-data"
-D AP_LOG_EXEC="/var/log/apache2/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

ΪÁËÔÚ°²×°Ê±Ñ¡Ôñ/var/www ×÷Ϊ Õ¾µãµÄhomeĿ¼£¬µ±ÎÊÄãÑ¡Ôñʲô°²×°Ä£Ê½Ê±£¬ÇëÑ¡Ôñר¼Òģʽ

Please select the installation mode.In expert mode
1)standard
2)expert

Your Choice:2


ÔÚºóÐøµÄ°²×°¹ý³ÌÖУ¬Äã»á±»ÎʵÀ /home/wwwÊÇÄãµÄĬÈϵĽ¨Á¢Õ¾µãµÄĿ¼£¬»Ø´ðn,È»ºóÌîÈë /var/www


 

¿ªÊ¼°²×°ISPConfig

Ìáʾ£ºÒ»Ð©ÏµÍ³Îļþ»áÌæ´ú£¬ÒòΪҪ×÷һЩµ÷Õû

  ¿ÉÄܵ¼ÖÂnamed.confºÍpostfixÖÐһЩÌõÄ¿¶ªÊ§.

ÖØÒª:ISPConfigÖ»ÊʺÏȫа²×°£¬Èç¹ûÄãµÄÕ¾µãÒѾ­ÓкܶàÕ¾µã£¬¶øÏë»»Ò»¸ö¿ØÖÆÃæ°åµÄ»°£¬ÊDz»ÐеÄ

ÒÔrootµÇ¼£¬½âѹËõISPConfig

tar xvfz ISPConfig*.tar.gz

½øÈëinstall_ispconfig:

cd install_ispconfig

ÔÚÕâ¸öĿ¼ÀÇë¼ì²édist.txtÎļþ£¬¿´¿´ÓйØÓÚÄã×Ô¼ºµÄLinux·¢ÐаæµÄһЩֵÊÇ·ñÕýÈ· £¨dist.txtµÄÖµÊÇ ºÍ ûÓÐÐ޸ĹýµÄ±ê×¼°æ±¾µÄÖµÒ»ÖµÄ.Èç¹ûÄãÒª¸Ä¶¯ÆäÖеÄһЩֵ£¬Çë±£³Ödist.txt µÄÎļþ¸ñʽ²»±ä¡£Èç¹ûÊÇ´ÓÉÏÃæÒ»Ö±°²×°ÏÂÀ´£¬²»ÐèÒªÐ޸ĵģ©


È»ºóÔËÐа²×°³ÌÐò

./setup

°²×°³ÌÐòÏÖÔÚ¿ªÊ¼±àÒëÒ»¸öÖ§³ÖPHP5µÄApache£¬Ëü½«ÔËÐÐÔÚ81¶Ë¿Ú¡£Õâ¸öApacheÊÇISPConfigÐèÒªµÄ£¬Ëü²»»áÓ°Ïìµ½ÒѾ­°²×°ºÃµÄapche2


ÖØÒª: È·ÈÏÄãÒѾ­°²×°ÁË gcc, flex ºÍÆäËû¹¤¾ß £¬ÕâЩ¶«Î÷ÊDZàÒëËù±ØÐëµÄ¡£Ä㻹±ØÐë°²×°MySQL Í·Îļþ£¬ËüÀ´×ÔÓÚmysql-devel£¬ mysql-dev, libmysql-devel »òÕßÀàËÆµÄÆäËû¶«Î÷. ·ñÔò£¬PHP5²»ÄܱàÒ룬ISPConfigµÄ°²×°½«Í£Ö¹¡£

µ±ISPConfig Apache½¨Á¢ºÃÖ®ºó, Ò»¸ö¶¨ÖƵÄSSL ÈÏÖ¤ÎļþÒ²½¨Á¢ÁË. ËùÒÔÄã»á±»Îʼ¸¸öÎÊÌ⣬Äã¿ÉÒÔ½ÓÊÜĬÈϵÄÖµ£¬»òÕßÌîÈëеÄÖµ£¬Õâ¶¼ÊÇ¿ÉÒԵġ£


ÔÚµÚ7²½£¬"Encrypting RSA private key of CA with a pass phrase for security [ca.key]" ºÍµÚ8²½£¬"Encrypting RSA private key of SERVER with a pass phrase for security [server.key]" µÄÖ¤Ê齨Á¢¹ý³Ì£¬Äã±»Îʵ½ÊÇ·ñ ÐèÒª¼ÓÃÜ respective key ÇëÑ¡Ôñn. ·ñÔò£¬ÄãÔÚÖØÆôISPConfigʱ»áÒªÒ»¸öÃÜÂ룬¶øÔÚWebÏÂÊÇÎÞ·¨ÊäÈëµÄ¡£


°²×°¹ý³ÌµÄ´íÎó´¦Àí

Èç¹û±àÒëʧ°Ü£¬°²×°½«»áÍ£Ö¹£¬ËùÓеÄÒѾ­±àÒëÁ˵ÄÎļþ»á±»É¾³ý¡£´Ó´íÎóÐÅÏ¢ÖУ¬ÄãÓ¦¸Ã¿ÉÒԵõ½Ê§°ÜµÄÔ­Òò £¨Ò»°ãÊÇ Ê²Ã´°üûÓа²×°£¬±ÈÈçMySQLµÄÍ·Îļþ£©£¬½â¾öÕâЩÎÊÌâÖ®ºó£¬¿ÉÒÔÖØÐÂÔËÐÐ ./setup

±àÒë³É¹¦Ö®ºó£¬ÐèÒª½øÐÐÅß×Ó

Ñ¡ÔñISPConfig½çÃæµÄĬÈÏÓïÑÔ È»ºóÄã±ØÐë½ÓÊÜBSDµÄlicense Ñ¡Ôñ°²×°Ä£Ê½£ºstandard / expert ±ê׼ģʽ£¬¾ÍÊÇ·¢ÐаæÄ¬Èϵıê×¼ÉèÖã¨Ã»Óиıä³ÌÐòµÄ°²×°Â·¾¶£© ר¼Òģʽ£¬¸Ä±äÁËÅäÖÃÎļþµÄλÖûòÕßLogµÄλÖà ³ý·ÇÄãÒòΪҪÔËÐÐsuEXEcµÄCGI£¬Ä㻹ÊÇʹÓñê׼ģʽΪºÃ

Èç¹ûÄ㰲װʧ°ÜÁË£¬ÔÚ½â¾öºÃʧ°ÜµÄÎÊÌâÖ®ºó£¬ÇëÖØÐ½âѹËõISPConfigºó°²×°

Äã¿ÉÄÜÐèÒª»Ø´ðµÄÎÊÌâ

Please enter your MySQL server: E.G. localhost Please enter your MySQL user: E.G. root Please enter your MySQL password: Your MySQL password Please enter a name for the ISPConfig database: E.g. ispconfigdb Please enter the IP address of the ISPConfig web: E.g. 192.168.0.1 Please enter the host name: E.g. www Please enter the domain: E.g. xyz.de


ÇëÑ¡Ôñ·ÃÎÊISPConfig ϵͳ½çÃæµÄЭÒé (http »òÕß https (SSL ¼ÓÃÜ))


ºÃÁË£¬ÏÖÔÚÄã¿ÉÒÔ Óû§amin ÃÜÂëadmin µÇ¼ϵͳ

Ïà¹ØÎÄÕ ÈÈÃÅÎÄÕÂ
  • NetBSD²Ù×÷ϵͳÔÚVMwareϵݲװָÄÏ
  • OpenBSDÈëÃÅ
  • SCO UNIXϵͳ°²×°È«Í¼½â
  • ÔõÑùÑ¡Ôñ·þÎñÆ÷²Ù×÷ϵͳ?
  • Netware 6.5²Ù×÷ϵͳ°²×°È«³Ìͼ½â
  • ÔÚFedora core 4.0 ¼ÓÔØNTFSºÍFAT32·ÖÇøÏêÊö
  • IBMר¼Ò½âÎöUNIXºÍWindowsÖ®¼äÇø±ð
  • Gentoo ÍêÕûµÄUSE²ÎÊýÇåµ¥ÖÐÎÄÏê½â
  • Fedora CoreÏÂÉù¿¨Çý¶¯È«¹¦ÂÔ
  • ½¨Á¢Õë¶Ôarm-linuxµÄ½»²æ±àÒë»·¾³
  • Debian·þÎñÆ÷ÉèÖÃÈëÃŽ̳ÌÖ®Ò»
  • OpenBSD2.8·þÎñÆ÷ÅäÖÃʵÎñÊÖ²á
  • ×ÔÓÉ¹ã¸æÇø
    ¡¡
     
    ×îÐÂÈí¼þÏÂÔØ
  • ORF Enterprise Edition 4.2 Õýʽ°æ
  • WinWebMail 3.7.7.3 ±ê×¼°æ
  • WinWebMail 3.7.7.3 ÆóÒµ°æ
  • BMailì÷ÓÊ
  • Merak Email Server for Windows 9.3.1..
  • Merak Email Server for Linux 9.3.1 ¼..
  • Merak Email Server 9.3.1 For Windwos..
  • AXIGEN Mail Server 6.1.1 for Windows
  • AXIGEN Mail Server 6.1.0 for Linux
  • ADModify.NETÏÂÔØ
  • symantec10.1»ù±¾°²×°¼°ÅäÖÃÊÓÆµ½Ì³Ì
  • Backup Exec System RecoveryÖ®±¸·ÝÊÓÆ..
  • ½ñÈÕÓʼþ¼¼ÊõÎÄÕÂ
  • ÃÀ´óѧÉúÇÖÈëÅåÁÖÖݳ¤¸öÈËÓʼþÕË»§±»´þ²¶
  • ˼¿ÆIronPort·¢²¼Ðµç×ÓÓʼþ°²È«É豸
  • Éî¸û"Èí¼þ+·þÎñ" ΢Èí300³ÇÊÐѲչî£ÓÊ
  • ´ÓºÚ¿Í³£Óù¥»÷Êֶο´WEBÓ¦Ó÷À»¤
  • ÏûÏ¢ÈËʿ͸¶ÑÅ»¢ÓëAOLºÏ²¢Ï¸½Ú½«ÓÚ±¾Ô..
  • ¹È¸èÌṩµÄµç×ÓÓʼþ´æµµÊ±¼äÑÓ³¤ÎªÊ®Äê
  • ÑÅ»¢½«ÔÚÓÊÏä·þÎñÖÐÕûºÏаæÔÚÏßÈÕÀú
  • 9ÔÂÀ¬»øÓʼþ×ÜÁ¿¼õÉÙ ÓëISPµ¹±ÕÓйØ
  • À¬»øÓʼþ·¢Õ¹µÄËÄ´óÇ÷ÊÆ
  • º«¹úÒéÔ±³ÆÖйúºÚ¿Íð³äÇàÍß̨·¢ËͲ¡¶¾..
  • VistaÄÑ³ÉÆøºò Windows XPÊÙÃü±»ÑÓ³¤
  • ÈüÃÅÌú¿ËÉý¼¶DLP²úÆ·¼°·´À¬»øÓʼþÍø¹Ø
  • ×îÐÂרÌâ
  • Sendmail ÓʼþϵͳÅäÖÃ
  • ×齨Exchange 2003Óʼþϵͳ
  • Windows Server 2008 רÌâ
  • ORF ·´À¬»øÓʼþϵͳ
  • Exchange Server 2007 רÌâ
  • ISA Server 2006 ½Ì³ÌרÌâ
  • Windows Vista ¼¼ÊõרÌâ
  • ¡°ºÚÝ®¡±£¨BlackBerry£©×¨Ìâ
  • ÒÆ¶¯µç×ÓÓʼþרÌâ
  • Apache James רÌâ
  • IMail Server ²Ù×÷Ö¸ÄÏ
  • ISA Server 2004 ʹÓÃרÌâ
  • ·ÖÀർº½
    ÓʼþÐÂÎÅ×ÊѶ:
    ITÒµ½ç | Óʼþ·þÎñÆ÷ | ÓʼþȤÎÅ | ÒÆ¶¯µçÓÊ
    µç×ÓÓÊÏä | ·´À¬»øÓʼþ|Óʼþ¿Í»§¶Ë|ÍøÂ簲ȫ
    ÐÐÒµÊý¾Ý | ÓʼþÈËÎï | ÍøÕ¾¹«¸æ | ÐÐÒµ·¨¹æ
    ÍøÂç¼¼Êõ:
    ÓʼþÔ­Àí | ÍøÂçЭÒé | ÍøÂç¹ÜÀí | ´«Êä½éÖÊ
    Ïß·½ÓÈë | ·ÓÉ½Ó¿Ú | Óʼþ´æ´¢ | »ªÎª3Com
    CISCO¼¼Êõ | ÍøÂçÓë·þÎñÆ÷Ó²¼þ
    ²Ù×÷ϵͳ:
    Windows 9X | Linux&Uinx | Windows NT
    Windows Vista | FreeBSD | ÆäËü²Ù×÷ϵͳ
    Óʼþ·þÎñÆ÷:
    ³ÌÐòÓ뿪·¢ | Exchange | Qmail | Postfix
    Sendmail | MDaemon | Domino | Foxmail
    KerioMail | JavaMail | Winwebmail |James
    Merak&VisNetic | CMailServer | WinMail
    ½ðµÑÓʼþϵͳ | ÆäËü |
    ·´À¬»øÓʼþ:
    ×ÛÊö| ¿Í»§¶Ë·´À¬»øÓʼþ|·þÎñÆ÷¶Ë·´À¬»øÓʼþ
    Óʼþ¿Í»§¶ËÈí¼þ:
    Outlook | Foxmail | DreamMail| KooMail
    The bat | À×Äñ | Eudora |Becky! |Pegasus
    IncrediMail |ÆäËü
    µç×ÓÓÊÏä: ¸öÈËÓÊÏä | ÆóÒµÓÊÏä |Gmail
    ÒÆ¶¯µç×ÓÓʼþ:·þÎñÆ÷ | ¿Í»§¶Ë | ¼¼ÊõÇ°ÑØ
    ÓʼþÍøÂ簲ȫ:
    Èí¼þ©¶´ | °²È«ÖªÊ¶ | ²¡¶¾¹«¸æ |·À»ðǽ
    ¹¥·À¼¼Êõ | ²¡¶¾²éɱ| ISA | Êý×ÖÇ©Ãû
    ÓʼþÓªÏú:
    EmailÓªÏú | ÍøÂçÓªÏú | ÓªÏú¼¼ÇÉ |ÓªÏú°¸Àý
    ÓʼþÈ˲Å:ÕÐÆ¸ | Ö°³¡ | Åàѵ | Ö¸ÄÏ | Ö°³¡
    ½â¾ö·½°¸:
    Óʼþϵͳ|·´À¬»øÓʼþ |°²È« |ÒÆ¶¯µçÓÊ |Õбê
    ²úÆ·ÆÀ²â:
    Óʼþϵͳ |·´À¬»øÓʼþ |ÓÊÏä |°²È« |¿Í»§¶Ë
    ¹ã¸æÁªÏµ | ºÏ×÷ÁªÏµ | ¹ØÓÚÎÒÃÇ | ÁªÏµÎÒÃÇ | ·±ówÖÐÎÄ
    °æÈ¨ËùÓУºÓʼþ¼¼Êõ×ÊÑ¶Íø©2003-2007 www.5dmail.net, All Rights Reserved
    www.5Dmail.net Web Team   ÔÁICP±¸05009143ºÅ