|
| 1 | + |
| 2 | + |
| 3 | +WARNING: Support for OpenSuSE is experimental only. For production systems better use Debian or Ubuntu. |
| 4 | + |
| 5 | + |
| 6 | +Installation |
| 7 | +----------- |
| 8 | + |
| 9 | +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: |
| 10 | + |
| 11 | +Install some basic packes and the compilers that we need later |
| 12 | + |
| 13 | +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 |
| 14 | + |
| 15 | +1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): |
| 16 | + |
| 17 | +yast2 -i postfix postfix-mysql mysql mysql-client 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 |
| 18 | + |
| 19 | +chkconfig --add mysql |
| 20 | +/etc/init.d/mysql start |
| 21 | + |
| 22 | +chkconfig --add postfix |
| 23 | +/etc/init.d/postfix start |
| 24 | + |
| 25 | +chkconfig --add saslauthd |
| 26 | +/etc/init.d/saslauthd start |
| 27 | + |
| 28 | +chkconfig --add saslauthd |
| 29 | +/etc/init.d/saslauthd start |
| 30 | + |
| 31 | +chkconfig --add fam |
| 32 | +chkconfig --add courier-authdaemon |
| 33 | +chkconfig --add courier-pop |
| 34 | +chkconfig --add courier-imap |
| 35 | +/etc/init.d/courier-pop start |
| 36 | +/etc/init.d/courier-imap start |
| 37 | +chkconfig --add courier-pop-ssl |
| 38 | +chkconfig --add courier-imap-ssl |
| 39 | +/etc/init.d/courier-pop-ssl start |
| 40 | +/etc/init.d/courier-imap-ssl start |
| 41 | + |
| 42 | +cd /tmp |
| 43 | + |
| 44 | +wget http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.1/src/phpMyAdmin-3.1.2-1.1.src.rpm |
| 45 | +rpm -i phpMyAdmin-3.1.2-1.1.src.rpm |
| 46 | + |
| 47 | +// Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored. |
| 48 | + |
| 49 | +wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm |
| 50 | +rpm -i getmail-4.7.6-1.4.i586.rpm |
| 51 | + |
| 52 | +// Install maildrop |
| 53 | +wget http://download.opensuse.org/repositories/home:/atzewilms/openSUSE_11.1_Update/i586/maildrop-2.0.4-10.5.i586.rpm |
| 54 | +rpm --force -i maildrop-2.0.4-10.5.i586.rpm |
| 55 | + |
| 56 | +// Install pam_mysql |
| 57 | +wget http://download.opensuse.org/repositories/home:/buschmann23/openSUSE_11.1/i586/pam_mysql-0.7RC1-11.1.i586.rpm |
| 58 | +rpm -i pam_mysql-0.7RC1-11.1.i586.rpm |
| 59 | + |
| 60 | +// Set the mysql database password: |
| 61 | + |
| 62 | +mysqladmin -u root password yourrootsqlpassword |
| 63 | +mysqladmin -h ispconfig.local -u root password yourrootsqlpassword |
| 64 | + |
| 65 | + |
| 66 | +2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| 67 | + |
| 68 | +yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql |
| 69 | + |
| 70 | +chkconfig --add amavis |
| 71 | +chkconfig --add clamd |
| 72 | +/etc/init.d/amavis start |
| 73 | +/etc/init.d/clamd start |
| 74 | + |
| 75 | +2.1) Install apache2 |
| 76 | + |
| 77 | +yast2 -i apache2 |
| 78 | + |
| 79 | +3) Install PHP5 modules (1 line!): |
| 80 | + |
| 81 | +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 apache2-mod_php5 |
| 82 | + |
| 83 | +Then run the following to enable the Apache modules: |
| 84 | + |
| 85 | +a2enmod suexec |
| 86 | +a2enmod rewrite |
| 87 | +a2enmod ssl |
| 88 | +a2enmod actions |
| 89 | + |
| 90 | +chkconfig --add apache2 |
| 91 | +/etc/init.d/apache2 start |
| 92 | + |
| 93 | +4) Install pure-ftpd and quota |
| 94 | + |
| 95 | +yast2 -i pure-ftpd quota |
| 96 | + |
| 97 | +chkconfig --add pure-ftpd |
| 98 | +/etc/init.d/pure-ftpd start |
| 99 | + |
| 100 | + |
| 101 | +5) Install mydns |
| 102 | + |
| 103 | +cd /tmp |
| 104 | +wget http://download.opensuse.org/repositories/home:/bajizs_cnt/openSUSE_11.1/i586/mydns-ng-1.2.8-1.1.i586.rpm |
| 105 | +wget http://download.opensuse.org/repositories/home:/bajizs_cnt/openSUSE_11.1/i586/mydns-ng-mysql-1.2.8-1.1.i586.rpm |
| 106 | +rpm -i mydns*.rpm |
| 107 | + |
| 108 | +chkconfig --add mydns |
| 109 | + |
| 110 | +6) Install vlogger and webalizer |
| 111 | + |
| 112 | +cd /tmp |
| 113 | +wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz |
| 114 | +tar xvfz vlogger-1.3.tar.gz |
| 115 | +mv vlogger-1.3/vlogger /usr/sbin/ |
| 116 | +rm -rf vlogger* |
| 117 | + |
| 118 | + |
| 119 | +yast2 -i webalizer perl-DateManip |
| 120 | + |
| 121 | +6.1) Cleanup |
| 122 | + |
| 123 | +rm -f /tmp/*.rpm |
| 124 | + |
| 125 | + |
| 126 | +7) Install ISPConfig 3 |
| 127 | + |
| 128 | +There are two possile scenarios, but not both: |
| 129 | +7.1) Install the latest released version |
| 130 | +7.2) Install directly from SVN |
| 131 | + |
| 132 | +7.1) Installation of beta 3 from tar.gz |
| 133 | + |
| 134 | + cd /tmp |
| 135 | + wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.9-rc2.tar.gz |
| 136 | + tar xvfz ISPConfig-3.0.0.9-rc2.tar.gz |
| 137 | + cd ispconfig3_install/install/ |
| 138 | + |
| 139 | +7.2) Installation from SVN |
| 140 | + |
| 141 | + yast2 -i subversion |
| 142 | + cd /tmp |
| 143 | + svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
| 144 | + cd trunk/install |
| 145 | + |
| 146 | + |
| 147 | +7.1+7.2) Now proceed with the ISPConfig installation. |
| 148 | + |
| 149 | +Now start the installation process by executing: |
| 150 | + |
| 151 | +php -q install.php |
| 152 | + |
| 153 | +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!): |
| 154 | + |
| 155 | +http://192.168.0.100:8080/ |
| 156 | + |
| 157 | +the default login is: |
| 158 | + |
| 159 | +user: admin |
| 160 | +password: admin |
| 161 | + |
| 162 | +In case you get a permission denied error from apache, please restart the apache webserver process. |
| 163 | + |
| 164 | +Optional: |
| 165 | + |
| 166 | +Install a webbased Email Client |
| 167 | + |
| 168 | +yast2 -i squirrelmail |
| 169 | + |
| 170 | +---------------------------------------------------------------------------------------------------------- |
| 171 | + |
| 172 | +Hints: |
| 173 | + |
| 174 | +debian 4.0 under openvz: |
| 175 | + |
| 176 | +VPSID=101 |
| 177 | +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 |
| 178 | +do |
| 179 | + vzctl set $VPSID --capability ${CAP}:on --save |
| 180 | +done |
| 181 | + |
| 182 | +---------------------------------------------------------------------------------------------------------- |
| 183 | + |
| 184 | +Installing Jailkit: |
| 185 | + |
| 186 | +cd /tmp |
| 187 | +wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
| 188 | +tar xvfz jailkit-2.5.tar.gz |
| 189 | +cd jailkit-2.5 |
| 190 | +./configure |
| 191 | +make |
| 192 | +make install |
| 193 | +rm -rf jailkit-2.5* |
0 commit comments