|
| 1 | +Installation |
| 2 | +----------- |
| 3 | + |
| 4 | +It is recommended to use a clean (fresh) CentOS 5.2 install. Then follow the steps below to setup your server with ISPConfig 3: |
| 5 | + |
| 6 | +Installation of some basic requirements: |
| 7 | + |
| 8 | +rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* |
| 9 | +yum update |
| 10 | +yum groupinstall 'Development Tools' |
| 11 | +yum groupinstall 'Development Libraries' |
| 12 | + |
| 13 | +You should disable selinux now, as some programs will not start when selinux is enabled: |
| 14 | + |
| 15 | +system-config-securitylevel-tui |
| 16 | + |
| 17 | +then reboot the server. |
| 18 | + |
| 19 | + |
| 20 | +1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): |
| 21 | + |
| 22 | +yum install ntp httpd mysql-server php php-mysql php-mbstring rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel phpMyAdmin pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel postfix |
| 23 | + |
| 24 | +rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt |
| 25 | + |
| 26 | +cd /tmp |
| 27 | +wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm |
| 28 | +rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm |
| 29 | +yum update |
| 30 | + |
| 31 | +yum install getmail |
| 32 | + |
| 33 | +useradd -m -s /bin/bash compileuser |
| 34 | +passwd compileuser |
| 35 | + |
| 36 | +visudo |
| 37 | + |
| 38 | +## Allow root to run any commands anywhere |
| 39 | +root ALL=(ALL) ALL |
| 40 | +compileuser ALL=(ALL) ALL |
| 41 | + |
| 42 | + |
| 43 | +su compileuser |
| 44 | + |
| 45 | +mkdir $HOME/rpm |
| 46 | +mkdir $HOME/rpm/SOURCES |
| 47 | +mkdir $HOME/rpm/SPECS |
| 48 | +mkdir $HOME/rpm/BUILD |
| 49 | +mkdir $HOME/rpm/SRPMS |
| 50 | +mkdir $HOME/rpm/RPMS |
| 51 | +mkdir $HOME/rpm/RPMS/i386 |
| 52 | + |
| 53 | +echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros |
| 54 | + |
| 55 | + |
| 56 | +wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2 |
| 57 | +wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2 |
| 58 | +wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2 |
| 59 | + |
| 60 | +sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2 |
| 61 | + |
| 62 | +sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-0.61.0-1.i386.rpm |
| 63 | +sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.i386.rpm |
| 64 | +sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.i386.rpm |
| 65 | + |
| 66 | +rpmbuild -ta courier-imap-4.4.1.tar.bz2 |
| 67 | + |
| 68 | +sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-imap-4.4.1-1.i386.rpm |
| 69 | + |
| 70 | +sudo rpmbuild -ta maildrop-2.0.4.tar.bz2 |
| 71 | + |
| 72 | +sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/maildrop-2.0.4-1.i386.rpm |
| 73 | + |
| 74 | +exit |
| 75 | + |
| 76 | +chkconfig --levels 235 mysqld on |
| 77 | +/etc/init.d/mysqld start |
| 78 | + |
| 79 | +chkconfig --levels 235 httpd on |
| 80 | +/etc/init.d/httpd start |
| 81 | + |
| 82 | +chkconfig --levels 235 courier-authlib on |
| 83 | +/etc/init.d/courier-authlib start |
| 84 | + |
| 85 | +chkconfig --levels 235 sendmail off |
| 86 | +chkconfig --levels 235 postfix on |
| 87 | +chkconfig --levels 235 saslauthd on |
| 88 | +/etc/init.d/sendmail stop |
| 89 | +/etc/init.d/postfix start |
| 90 | +/etc/init.d/saslauthd start |
| 91 | + |
| 92 | +chkconfig --levels 235 courier-imap on |
| 93 | +/etc/init.d/courier-authlib restart |
| 94 | +/etc/init.d/courier-imap restart |
| 95 | + |
| 96 | + |
| 97 | +Set the mysql database password: |
| 98 | + |
| 99 | +mysqladmin -u root password yourrootsqlpassword |
| 100 | +mysqladmin -h ispconfig.local -u root password yourrootsqlpassword |
| 101 | + |
| 102 | + |
| 103 | +2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| 104 | + |
| 105 | +yum install amavisd-new spamassassin clamav clamd clamav-data clamav-server clamav-update unzip bzip2 unrar |
| 106 | + |
| 107 | +chkconfig --levels 235 amavisd on |
| 108 | +chkconfig --levels 235 clamd on |
| 109 | +/usr/bin/freshclam |
| 110 | +/etc/init.d/amavisd start |
| 111 | +/etc/init.d/clamd start |
| 112 | + |
| 113 | +3) Install apache, PHP5 and phpmyadmin (1 line!): |
| 114 | + |
| 115 | +yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel phpmyadmin |
| 116 | + |
| 117 | + |
| 118 | +4) Install pure-ftpd and quota |
| 119 | + |
| 120 | +cd /tmp |
| 121 | +wget http://centos.karan.org/el5/extras/testing/i386/RPMS/pure-ftpd-1.0.21-15.el5.kb.i386.rpm |
| 122 | +rpm -i pure-ftpd-1.0.21-15.el5.kb.i386.rpm |
| 123 | + |
| 124 | +yum install quota |
| 125 | + |
| 126 | +chkconfig --levels 235 pure-ftpd on |
| 127 | +/etc/init.d/pure-ftpd start |
| 128 | + |
| 129 | +5) Install mydns |
| 130 | + |
| 131 | +wget http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm |
| 132 | +rpm -ivh mydns-mysql-1.1.0-1.i386.rpm |
| 133 | + |
| 134 | +chkconfig --levels 235 mydns on |
| 135 | + |
| 136 | +6) Install vlogger and webalizer |
| 137 | + |
| 138 | +yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder |
| 139 | + |
| 140 | +cd /tmp |
| 141 | +wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz |
| 142 | +tar xvfz vlogger-1.3.tar.gz |
| 143 | +mv vlogger-1.3/vlogger /usr/sbin/ |
| 144 | +rm -rf vlogger* |
| 145 | + |
| 146 | +7) Install ISPConfig 3 |
| 147 | + |
| 148 | +Disable the firewall: |
| 149 | + |
| 150 | +system-config-securitylevel-tui |
| 151 | + |
| 152 | +There are two possile scenarios, but not both: |
| 153 | +7.1) Install the latest released version |
| 154 | +7.2) Install directly from SVN |
| 155 | + |
| 156 | +7.1) Installation of beta 3 from tar.gz |
| 157 | + |
| 158 | + cd /tmp |
| 159 | + wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz |
| 160 | + tar xvfz ISPConfig-3.0.0.6-beta.tar.gz |
| 161 | + cd ispconfig3_install/install/ |
| 162 | + |
| 163 | +7.2) Installation from SVN |
| 164 | + |
| 165 | + yum install subversion |
| 166 | + cd /tmp |
| 167 | + svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
| 168 | + cd trunk/install |
| 169 | + |
| 170 | + |
| 171 | +7.1+7.2) Now proceed with the ISPConfig installation. |
| 172 | + |
| 173 | +Now start the installation process by executing: |
| 174 | + |
| 175 | +php -q install.php |
| 176 | + |
| 177 | +The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!): |
| 178 | + |
| 179 | +http://192.168.0.100:8080/ |
| 180 | + |
| 181 | +the default login is: |
| 182 | + |
| 183 | +user: admin |
| 184 | +password: admin |
| 185 | + |
| 186 | +In case you get a permission denied error from apache, please restart the apache webserver process. |
| 187 | + |
| 188 | +Optional: |
| 189 | + |
| 190 | +Install a webbased FTP Client |
| 191 | + |
| 192 | +yum install squirrelmail |
| 193 | + |
| 194 | + |
| 195 | +---------------------------------------------------------------------------------------------------------- |
| 196 | + |
| 197 | +Hints: |
| 198 | + |
| 199 | +debian 4.0 under openvz: |
| 200 | + |
| 201 | +VPSID=101 |
| 202 | +for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE |
| 203 | +do |
| 204 | + vzctl set $VPSID --capability ${CAP}:on --save |
| 205 | +done |
| 206 | + |
| 207 | +---------------------------------------------------------------------------------------------------------- |
| 208 | + |
| 209 | +Installing Jailkit: |
| 210 | + |
| 211 | +cd /tmp |
| 212 | +wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
| 213 | +tar xvfz jailkit-2.5.tar.gz |
| 214 | +cd jailkit-2.5 |
| 215 | +./configure |
| 216 | +make |
| 217 | +make install |
| 218 | +rm -rf jailkit-2.5* |
0 commit comments