From: http://www.isp-control.net/documentation/doku.php? Idstart: installation: centos1. before installation, prepare 1.1 to ensure that Centos is the latest to log on as a Super User. first disable fastestmirror [root @ server ~] # Vi/etc/yum/plugin From: http://www.isp-control.net/documentation/doku.php? Id = start: installation:
Centos 1. preparations before installation 1.1 ensure that Centos is up-to-date Log on as a super user and disable fastestmirror first.
[Root @ server ~] # Vi/etc/yum/pluginconf. d/fastestmirror. conf
Set "enable = 0"
[Root @ server ~] # Cd/etc/yum. repos. d/
[Root @ server yum. repos. d] # wgethttp: // mirrors.163.com/.help/CentOS-Base-163.repo
[Root @ server yum. repos. d] # yum makecache
[Root @ server yum. repos. d] # yum update
1.2 add additional software sources Epel source (Extra Packages for Enterprise Linux)
[Root @ server yum. repos. d] # rpm-Uvhhttp: // download.fedora.redhat.com/pub/epel/5/ I #/epel-release-5-3.noarch.rpm
[Root @ server yum. repos. d] # yum install foo
For x86_64-bit systems, run the following command:
[Root @ server yum. repos. d] # rpm-Uvhhttp: // download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
[Root @ server yum. repos. d] # yum install foo
Les RPM de Remi source
[Root @ server yum. repos. d] # cd/etc/yum. repos. d
[Root @ server yum. repos. d] # wgethttp: // rpms.famillecollet.com/remi-enterprise.repo
This source contains some unnecessary software packages. run the following command to remove them:
[Root @ server yum. repos. d] # vi/etc/yum. repos. d/remi-enterprise.repo
Add a sentence above [remi-test] at the end of [remi ].
Includepkgs =
Mysql* Php * sqlite *
RPMForge source
[Root @ server yum. repos. d] # rpm-Uhvhttp: // apt. sw. be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
The following command is available for the x86_64 system:
[Root @ server yum. repos. d] # rpm-Uhvhttp: // apt. sw. be/redhat/el5/en/x86_64/rpmforge/RPMS // rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
[Root @ server yum. repos. d] # yum install foo
We do not need all the RPMForge software packages because it replaces many system files, so
[Root @ server yum. repos. d] # vi/etc/yum. repos. d/rpmforge. repo
Add a sentence at the end
Includepkgs = Policy
1.3 Download non-library software Create a directory first
[Root @ server yum. repos. d] # mkdir/root/tmp
[Root @ server yum. repos. d] # cd/root/tmp
Courier-IMAP
I386 (32-bit): [root @ server tmp] # wgethttp: // response
[Root @ server tmp] # wgethttp: // response
[Root @ server tmp] # wgethttp: // response
X86_64 (64-bit): [root @ server tmp] # wgethttp: // response
[Root @ server tmp] # wgethttp: // response
[Root @ server tmp] # wgethttp: // response
Policyd-weight
[Root @ server tmp] # wgethttp: // response? Use_mirror = ncu
1.4 Disable SELinux [Root @ server tmp] # setenforce 0
1.5 download and decompress ispCp [Root @ server tmp] # wgethttp: // response? Use_mirror = ncu
[Root @ server tmp] # tar jxvf ispcp-omega-1.0.3-1.tar.bz2
[Root @ server tmp] # cd ispcp-omega-1.0.3
Install ispCP-omega-1.0.3
[Root @ server ispcp-omega-1.0.3] # yum install 'cat. /docs/CentOS/centos-packages '(the 32-bit package vi/etc/yum should be excluded from x86_64. add exclude = * at the end of conf *. i386 *. i586 *. i686)
The Perl package must be installed later.
[Root @ server ispcp-omega-1.0.3] # perl-MCPAN-e 'installterm: readpassword' (prompt whether to enter no when configuring manually)
Install the downloaded Courier-IMAP and policyd-weight RPM packages
[Root @ server ispcp-omega-1.0.3] # cd ..
[Root @ server tmp] # rpm-Uvh courier -*
[Root @ server tmp] # rpm-Uvh policyd-weight -*
1.6 remove unnecessary software packages [Root @ server tmp] # yum remove
Sendmail 1.7 Configuration Service [Root @ server tmp] # groupadd-g 3000 courier
[Root @ server tmp] # useradd-u 3000-c 'courier Mail server'-d/dev/null-g Courier-d/bin/false courier
Enable mySQL service
[Root @ server tmp] # service mysqld start
Configure mySQL and set the password of the mySQL root user.
[Root @ server tmp] # mysql_secure_installation
Clean up Apache configuration environment and back up
[Root @ server tmp] # mv/etc/httpd/conf. d/etc/httpd/conf. d-disabled
1.8 bind dns configuration [Root @ server tmp] # mv/var/named/data-disabled
[Root @ server tmp] # ln-s/var/named/chroot/var/named/data
[Root @ server tmp] # echo 'include "/etc/named-ispcp.conf"; '>/var/named/chroot/etc/named. conf
2. Installation 2.1 confirm settings [Root @ server tmp] # cat/root/tmp/ispcp-omega-1.0.3/configs/centos/ispcp. conf
2.2 Create software and install it in a temporary zone [Root @ server tmp] # cd ispcp-omega-1.0.3
[Root @ server ispcp-omega-1.0.3] # make-f Makefile. centos
2.3 install icpCP ω [Root @ server ispcp-omega-1.0.3] # cp-RLf/tmp/ispcp /*/
[Root @ server ispcp-omega-1.0.3] # cd/var/www/ispcp/engine/setup
[Root @ server setup] # perl ispcp-setup
3. configure after installation 3.1 Postfix and SASL Authentication Create a SASL database
[Root @ server setup] # touch/etc/sasldb2
[Root @ server setup] # mkdir-p/var/spool/
Postfix/Etc
[Root @ server setup] # cp/etc/sasldb2/var/spool/postfix/etc
[Root @ server setup] # vi/usr/lib/sasl2/smtpd. conf
Write the following text to smtpd. conf.
Pwcheck_method: auxprop
Auxprop_plugin: sasldb
Mech_list: plain login CRAM-MD5 DIGEST-MD5
3.2 configure Apache HTTPd [Root @ server setup] # echo 'include vhosts/*. Conf'>/etc/httpd/conf/httpd. conf
3.3 configure Postgrey [Root @ server setup] # vi/etc/init. d/postgrey
Set this line of OPTIONS = "-- unix = $ SOCKET"
Change to OPTIONS = "-- unix = $ SOCKET -- inet = 60000"
3.4 set the service to self-start Chkconfig -- level 345 httpd on
Chkconfig -- level 345 mysqld on
Chkconfig -- level 345 ispcp_network on
Chkconfig -- level 345 ispcp_daemon on
Chkconfig -- level 345 amavisd on
Chkconfig -- level 345 named on
Chkconfig -- level 345
ProftpdOn
Chkconfig -- level 345 running y on
Chkconfig -- level 345 spamassassin on
If you want to start the service without restarting, enter the following command
Service httpd
Startservice mysqld start
Service ispcp_network start
Service ispcp_daemon start
Service amavisd start
Service named start
Service proftpd start
Service restart y start
Service spamassassin start
3.5 clear permissions [Root @ server setup] # chmod 775/var/www/ispcp/gui/phptmp
3.6 Delete the icpCP ω temporary environment [Root @ server setup] # rm-R/tmp/ispcp
Now enjoy it!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service