The Perfect Server - Debian Squeeze (Debian 6.0) With BIND, Dovecot & Nginx [ISPConfig 3] - Page 4

10 Install Postfix, Dovecot, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils

You can install Postfix, Dovecot, Saslauthd, MySQL, phpMyAdmin, rkhunter, and binutils with a single command:

apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d sudo

You will be asked the following questions:

General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1:

vi /etc/mysql/my.cnf

[...]
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address           = 127.0.0.1
[...]

Then restart MySQL:

/etc/init.d/mysql restart

Now check that networking is enabled. Run

netstat -tap | grep mysql

The output should look similar to this:

root@server1:~# netstat -tap | grep mysql
tcp        0      0 *:mysql                 *:*                     LISTEN      10617/mysqld
root@server1:~#

 

11 Install Amavisd-new, SpamAssassin, And Clamav

To install amavisd-new, SpamAssassin, and ClamAV, run:

apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl

The ISPConfig 3 setup script uses amavisd which loads the SpamAssassin filter library internally, so we you stop SpamAssassin to free up some RAM:

/etc/init.d/spamassassin stop
update-rc.d -f spamassassin remove

 

12 Install Nginx, PHP5 (PHP-FPM), And Fcgiwrap

Nginx is available as a package from the Dotdeb repository (the packages on official nginx repo do not work with ISPConfig 3 at the time of writing) so to install it run the following command:

apt-get install nginx

Apache should not be installed by this stage although it is pulled as a depedency for phpMyAdmin later on in the tutorial. Remove Apache with:

apt-get purge apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils

and any other related packages. You can also run:

apt-get autoremove

to make sure any unnecessary packages are purged.

To make PHP5 work in nginx through PHP-FPM (FastCGI Process Manager) as an alternative to the PHP FastCGI implementation with some additional features catering for websites of any size, especially heavier traffic, install it as follows:

apt-get install php5-fpm

PHP-FPM is a daemon process, with the init script /etc/init.d/php5-fpm, that runs a FastCGI server on port 9000.

To add MySQL support to PHP, we can install the php5-mysql package. You might need some additional PHP5 modules as well to support the enhanced features of your web applications. You can search for available PHP5 modules like this:

apt-cache search php5

If you are not bothered about disk space or whether they are necessary to install or not, you can install them all:

apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

or delete those that you know you do not need.

APC is a free and open-source PHP opcode cacher for caching and optimizing PHP intermediate code. It is similar to other PHP opcode cachers, such as eAccelerator and XCache. It is strongly recommended to have one of these installed to speed up your PHP pages.

APC can be installed as follows:

apt-get install php-apc

Now restart PHP-FPM:

/etc/init.d/php5-fpm restart

Fcgiwrap is a CGI wrapper that should work also for complex CGI scripts and can be used for shared hosting environments because it allows each vhost to use its own cgi-bin directory. For CGI support in nginx you must install Fcgiwrap package as follows:

apt-get install fcgiwrap

After the installation, the fcgiwrap daemon should already be started; its socket is /var/run/fcgiwrap.socket. If it is not running you can use the /etc/init.d/fcgiwrap script to start it.

That's it! Now when you create an nginx vhost, ISPConfig 3 will take care of the correct vhost configuration.

 

13 Install phpMyAdmin And Configure HTTPS For Vhosts

To install phpMyAdmin run the following command:

apt-get install phpmyadmin

You will be prompted with the following questions:

Web server to reconfigure automatically: <-- select none (because only apache2 and lighttpd are available as options)
Configure database for phpmyadmin with dbconfig-common? <-- No

If you selected 'Yes' then you will get an error that can be read about on this link: http://serverfault.com/questions/341116/setting-up-phpmyadmin-got-a-mysql-syntax-error

Because Apache2 is installed as part of a phpMyAdmin dependency, stop it now with:

/etc/init.d/apache2 stop

and remove Apache's system startup links:

insserv -r apache2

Start nginx afterwards:

/etc/init.d/nginx start

You can now find phpMyAdmin in the /usr/share/phpmyadmin/ directory.

After you have installed ISPConfig 3, you can access phpMyAdmin as follows:

The ISPConfig 3 apps vhost on port 8081 for nginx comes with a phpMyAdmin configuration, so you can use http://server1.example.com:8081/phpmyadmin or http://server1.example.com:8081/phpMyAdmin to access phpMyAdmin.

If you want to use a /phpmyadmin or /phpMyAdmin alias that you can use from your web sites, this is a bit more complicated than for Apache 2 because nginx does not have global aliases (aliases that can be defined for all vhosts). Therefore you have to define the aliases for each vhost so that you can access with phpMyAdmin on your specified URI.

To do this, paste the following into the nginx Directives field on the Options tab of each web site in ISPConfig3 (after you installed it later on in the tutorial):

        location /phpmyadmin {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/phpmyadmin/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /phpMyAdmin {
               rewrite ^/* /phpmyadmin last;
        }

If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on, to your phpMyAdmin configuration like this:

        location /phpmyadmin {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/phpmyadmin/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_param HTTPS on; # <-- add this line
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /phpMyAdmin {
               rewrite ^/* /phpmyadmin last;
        }

It is pretty dubious whether you would like to transfer data and passwords in cleartext to phpMyAdmin or other applications that you would like to keep secure. So to use both http and https for your vhost you should to add the following section to the http {} section in /etc/nginx/nginx.conf, before any include lines, this determines whether the visitor uses http or https and sets the $fastcgi_https variable. Use this in your phpMyAdmin configuration accordingly:

vi /etc/nginx/nginx.conf

[...]
http {
[...]
        ## Detect when HTTPS is used
        map $scheme $fastcgi_https {
          default off;
          https on;
        }
[...]
}
[...]

Do not forget to reload nginx afterwards:

/etc/init.d/nginx reload

Then go to the nginx Directives field again, and instead of fastcgi_param HTTPS on, you add the line fastcgi_param HTTPS $fastcgi_https, so that you can use phpMyAdmin for both http and https requests:

    location /phpmyadmin {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/phpmyadmin/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_param HTTPS $fastcgi_https; # <-- add this line
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /phpMyAdmin {
               rewrite ^/* /phpmyadmin last;
        }

 

 

14 Install Mailman

Since version 3.0.4, ISPConfig also allows you to manage (create/modify/delete) Mailman mailing lists. If you want to make use of this feature install Mailman as follows:

apt-get install mailman

Before we can start Mailman a first mailing list called mailman must be created:

newlist mailman

root@server1:~# newlist mailman
Enter the email of the person running the list:
 <-- admin email address, e.g. info@example.com
Initial mailman password: <-- admin password for the mailman list
To finish creating your mailing list, you must edit your /etc/aliases or
an equivalent file by adding the following lines:

## mailman mailing list
mailman:              "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"

Hit enter to notify mailman owner...
 <-- ENTER

root@server1:~#

Open /etc/aliases afterwards:

vi /etc/aliases

and add the following lines:

[...]
mailman:              "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"

Run newaliases and restart Postfix:

newaliases
/etc/init.d/postfix restart

Then start the Mailman daemon:

/etc/init.d/mailman start

After you have installed ISPConfig 3, you can access Mailman as follows:

The ISPConfig apps vhost on port 8081 for nginx comes with a Mailman configuration, so you can use http://server1.example.com:8081/cgi-bin/mailman/admin/<listname> or http://server1.example.com:8081/cgi-bin/mailman/listinfo/<listname> to access Mailman.

If you want to use Mailman from your individual web sites, the configuration is a bit more complicated than for Apache because nginx does not have global aliases (defining aliases that subsequently work for all hosts, e.g. domain.tld/definedalias). Therefore you have to define the aliases for each vhost from which you want to access Mailman.

To do this, paste the following into the nginx Directives field after ISPConfig is installed on the Options tab of each the website:

        location /cgi-bin/mailman {
               root /usr/lib/;
               fastcgi_split_path_info (^/cgi-bin/mailman/[^/]*)(.*)$;
               include /etc/nginx/fastcgi_params;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               fastcgi_param PATH_INFO $fastcgi_path_info;
               fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
               fastcgi_intercept_errors on;
               fastcgi_pass unix:/var/run/fcgiwrap.socket;
        }
        location /images/mailman {
               alias /usr/share/images/mailman;
        }
        location /pipermail {
               alias /var/lib/mailman/archives/public;
               autoindex on;
      }

This defines the alias /cgi-bin/mailman/ for your vhost, which means you can access the Mailman admin interface for a list at http://<vhost>/cgi-bin/mailman/admin/<listname>, and the web page for users of a mailing list can be found at http://<vhost>/cgi-bin/mailman/listinfo/<listname>.

Under http://<vhost>/pipermail you can find the mailing list archives.

Share this page:

21 Comment(s)

Add comment

Comments

From: Anonymous at: 2012-11-21 22:05:27

New downloadlink for Debian

AMD64(netinstall)
http://cdimage.debian.org/debian-cd/6.0.6/amd64/iso-cd/debian-6.0.6-amd64-netinst.iso

I386(netinstall)
http://cdimage.debian.org/debian-cd/6.0.6/i386/iso-cd/debian-6.0.6-i386-netinst.iso

From: Anonymous at: 2013-03-03 08:07:27

 When formatting, don't make /home a separate, or at least not predominant, partition.  /var is where ISPConfig3 stores the user-data.

For those who may be used to other panels such as, well every other one made, you're probably used to wanting to load /home as a separate and primary partition since that's where all of the user data is stored.  With ISPConfig3, all of the user's web docs are in the /var/www folder such as on a traditional non-panel setup.

From: Benjamin Bouvier at: 2012-04-24 12:10:36

Some sources were missing in my /etc/apt/source.list, so I had to add some debian's repositories:

## squeeze
deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
## squeeze multimedia
deb http://www.debian-multimedia.org squeeze main non-free
deb-src http://mirror.home-dn.net/debian-multimedia squeeze main
# squeeze security
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze update
deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free

And then the Dotdeb repository
# Dotdeb repository
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

Instead of it I couldn't synchronize The System Clock,install Mysql, etc

From: Lee Peterson at: 2012-05-09 18:44:50

Shouldn't /etc/hosts read as:

127.0.0.1       localhost   localhost.localdomain
192.168.0.100   server1.example.com     server1

From: Anonymous at: 2012-07-17 20:32:32

Get:1 http://ftp.us.debian.org/debian/ squeeze/main mysql-common all 5.1.49-3 [70.9 kB] Get:2 http://ftp.us.debian.org/debian/ squeeze/main libnet-daemon-perl all 0.43-1 [46.6 kB] Get:3 http://ftp.us.debian.org/debian/ squeeze/main libplrpc-perl all 0.2020-2 [36.0 kB] Get:4 http://ftp.us.debian.org/debian/ squeeze/main libdbi-perl amd64 1.612-1 [883 kB] Get:5 http://ftp.us.debian.org/debian/ squeeze/main libmysqlclient16 amd64 5.1.49-3 [1985 kB] Get:6 http://ftp.us.debian.org/debian/ squeeze/main libdbd-mysql-perl amd64 4.016-1 [140 kB] Get:7 http://ftp.us.debian.org/debian/ squeeze/main mysql-client-5.1 amd64 5.1.49-3 [10.1 MB] Get:8 http://ftp.us.debian.org/debian/ squeeze/main mysql-server-core-5.1 amd64 5.1.49-3 [4124 kB] Get:9 http://ftp.us.debian.org/debian/ squeeze/main mysql-server-5.1 amd64 5.1.49-3 [6598 kB] Get:10 http://ftp.us.debian.org/debian/ squeeze/main libgpg-error0 amd64 1.6-1 [43.9 kB] Get:11 http://ftp.us.debian.org/debian/ squeeze/main libgcrypt11 amd64 1.4.5-2 [282 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libtasn1-3 amd64 2.7-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libgnutls26 amd64 2.8.6-1 404 Not Found [IP: 64.50.233.100 80] Get:12 http://ftp.us.debian.org/debian/ squeeze/main libsasl2-2 amd64 2.1.23.dfsg1-7 [115 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libldap-2.4-2 amd64 2.4.23-7 404 Not Found [IP: 64.50.233.100 80] Get:13 http://ftp.us.debian.org/debian/ squeeze/main lsof amd64 4.81.dfsg.1-1 [282 kB] Get:14 http://ftp.us.debian.org/debian/ squeeze/main mime-support all 3.48-1 [34.2 kB] Get:15 http://ftp.us.debian.org/debian/ squeeze/main python2.6-minimal amd64 2.6.6-8+b1 [1520 kB] Get:16 http://ftp.us.debian.org/debian/ squeeze/main libexpat1 amd64 2.0.1-7 [137 kB] Get:17 http://ftp.us.debian.org/debian/ squeeze/main python2.6 amd64 2.6.6-8+b1 [2455 kB] Err http://ftp.us.debian.org/debian/ squeeze/main python-minimal all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Get:18 http://ftp.us.debian.org/debian/ squeeze/main python-support all 1.0.10 [33.0 kB] Get:19 http://ftp.us.debian.org/debian/ squeeze/main ucf all 3.0025+nmu1 [69.6 kB] Get:20 http://ftp.us.debian.org/debian/ squeeze/main binutils amd64 2.20.1-16 [3993 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libpq5 amd64 8.4.5-0squeeze2 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main openssl amd64 0.9.8o-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-common amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-imapd amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-pop3d amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Get:21 http://ftp.us.debian.org/debian/ squeeze/main getmail4 all 4.20.0-1 [170 kB] Get:22 http://ftp.us.debian.org/debian/ squeeze/main libhtml-template-perl all 2.9-2 [65.9 kB] Get:23 http://ftp.us.debian.org/debian/ squeeze/main libsasl2-modules amd64 2.1.23.dfsg1-7 [155 kB] Get:24 http://ftp.us.debian.org/debian/ squeeze/main mysql-client all 5.1.49-3 [65.2 kB] Get:25 http://ftp.us.debian.org/debian/ squeeze/main mysql-server all 5.1.49-3 [65.4 kB] Get:26 http://ftp.us.debian.org/debian/ squeeze/main ssl-cert all 1.0.28 [14.8 kB] Err http://ftp.us.debian.org/debian/ squeeze/main postfix amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Get:27 http://ftp.us.debian.org/debian/ squeeze/main rkhunter all 1.3.6-4 [222 kB] Err http://ftp.us.debian.org/debian/ squeeze/main sudo amd64 1.7.4p4-2.squeeze.1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-doc all 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-mysql amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Get:28 http://ftp.us.debian.org/debian/ squeeze/main unhide amd64 20100201-1 [822 kB] Fetched 34.5 MB in 3s (9489 kB/s) Failed to fetch http://ftp.us.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.7-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.8.6-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.23-7_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python-minimal_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postgresql-8.4/libpq5_8.4.5-0squeeze2_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_0.9.8o-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-common_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-imapd_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-pop3d_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/s/sudo/sudo_1.7.4p4-2.squeeze.1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-doc_2.7.1-1_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-mysql_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? root@sekaihost:~# apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d sudo Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dovecot-common libdbd-mysql-perl libdbi-perl libexpat1 libgcrypt11 libgnutls26 libgpg-error0 libhtml-template-perl libldap-2.4-2 libmysqlclient16 libnet-daemon-perl libplrpc-perl libpq5 libsasl2-2 libsasl2-modules libtasn1-3 lsof mime-support mysql-client-5.1 mysql-common mysql-server-5.1 mysql-server-core-5.1 python python-minimal python-support python2.6 python2.6-minimal ssl-cert ucf unhide Suggested packages: binutils-doc rng-tools gnutls-bin libipc-sharedcache-perl libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal libterm-readkey-perl tinyca ca-certificates procmail postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf postfix-cdb mail-reader ufw python-doc python-tk python-profiler python2.6-doc python2.6-profiler binfmt-support bsd-mailx tripwire openssl-blacklist The following NEW packages will be installed: binutils dovecot-common dovecot-imapd dovecot-pop3d getmail4 libdbd-mysql-perl libdbi-perl libexpat1 libgcrypt11 libgnutls26 libgpg-error0 libhtml-template-perl libldap-2.4-2 libmysqlclient16 libnet-daemon-perl libplrpc-perl libpq5 libsasl2-2 libsasl2-modules libtasn1-3 lsof mime-support mysql-client mysql-client-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 openssl postfix postfix-doc postfix-mysql python python-minimal python-support python2.6 python2.6-minimal rkhunter ssl-cert sudo ucf unhide 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB/47.6 MB of archives. After this operation, 125 MB of additional disk space will be used. Do you want to continue [Y/n]? y Err http://ftp.us.debian.org/debian/ squeeze/main libtasn1-3 amd64 2.7-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libgnutls26 amd64 2.8.6-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libldap-2.4-2 amd64 2.4.23-7 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python-minimal all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libpq5 amd64 8.4.5-0squeeze2 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main openssl amd64 0.9.8o-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-common amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-imapd amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-pop3d amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main sudo amd64 1.7.4p4-2.squeeze.1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-doc all 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-mysql amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.7-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.8.6-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.23-7_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python-minimal_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postgresql-8.4/libpq5_8.4.5-0squeeze2_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_0.9.8o-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-common_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-imapd_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-pop3d_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/s/sudo/sudo_1.7.4p4-2.squeeze.1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-doc_2.7.1-1_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-mysql_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

From: at: 2013-04-19 16:30:29

NginX has his own repo.

http://nginx.org/en/linux_packages.html#stable

For Debian replace codename with Debian distribution codename, and append the following to the end of the/etc/apt/sources.list file:

deb http://nginx.org/packages/debian/ codename nginx 

deb-src http://nginx.org/packages/debian/ codename nginx 

 For Debian/Ubuntu then run the following commands:

apt-get update
apt-get install nginx

 

From: Anonymous at: 2012-08-07 16:38:11

Couldn't find package php5-fpm ... seems like no longer maintained repo. 

From: Anonymous at: 2012-08-10 02:38:11

Add: deb http://php53.dotdeb.org squeeze all

From: Giuseppe at: 2012-11-11 04:59:54

You don't have writed the location for "fastcgi_param HTTPS on". In which file i have to add this code?

"If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on, to your phpMyAdmin configuration like this"

From: MiLk at: 2012-11-11 11:01:21

If you install the package "php5" at the same time than "php5-fpm", apache won't be installed with phpmyadmin.

From: Giuseppe at: 2012-11-12 14:47:58

Hi,

after i insert this command "update-rc.d -f spamassassin remove" the Debian 6.0.6 Squeeze give me this error "update-rc.d: using dependency based boot sequencing".

 How to solve this issue?

From: at: 2013-02-21 08:53:39

When i do this: insserv -r apache2

I get this error:

insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

And when i then try to start nginx with: /etc/init.d/nginx start

I get this error:

Restarting nginx: nginxnginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

From: Wallis Short at: 2013-04-15 13:03:51

When I carried out the command

/etc/init.d/nginx start

I received an error

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed

 This means that IPv6 only is enabled. To correct this error edit the file /etc/nginx/sites-enabled/default

vi /etc/nginx/sites-enabled/default

and comment out (or delete) the following line.

listen [::]:80 default ipv6only=on; ## listen for ipv6
 
This should work when you do the restart.

 

From: at: 2012-04-18 15:40:20

Installation of Jailkit doesn't work for me. I noticed you forgot to add a line `cd ..` so that the .deb package can be found and installed.

From: at: 2012-06-11 11:30:24

The following must be corrected in the filter:

action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp] 

:)

From: Ensale at: 2012-04-18 18:44:31

I tried this.

Before started system was at 60MB memory used after I tried this configuration: http://www.lowendbox.com/blog/wordpress-cheap-vps-lowendscript/

I spent 5 hours trying to set it up. Due to: lack of knowledge about linux.

 Then... finally got ISPConfig 3 up and running, realising that memory used: 150MB

 Start to cry. My server is only 256MB/512MB can this be the end?

 Tried to get rid of postfix, and ... boom! 200MB used. php5-fpm com up with 20 processes from web1 user, which I have no ideas where from:

Then I tried to removed all those installed packages... still 95MB memory used. This time I really freak out. Couldn't find a better way to format the debian system. So I had to contact support. Hofully they will do something.

From: Anonymous at: 2012-06-17 05:03:26

Without any offense: what did you expect? A webserver will not run out of thin air, same goes for the mailserver, clamav, etc...

Basically you should ask yourself if you really need your own webserver, if so you should get one with more ram (1 GB might do, if you're not hosting many sites).

Wordpress and friends are also quite hungry on the RAM, as such you won't be able to host many sites with such a low amount of RAM.

 Your server is probably more suited as dedicated mailserver/irc server, etc...

 

From: Anonymous at: 2012-09-10 03:26:19

Some people want everything for nothing.

 

From: Chris P at: 2012-09-05 22:53:47

I found that in addition to the steps under 21.1 I also had to uncomment the following section in /etc/postfix/master.cf in order to get SSLTLS to work.

smtps     inet  n       -       -       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

 

Note besides; note that there's two section 22.1,... I was referring to the first one.

 

From: Dragos at: 2013-04-15 09:09:11

Thanks again for the tutorial, great work but i have a problem after installation that i can't figure it out.

When i try to acces IspConfig index page i get a 403 Forbidden Page.

 My error log is :

2013/04/15 10:17:57 [error] 3187#0: *17 "/usr/local/ispconfig/interface/web/index.php" is forbidden (13: Permission denied), client: 192.168.0.52, server: _, request: "GET / HTTP/1.1", host: "192.168.0.253:8080"
 

From: XAKEPEHOK at: 2013-10-08 17:22:31

Try to set user directive in /etc/nginx/nginx.conf from nginx to www-data