|
| 1 | +Installation |
| 2 | +----------- |
| 3 | + |
| 4 | +It is recommended to use a clean (fresh) Fedora 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 | +vi /etc/selinux/config |
| 16 | + |
| 17 | +and set: |
| 18 | + |
| 19 | +SELINUX=disabled |
| 20 | + |
| 21 | +then reboot the server. |
| 22 | + |
| 23 | + |
| 24 | +1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): |
| 25 | + |
| 26 | +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 getmail |
| 27 | + |
| 28 | +useradd -m -s /bin/bash compileuser |
| 29 | +passwd compileuser |
| 30 | + |
| 31 | +visudo |
| 32 | + |
| 33 | +## Allow root to run any commands anywhere |
| 34 | +root ALL=(ALL) ALL |
| 35 | +compileuser ALL=(ALL) ALL |
| 36 | + |
| 37 | + |
| 38 | +su compileuser |
| 39 | + |
| 40 | +mkdir $HOME/rpm |
| 41 | +mkdir $HOME/rpm/SOURCES |
| 42 | +mkdir $HOME/rpm/SPECS |
| 43 | +mkdir $HOME/rpm/BUILD |
| 44 | +mkdir $HOME/rpm/SRPMS |
| 45 | +mkdir $HOME/rpm/RPMS |
| 46 | +mkdir $HOME/rpm/RPMS/i386 |
| 47 | + |
| 48 | +echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros |
| 49 | + |
| 50 | + |
| 51 | +wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2 |
| 52 | +wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2 |
| 53 | +wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2 |
| 54 | + |
| 55 | +sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2 |
| 56 | + |
| 57 | +sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-0.61.0-1.fc9.i386.rpm |
| 58 | +sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.fc9.i386.rpm |
| 59 | +sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.fc9.i386.rpm |
| 60 | + |
| 61 | +rpmbuild -ta courier-imap-4.4.1.tar.bz2 |
| 62 | + |
| 63 | +sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-imap-4.4.1-1.9.i386.rpm |
| 64 | + |
| 65 | +sudo rpmbuild -ta maildrop-2.0.4.tar.bz2 |
| 66 | + |
| 67 | +sudo rpm -ivh /home/compile/rpm/RPMS/i386/maildrop-2.0.4-1.9.i386.rpm |
| 68 | + |
| 69 | +exit |
| 70 | + |
| 71 | +yum install postfix |
| 72 | + |
| 73 | +chkconfig --levels 235 mysqld on |
| 74 | +/etc/init.d/mysqld start |
| 75 | + |
| 76 | +chkconfig --levels 235 httpd on |
| 77 | +/etc/init.d/httpd start |
| 78 | + |
| 79 | +chkconfig --levels 235 courier-authlib on |
| 80 | +/etc/init.d/courier-authlib start |
| 81 | + |
| 82 | +chkconfig --levels 235 sendmail off |
| 83 | +chkconfig --levels 235 postfix on |
| 84 | +chkconfig --levels 235 saslauthd on |
| 85 | +/etc/init.d/sendmail stop |
| 86 | +/etc/init.d/postfix start |
| 87 | +/etc/init.d/saslauthd start |
| 88 | + |
| 89 | +chkconfig --levels 235 courier-imap on |
| 90 | +/etc/init.d/courier-authlib restart |
| 91 | +/etc/init.d/courier-imap restart |
| 92 | + |
| 93 | + |
| 94 | +Set the mysql database password: |
| 95 | + |
| 96 | +mysqladmin -u root password yourrootsqlpassword |
| 97 | +mysqladmin -h ispconfig.local -u root password yourrootsqlpassword |
| 98 | + |
| 99 | + |
| 100 | +2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| 101 | + |
| 102 | +yum install amavisd-new spamassassin clamav clamav-data clamav-server clamav-update unzip bzip2 unrar |
| 103 | + |
| 104 | +chkconfig --levels 235 amavisd on |
| 105 | +chkconfig --levels 235 clamd.amavisd on |
| 106 | +/usr/bin/freshclam |
| 107 | +/etc/init.d/amavisd start |
| 108 | +/etc/init.d/clamd.amavisd start |
| 109 | + |
| 110 | +3) Install apache, PHP5 and phpmyadmin (1 line!): |
| 111 | + |
| 112 | +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 |
| 113 | + |
| 114 | + |
| 115 | +4) Install pure-ftpd and quota |
| 116 | + |
| 117 | +yum install pure-ftpd quota |
| 118 | + |
| 119 | +chkconfig --levels 235 pure-ftpd on |
| 120 | + |
| 121 | +5) Install mydns |
| 122 | + |
| 123 | +rpm -i http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm |
| 124 | + |
| 125 | +chkconfig --levels 235 mydns on |
| 126 | + |
| 127 | +6) Install vlogger and webalizer |
| 128 | + |
| 129 | +yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder |
| 130 | + |
| 131 | +cd /tmp |
| 132 | +wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz |
| 133 | +tar xvfz vlogger-1.3.tar.gz |
| 134 | +mv vlogger-1.3/vlogger /usr/sbin/ |
| 135 | +rm -rf vlogger* |
| 136 | + |
| 137 | +7) Configure the firewall |
| 138 | + |
| 139 | +Now you should switch off the firewall by running: |
| 140 | + |
| 141 | +system-config-firewall-tui |
| 142 | + |
| 143 | +ISPConfig comes with a iptables bsed firewall script that can be meneged from within the ispconfig interface. |
| 144 | + |
| 145 | + |
| 146 | +8) Install ISPConfig 3 |
| 147 | + |
| 148 | +There are two possile scenarios, but not both: |
| 149 | +7.1) Install the latest released version |
| 150 | +7.2) Install directly from SVN |
| 151 | + |
| 152 | +apt-get install php5-cli |
| 153 | + |
| 154 | +8.1) Installation of beta 3 from tar.gz |
| 155 | + |
| 156 | + cd /tmp |
| 157 | + wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz |
| 158 | + tar xvfz ISPConfig-3.0.0.6-beta.tar.gz |
| 159 | + cd ispconfig3_install/install/ |
| 160 | + |
| 161 | +8.2) Installation from SVN |
| 162 | + |
| 163 | + apt-get install subversion |
| 164 | + cd /tmp |
| 165 | + svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
| 166 | + cd trunk/install |
| 167 | + |
| 168 | + |
| 169 | +8.1+8.2) Now proceed with the ISPConfig installation. |
| 170 | + |
| 171 | +Now start the installation process by executing: |
| 172 | + |
| 173 | +php -q install.php |
| 174 | + |
| 175 | +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!): |
| 176 | + |
| 177 | +http://192.168.0.100:8080/ |
| 178 | + |
| 179 | +the default login is: |
| 180 | + |
| 181 | +user: admin |
| 182 | +password: admin |
| 183 | + |
| 184 | +In case you get a permission denied error from apache, please restart the apache webserver process. |
| 185 | + |
| 186 | +Optional: |
| 187 | + |
| 188 | +Install a webbased FTP Client |
| 189 | + |
| 190 | +apt-get install squirrelmail |
| 191 | +ln -s /usr/share/squirrelmail/ /var/www/webmail |
| 192 | + |
| 193 | +Access squirrelmail: |
| 194 | + |
| 195 | +http://192.168.0.100/webmail |
| 196 | + |
| 197 | + |
| 198 | +To configure squirrelmail, run: |
| 199 | + |
| 200 | +/usr/sbin/squirrelmail-configure |
| 201 | + |
| 202 | +---------------------------------------------------------------------------------------------------------- |
| 203 | + |
| 204 | +Hints: |
| 205 | + |
| 206 | +debian 4.0 under openvz: |
| 207 | + |
| 208 | +VPSID=101 |
| 209 | +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 |
| 210 | +do |
| 211 | + vzctl set $VPSID --capability ${CAP}:on --save |
| 212 | +done |
| 213 | + |
| 214 | +---------------------------------------------------------------------------------------------------------- |
| 215 | + |
| 216 | +Installing Jailkit: |
| 217 | + |
| 218 | +apt-get install build-essential autoconf automake1.9 libtool flex bison |
| 219 | +cd /tmp |
| 220 | +wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
| 221 | +tar xvfz jailkit-2.5.tar.gz |
| 222 | +cd jailkit-2.5 |
| 223 | +./configure |
| 224 | +make |
| 225 | +make install |
| 226 | +rm -rf jailkit-2.5* |
0 commit comments