|
| 1 | + |
| 2 | +Installation |
| 3 | +----------- |
| 4 | + |
| 5 | +It is recommended to use a clean (fresh) Fedora install. Then follow the steps below to setup your server with ISPConfig 3: |
| 6 | + |
| 7 | +Installation of some basic requirements: |
| 8 | + |
| 9 | +// rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* |
| 10 | +yum update |
| 11 | +// yum groupinstall 'Development Tools' |
| 12 | +// yum groupinstall 'Development Libraries' |
| 13 | + |
| 14 | +You should disable selinux now, as some programs will not start when selinux is enabled: |
| 15 | + |
| 16 | +vi /etc/selinux/config |
| 17 | + |
| 18 | +and set: |
| 19 | + |
| 20 | +SELINUX=disabled |
| 21 | + |
| 22 | +then reboot the server. |
| 23 | + |
| 24 | + |
| 25 | +1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): |
| 26 | + |
| 27 | +yum install ntp httpd mysql-server php php-mysql php-mbstring phpMyAdmin getmail postfix dovecot dovecot-mysql wget |
| 28 | + |
| 29 | +chkconfig --levels 235 mysqld on |
| 30 | +/etc/init.d/mysqld start |
| 31 | + |
| 32 | +chkconfig --levels 235 httpd on |
| 33 | +/etc/init.d/httpd start |
| 34 | + |
| 35 | +chkconfig --levels 235 dovecot on |
| 36 | +/etc/init.d/dovecot start |
| 37 | + |
| 38 | +chkconfig --levels 235 sendmail off |
| 39 | +chkconfig --levels 235 postfix on |
| 40 | +/etc/init.d/sendmail stop |
| 41 | +/etc/init.d/postfix start |
| 42 | +/etc/init.d/saslauthd start |
| 43 | + |
| 44 | + |
| 45 | +Set the mysql database password: |
| 46 | + |
| 47 | +/usr/bin/mysql_secure_installation |
| 48 | + |
| 49 | + |
| 50 | +2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| 51 | + |
| 52 | +yum install amavisd-new spamassassin clamav clamav-data clamav-server clamav-update unzip bzip2 unrar |
| 53 | + |
| 54 | +chkconfig --levels 235 amavisd on |
| 55 | +chkconfig --levels 235 clamd.amavisd on |
| 56 | +/usr/bin/freshclam |
| 57 | +/etc/init.d/amavisd start |
| 58 | +/etc/init.d/clamd.amavisd start |
| 59 | + |
| 60 | +3) Install apache, PHP5 and phpmyadmin (1 line!): |
| 61 | + |
| 62 | +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 |
| 63 | + |
| 64 | +disable php mapserver module as it causes errors on cli: |
| 65 | + |
| 66 | +vi /etc/php.d/mapserver.ini |
| 67 | + |
| 68 | +and add ; in front of the line extension=php_mapscript.so |
| 69 | + |
| 70 | +; extension=php_mapscript.so |
| 71 | + |
| 72 | +4) Install pure-ftpd and quota |
| 73 | + |
| 74 | +yum install pure-ftpd quota |
| 75 | + |
| 76 | +chkconfig --levels 235 pure-ftpd on |
| 77 | + |
| 78 | +5) Install bind dns server |
| 79 | + |
| 80 | +yum install bind bind-utils |
| 81 | + |
| 82 | +chkconfig --levels 235 named on |
| 83 | + |
| 84 | +6) Install vlogger dependencies and webalizer |
| 85 | + |
| 86 | +yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder |
| 87 | + |
| 88 | +6.5) Install jailkit |
| 89 | + |
| 90 | +yum install gcc |
| 91 | + |
| 92 | +cd /tmp |
| 93 | +wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz |
| 94 | +tar xvfz jailkit-2.11.tar.gz |
| 95 | +cd jailkit-2.11 |
| 96 | +./configure |
| 97 | +make |
| 98 | +make install |
| 99 | +rm -rf jailkit-2.11* |
| 100 | + |
| 101 | +6.6) Install fail2ban |
| 102 | + |
| 103 | +yum install fail2ban |
| 104 | + |
| 105 | +7) Configure the firewall |
| 106 | + |
| 107 | +Now you should switch off the firewall by running: |
| 108 | + |
| 109 | +system-config-firewall-tui |
| 110 | + |
| 111 | +ISPConfig comes with a iptables bsed firewall script that can be managed from within the ispconfig interface. |
| 112 | + |
| 113 | + |
| 114 | +8) Install ISPConfig 3 |
| 115 | + |
| 116 | + cd /tmp |
| 117 | + wget http://www.ispconfig.org/downloads/ISPConfig-3.0.2.tar.gz |
| 118 | + tar xvfz ISPConfig-3.0.2.tar.gz |
| 119 | + cd ispconfig3_install/install/ |
| 120 | + |
| 121 | +Now start the installation process by executing: |
| 122 | + |
| 123 | +php -q install.php |
| 124 | + |
| 125 | +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!): |
| 126 | + |
| 127 | +http://192.168.0.100:8080/ |
| 128 | + |
| 129 | +the default login is: |
| 130 | + |
| 131 | +user: admin |
| 132 | +password: admin |
| 133 | + |
| 134 | +In case you get a permission denied error from apache, please restart the apache webserver process. |
| 135 | + |
| 136 | +Optional: |
| 137 | + |
| 138 | +Install a webbased Email Client |
| 139 | + |
| 140 | +yum install squirrelmail |
| 141 | + |
| 142 | + |
| 143 | +---------------------------------------------------------------------------------------------------------- |
| 144 | + |
| 145 | +Hints: |
| 146 | + |
| 147 | +debian 4.0 under openvz: |
| 148 | + |
| 149 | +VPSID=101 |
| 150 | +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 |
| 151 | +do |
| 152 | + vzctl set $VPSID --capability ${CAP}:on --save |
| 153 | +done |
| 154 | + |
| 155 | +---------------------------------------------------------------------------------------------------------- |
| 156 | + |
| 157 | + |
0 commit comments