|
| 1 | +Installation |
| 2 | +----------- |
| 3 | + |
| 4 | +It is recommended to use a clean (fresh) OpenSUSE installatiom where you selected to install just the minimal packages. A Gnome or KDE desktop is not needed and will just slow down the server. Then follow the steps below to setup your server with ISPConfig 3: |
| 5 | + |
| 6 | +Install some basic packes and the compilers that we need later |
| 7 | + |
| 8 | +yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ make vim telnet cron iptables iputils man man-pages |
| 9 | + |
| 10 | +1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): |
| 11 | + |
| 12 | +yast2 -i postfix postfix-mysql mysql mysql-client phpMyAdmin courier-imap courier-authlib courier-authlib-mysql python cron cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi cyrus-sasl-otp cyrus-sasl-plain cyrus-sasl-saslauthd libmysqlclient-devel |
| 13 | + |
| 14 | +chkconfig --add mysql |
| 15 | +/etc/init.d/mysql start |
| 16 | + |
| 17 | +chkconfig --add postfix |
| 18 | +/etc/init.d/postfix start |
| 19 | + |
| 20 | +chkconfig --add saslauthd |
| 21 | +/etc/init.d/saslauthd start |
| 22 | + |
| 23 | +chkconfig --add saslauthd |
| 24 | +/etc/init.d/saslauthd start |
| 25 | + |
| 26 | +chkconfig --add fam |
| 27 | +chkconfig --add courier-authdaemon |
| 28 | +chkconfig --add courier-pop |
| 29 | +chkconfig --add courier-imap |
| 30 | +/etc/init.d/courier-pop start |
| 31 | +/etc/init.d/courier-imap start |
| 32 | +chkconfig --add courier-pop-ssl |
| 33 | +chkconfig --add courier-imap-ssl |
| 34 | +/etc/init.d/courier-pop-ssl start |
| 35 | +/etc/init.d/courier-imap-ssl start |
| 36 | + |
| 37 | +cd /tmp |
| 38 | +wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm |
| 39 | +rpm -i getmail-4.7.6-1.4.i586.rpm |
| 40 | + |
| 41 | +// Warnings like "warning: getmail-4.7.6-1.4.i586.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored. |
| 42 | + |
| 43 | +// Install maildrop |
| 44 | +rpm --force -i http://download.opensuse.org/repositories/home%3A/cboltz/openSUSE_10.3/i586/maildrop-2.0.3-16.1.i586.rpm |
| 45 | + |
| 46 | +// Install pam_mysql |
| 47 | + |
| 48 | +yast2 -i pam-devel |
| 49 | +cd /tmp |
| 50 | +wget http://heanet.dl.sourceforge.net/sourceforge/pam-mysql/pam_mysql-0.7RC1.tar.gz |
| 51 | +tar xvfz pam_mysql-0.7RC1.tar.gz |
| 52 | +cd pam_mysql-0.7RC1 |
| 53 | +./configure |
| 54 | +make |
| 55 | +make install |
| 56 | +rm -rf pam_mysql-0.7RC1 |
| 57 | +rm pam_mysql-0.7RC1.tar.gz |
| 58 | + |
| 59 | +// Set the mysql database password: |
| 60 | + |
| 61 | +mysqladmin -u root password yourrootsqlpassword |
| 62 | +mysqladmin -h ispconfig.local -u root password yourrootsqlpassword |
| 63 | + |
| 64 | + |
| 65 | +2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| 66 | + |
| 67 | +yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql |
| 68 | + |
| 69 | +chkconfig --add amavis |
| 70 | +chkconfig --add clamd |
| 71 | +/etc/init.d/amavis start |
| 72 | +/etc/init.d/clamd start |
| 73 | + |
| 74 | +3) Install PHP5 modules (1 line!): |
| 75 | + |
| 76 | +yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl |
| 77 | + |
| 78 | +Then run the following to enable the Apache modules: |
| 79 | + |
| 80 | +a2enmod suexec |
| 81 | +a2enmod rewrite |
| 82 | +a2enmod ssl |
| 83 | + |
| 84 | +chkconfig --add apache2 |
| 85 | +/etc/init.d/apache2 start |
| 86 | + |
| 87 | +4) Install pure-ftpd and quota |
| 88 | + |
| 89 | +yast2 -i pure-ftpd quota |
| 90 | + |
| 91 | +// The current pure-ftpd package from SuSE is unstable and segfaults when a file is uploaded, |
| 92 | +// we will replace it with a manually compiled package now: |
| 93 | + |
| 94 | +cd /tmp |
| 95 | +wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz |
| 96 | +tar xvfz pure-ftpd-1.0.21.tar.gz |
| 97 | +cd pure-ftpd-1.0.21/ |
| 98 | +./configure --sysconfdir=/etc/pure-ftpd --with-everything --with-mysql |
| 99 | +make |
| 100 | +make install |
| 101 | +mv /usr/sbin/pure-ftpd /usr/sbin/pure-ftpd.suse |
| 102 | +ln -s /usr/local/sbin/pure-ftpd /usr/sbin/pure-ftpd |
| 103 | +rm -rf pure-ftpd-1.0.21 |
| 104 | +rm -f pure-ftpd-1.0.21.tar.gz |
| 105 | + |
| 106 | +chkconfig --add pure-ftpd |
| 107 | +/etc/init.d/pure-ftpd start |
| 108 | + |
| 109 | + |
| 110 | +5) Install mydns |
| 111 | + |
| 112 | +cd /tmp |
| 113 | +wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/server:/dns/SUSE_Factory/i586/mydns-mysql-1.1.0-3.72.i586.rpm |
| 114 | +wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/server:/dns/SUSE_Factory/i586/mydns-1.1.0-3.72.i586.rpm |
| 115 | +rpm -i mydns*.rpm |
| 116 | +rm -rf /tmp/mydns* |
| 117 | + |
| 118 | +chkconfig --add mydns |
| 119 | + |
| 120 | +6) Install vlogger and webalizer |
| 121 | + |
| 122 | +cd /tmp |
| 123 | +wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz |
| 124 | +tar xvfz vlogger-1.3.tar.gz |
| 125 | +mv vlogger-1.3/vlogger /usr/sbin/ |
| 126 | +rm -rf vlogger* |
| 127 | + |
| 128 | + |
| 129 | +yast2 -i webalizer perl-DateManip |
| 130 | + |
| 131 | + |
| 132 | +7) Install ISPConfig 3 |
| 133 | + |
| 134 | +There are two possile scenarios, but not both: |
| 135 | +7.1) Install the latest released version |
| 136 | +7.2) Install directly from SVN |
| 137 | + |
| 138 | +apt-get install php5-cli |
| 139 | + |
| 140 | +7.1) Installation of beta 3 from tar.gz |
| 141 | + |
| 142 | + cd /tmp |
| 143 | + wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz |
| 144 | + tar xvfz ISPConfig-3.0.0.6-beta.tar.gz |
| 145 | + cd ispconfig3_install/install/ |
| 146 | + |
| 147 | +7.2) Installation from SVN |
| 148 | + |
| 149 | + apt-get install subversion |
| 150 | + cd /tmp |
| 151 | + svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
| 152 | + cd trunk/install |
| 153 | + |
| 154 | + |
| 155 | +7.1+7.2) Now proceed with the ISPConfig installation. |
| 156 | + |
| 157 | +Now start the installation process by executing: |
| 158 | + |
| 159 | +php -q install.php |
| 160 | + |
| 161 | +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!): |
| 162 | + |
| 163 | +http://192.168.0.100:8080/ |
| 164 | + |
| 165 | +the default login is: |
| 166 | + |
| 167 | +user: admin |
| 168 | +password: admin |
| 169 | + |
| 170 | +In case you get a permission denied error from apache, please restart the apache webserver process. |
| 171 | + |
| 172 | +Optional: |
| 173 | + |
| 174 | +Install a webbased FTP Client |
| 175 | + |
| 176 | +apt-get install squirrelmail |
| 177 | +ln -s /usr/share/squirrelmail/ /var/www/webmail |
| 178 | + |
| 179 | +Access squirrelmail: |
| 180 | + |
| 181 | +http://192.168.0.100/webmail |
| 182 | + |
| 183 | + |
| 184 | +To configure squirrelmail, run: |
| 185 | + |
| 186 | +/usr/sbin/squirrelmail-configure |
| 187 | + |
| 188 | +---------------------------------------------------------------------------------------------------------- |
| 189 | + |
| 190 | +Hints: |
| 191 | + |
| 192 | +debian 4.0 under openvz: |
| 193 | + |
| 194 | +VPSID=101 |
| 195 | +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 |
| 196 | +do |
| 197 | + vzctl set $VPSID --capability ${CAP}:on --save |
| 198 | +done |
| 199 | + |
| 200 | +---------------------------------------------------------------------------------------------------------- |
| 201 | + |
| 202 | +Installing Jailkit: |
| 203 | + |
| 204 | +apt-get install build-essential autoconf automake1.9 libtool flex bison |
| 205 | +cd /tmp |
| 206 | +wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
| 207 | +tar xvfz jailkit-2.5.tar.gz |
| 208 | +cd jailkit-2.5 |
| 209 | +./configure |
| 210 | +make |
| 211 | +make install |
| 212 | +rm -rf jailkit-2.5* |
0 commit comments