The Perfect Server - Debian Lenny (Debian 5.0) With MyDNS & Courier [ISPConfig 3] - Page 3

4 Install The SSH Server

Debian Lenny does not install OpenSSH by default, therefore we do it now. Run

apt-get install ssh openssh-server

From now on you can use an SSH client such as PuTTY and connect from your workstation to your Debian Lenny server and follow the remaining steps from this tutorial.

 

5 Install vim-nox (Optional)

I'll use vi as my text editor in this tutorial. The default vi program has some strange behaviour on Debian and Ubuntu; to fix this, we install vim-nox:

apt-get install vim-nox

(You don't have to do this if you use a different text editor such as joe or nano.)

 

6 Configure The Network

Because the Debian Lenny installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100) (please note that I replace allow-hotplug eth0 with auto eth0; otherwise restarting the network doesn't work, and we'd have to reboot the whole system):

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

Then restart your network:

/etc/init.d/networking restart

Then edit /etc/hosts. Make it look like this:

vi /etc/hosts

127.0.0.1       localhost.localdomain   localhost
192.168.0.100   server1.example.com     server1
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Now run

echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start

Afterwards, run

hostname
hostname -f

It is important that both show server1.example.com now!

 

7 Update Your Debian Installation

First make sure that your /etc/apt/sources.list contains the debian-volatile repository (this makes sure you always get the newest updates for the ClamAV virus scanner - this project publishes releases very often, and sometimes old versions stop working).

vi /etc/apt/sources.list

[...]
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

Run

apt-get update

to update the apt package database and

apt-get upgrade

to install the latest updates (if there are any).

 

8 Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet. Simply run

apt-get install ntp ntpdate

and your system time will always be in sync.

 

9 Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils

We can install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, and binutils with a single command:

apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils sudo

You will be asked the following questions:

New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
Create directories for web-based administration? <-- No
General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
SSL certificate required <-- Ok

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 we restart MySQL:

/etc/init.d/mysql restart

Now check that networking is enabled. Run

netstat -tap | grep mysql

The output should look like this:

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

During the installation, the SSL certificates for IMAP-SSL and POP3-SSL are created with the hostname localhost. To change this to the correct hostname (server1.example.com in this tutorial), delete the certificates...

cd /etc/courier
rm -f /etc/courier/imapd.pem
rm -f /etc/courier/pop3d.pem

... and modify the following two files; replace CN=localhost with CN=server1.example.com (you can also modify the other values, if necessary):

vi /etc/courier/imapd.cnf

[...]
CN=server1.example.com
[...]

vi /etc/courier/pop3d.cnf

[...]
CN=server1.example.com
[...]

Then recreate the certificates...

mkimapdcert
mkpop3dcert

... and restart Courier-IMAP-SSL and Courier-POP3-SSL:

/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop-ssl restart

Share this page:

149 Comment(s)

Add comment

Comments

From: JcDenaes at: 2009-04-25 01:13:01

It did the trick,

 Thx a lot

--

Jc.

From: kaiscch at: 2009-04-13 15:32:10

hallo,

versuch doch mal folgendes..
datei /etc/debian_version
inhalt: 5.0.1
ändern in: 5.0

ciao... kai

From: at: 2009-04-13 00:54:34

Hi there,

Nice tutorial. It was smooth until the utmost end :

>> Initial configuration 

Notice: Undefined variable: distver in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distbaseid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135

Linux Distribution or Version not recognized.

--
Distributor ID:    Debian
Release:    5.0.1
Codename:    lenny

 Nothing in the Ispconfig forum, just a trace in the bugtracker (FS#689 - centos 5.3)

Any suggestion?

--

Thx

From: CoffeeJunk at: 2009-04-13 14:24:42

I had exactly the same problem as you had. I put the full paths in/tmp..../lib/install.lib.php. And at last I changed the part that finds the Debian version in lib/install.lib.php, line 73, into

if(trim(file_get_contents('/etc/debian_version')) == '5.0.1' || trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {

 

That solved my problem.

 

Good luck!

From: Dave at: 2009-03-18 16:52:47

Just out of curiosity, why is Ruby not installed?

From: at: 2009-03-01 23:18:30

I was looking for this excellent tutorial to check whether or not this tutorial is amended and corrected regularly, if at all [I had submitted a correction to the path reported by SquirrelMail and wondered if this would be incorporated into this document along with other amendments and improvements].

This tutorial is filed under Debian and not under the heading Control Panels as is ISPConfig2.

 

From: Anonymous at: 2009-07-20 10:35:10

here is another step by step for lenny apache2-courier-postfix-ssl-squirrelmail server

http://www.alphabetthreat.co.uk/linux/server/

From: at: 2010-08-04 15:59:17

This tutorial is correctly filed under Debian and ISPConfig category. by the way, this tutorial is about ISPConfig 3 and not ISPConfig 2.

From: at: 2010-07-28 09:15:32

Seconded.

From: Fawkes at: 2010-01-11 13:13:24

I wanted to install vm ware server 2.0 on that server too

 do I need to install ispconfig first or after vmware server ?

From: bouncy castle hire weston-super-mare at: 2010-03-24 19:49:08

This really helped me , I handt used ispconfig before and was dreading installing it to ubuntu, so now I have saved a bit of time and effort and just used the debian, will report any problems, but so far everything smooth.. Thank you !

From: Horfic at: 2011-01-06 09:13:26

You shoud add php5-curl package to the installation.

From: Anonymous at: 2011-01-06 15:07:32

When the installation is finished, I reboot the server, but when the server starts, jumps and all that I can write, erase and rewrite. Do not run with Apache, MySQL, PHP and even SSH. What do you do?

When I log in as root and give

/etc/init.d/apache2 restart

Restarting web server: apache2rm: cannot remov "/var/run/apache/*ssl_scache*": Read-only file system
(30) Read-only file system: apache2: could not open error log file /var/log/apache2/error.log
Unable to open logs
failed!

From: Anonymous at: 2011-06-19 18:48:37

Thanks, a very usefull tutorial.

From: Croydon at: 2009-05-15 10:35:20

Just to be sure:

I learned some time ago that you should only put the hostname and not the fqdn into /etc/hostname, so that the command "hostname" shows "server1" and the command "hostname --fqdn" shows "server1.example.com".

So, what is the correct or better solution?

From: Anonymous at: 2009-04-24 14:43:40

See what adapter name you're using instead of eth0:

ifconfig

From: Haasfos at: 2009-04-23 20:01:20

I did this

vi /etc/network/interfaces

Networking is down

Restart with /etc/init.d/networking restart gifs lots of errors  "No such device"  Failed to bring up eth0

When I remove the line "auto eth0" it starts but not working network and internet

From: at: 2009-04-14 11:00:50

The tutorial is perfect, really perfect. If you cannot get it to work, it means you've skipped something or sone something wrong. Besides, try to use your own brain, don't just copy and paste...

From: Anonymous at: 2009-03-27 19:12:23

ERROR: Unable to load SQL-Dump into database table.

From: heil at: 2009-03-26 02:14:06

Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-common_5.0.51a-21_all.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/libmysqlclient15off_5.0.51a-21_i386.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-client-5.0_5.0.51a-21_i386.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-server-5.0_5.0.51a-21_i386.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.5.9-5_i386.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/p/postgresql-8.3/libpq5_8.3.5-1_i386.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-client_5.0.51a-21_all.deb 404 Not Found Failed to fetch http://ftp2.de.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-server_5.0.51a-21_all.deb 404 Not Found

 

your tutorial is not perfect and not good

From: admin at: 2009-03-26 10:05:32

Yes, I know, it's always my fault...

Run

apt-get update

and try again.

From: Anonymous at: 2009-05-29 23:29:22

Hey im really new to this.. I was wondering how you would go about commenting out stuff Im using terminal and I cant seem to edit anything

 

EX

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:

 

THANKs

 

From: Anonymous at: 2009-08-06 20:36:32

please add that ntp must be configured for the right time, 

 --> /etc/ntp.conf

 example:

 server ntps1-0.cs.tu-berlin.de

 server ntps1-1.cs.tu-berlin.de

From: A better pool of ntp servers to use at: 2009-12-10 03:52:50

server 0.pool.ntp.org

server 1.pool.ntp.org

 

See www.ntp.org for more information on the network time server pool.

 

From: Alinutz at: 2010-03-05 08:32:43

postfix is instaled only if you have this sources.list

 


deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

# official Debian archives
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://http.us.debian.org/debian/ stable main contrib non-free
deb http://http.us.debian.org/debian/ testing main contrib non-free
deb http://http.us.debian.org/debian/ unstable main contrib non-free
#deb-src http://http.us.debian.org/debian/ unstable main contrib non-free

 

then  apt-get update

 

free
then  apt-get upgrade

From: at: 2009-06-08 16:40:04

Hi,

I had the exact same problem, so I changed my /etc/apt/sources.list to: 

#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 CD Binary-1 20090413-00:10]/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 CD Binary-1 20090413-00:10]/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

 

And that did it for me, hope it helps... 

From: Dannyboyd at: 2009-06-17 20:01:30

THANKS to Falko and how to forge -

Its very a great guide - I have taken advantage of your guides and learned Linux the past 2-3 years. I have been working with windows servers , so this is really a great help to build a good Linux server. 

And thoose who still cant make it anyway should never work with servers - so its really a good question why you try and why you complain - Its very close to a step by step guide and if someone dont understand - "Try also to use google and your brain" - and instead of complaining you could make your own guide if you can do better.

So its a good guide and its for free - 

I have learned Linux from reading the guides from Falkotimme and others and now I have my own server hosting homepages for my customers....

I have some danish friends who have also giving me advice online - but Falko is my Guru.
Whenever I install a new Linux I will start with a guide from how to forge- use google  and my own notes.

I have been trying to find an good control panel - I tried Gnupanel , Cpanel and others - but they are awfull and have messed up my server. I thin maybe I would like to buy one control panel for debian that is working well and one simple.

So if someone can recommend a good control panel my server will become a complete webhotel , or just close. I am satisfied with this help i get here.

..Dennis ,,(dannyboyd)  

From: at: 2009-07-08 13:30:04

I am concerned that you say to open up mysql for queries from anywhere on the 'net without the blink of an eye.

This creates a pretty significant security vulnerability it seems to me, and why?  There is no explanation for why other hosts should be able to query mysql.

From: triple5 at: 2010-09-11 06:02:14

It is true, I also think that this should not be said without telling, why you would do that. He probably opened mysql to other hosts, in order to provide for the possibillity of a multiserver setup with dedicated hosts for mysql etc. I would also enable mysql only for localhost...

From: at: 2009-07-30 12:10:55

The tutorial doesn't change the postfix SSL-key. The default-one is useless, though.

The same author also did this tutorial (german):  http://www.howtoforge.de/howto/virtuelle-benutzer-und-domains-mit-postfix-courier-mysql-und-squirrelmail-ubuntu-804-lts/

There you find this commands to create a new one:

cd /etc/postfix
openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509

Country Name (2 letter code) [AU]: <-- Enter your country (z.B. “DE”).
State or Province Name (full name) [Some-State]: <-- Enter your state.
Locality Name (eg, city) []: <-- Enter your city.
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- e.g. name of your company.
Organizational Unit Name (eg, section) []: <-- e.g. department name.
Common Name (eg, YOUR name) []: <-- Fully Qualified Domain Name of your server (e.g. “server1.example.com”).
Email Address []: <-- your email address.

Change privileges of smtpd.key:

chmod o= /etc/postfix/smtpd.key

From: at: 2010-06-21 19:42:51

When he says to change the CN on the section for pop and smtp, he said you can change information there as well. If you look in the file, all the information that was supposed to be changed by his last guide's commands is right there, an if you change all that, then when you follow through with the mkimapdcert and mkpop3dcert commands all that will be handled.

From: at: 2009-08-21 16:32:16

I noticed some people have problems connecting to Internet (for instance) .If you do do this:
ifconfig -a

and see if your eth0 has an IP address.

If you are getting your IP from DHCP you can run dhclient or dhclient3 

to get a new IP address.

If your eth0 does NOT exist do;

tunctl -t tun0

to create a vpn type virtual NIC then give it an address by;

ifconfig tun0 inet 192.168.1.10 netmask 255.255.255.0 mtu 1500 up

(dont put a dot after last 0)  .

Now of course (I used 1) but if your DHCP is set to give addresses at 192.168.0.X then use  0 .X

LOOK AT THE REPLY where they tell you to edit your /etc/apt/sources.lst to correct the errors in apt-get ????

Don't blame the instructions for the problems that may pre exist or arise please.

 

In any case if you do not have an eth0 or eth1 and you did before you may need to reboot

if the problem persists then go back and undo changes to your /etc/network/interfaces file

 

all it was (it used to be like this):

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp


That is it!

re-run networking or reboot.

I am a noob but I enjoy  learning new things. it is not "the end of the world as we know it".

lol

:D
just be cool relax and enjoy!
:)

 

Thanks to Falko\

From: at: 2010-01-08 10:26:04

After completing step 9, it shows this warning

[quote]To enable saslauthd, edit /etc/default/saslauthd and set START=yes (warning).[/quote]

 

its used to auto start saslauthd at system startup...

 

 

From: suzeFan at: 2010-03-03 20:49:18

If you want to use a commercial WebHosts SMTP for EMail-Routing, you will need authentification . Here is a really good tutorial how to perform this: http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html

Works great for me (as well as this tutorial here 8-)).

Hint to falko: Could be added here as well ;-)

Only thing I miss now in ISPConfig is a way to direct certain SMTP for certain mail accounts.

 

 

From: Miguelp at: 2010-09-19 22:39:38

I've followed this tutorial, and overall it's Ok i've got allmost everything working fine, exept for email.

I can see the squirrelmail login page when i do www.domain.tld/webmail, i'm able to login using the accounts i create inside ispconfig.

What's missing, i cannot get nor send messages to any email.

I've tryed to send an email from a gmail account to one of the new emails created, and it fails sending, i cannot recieve, tryed the other way around, send an email from the new email to a gmail account it dosent get there, so at the moment i cant send nor recieve emails.

How do i fix this? i'm a newbie, configuring servers.

 

Thanks in advance.

From: Anonymous at: 2010-11-18 01:03:31

Thank you so much!

 A few blips here and there - but it is finally working :)

 

From: Anonymous at: 2011-01-14 00:18:58

Hello guys, I really need some help now. The tutorial here is really good to follow but i did s.th. wrong in the installation routine. In the step, where u choose to negate the question "Create directories for web-based administration?", I clicked on yes. I remove the packages in this step several time and reinstalled them, but i didnt get the window again to ask me this sentence. How can i change the option I've made? To "No".

From: at: 2009-05-05 06:16:14

sorry my english ... I used google

The mydns not resolve external domain ...

so the place ...

From: at: 2009-10-16 06:30:02

look for /etc/resolv.conf

nameserver 127.0.0.1
nameserver YOUR.NS1.IP
nameserver YOUR.NS2.IP

From: Anonymous at: 2009-05-03 22:08:45

I would suggest to use jailkit with hardlinks:

 vi /etc/jailkit/jk_update.ini

 

 hardlinks = 1

 

Regards,

Andreas

From: at: 2010-10-21 04:41:53

Hello,

Jailkit is not installed on my system (no etc/jailkit folder). How can I install it without deleting ISPConfig ?

Thank you,

Fred

From: quannv at: 2009-04-28 11:20:57

I did follow the perfect sever guide but I have different partition scheme, when I  install ISP config, it doesn't require enter the main directory for www data.

How to change like that?

From: Vagelis Koutsomitros at: 2009-03-07 01:01:06

I tried to initialize quota in lenny with the commands used here, but I got various errors.

So instead I used some info found here http://learnlinux.tsf.org.za/courses/build/sys-admin/ch05s02.html and i think that the best way to initialize quota, is the following

quotacheck -cvugm /home

 This will create the files aquota.user and aquota.group  ( -c flag ) on partition /home (or use the -a flag for all partitions and do not specify /home as 2nd parameter)

Then 

quotaon -avug

as the tutorial says

Also quota.user and quota.group is for version 1 while aquota.user and aquota.group is for version 2 (man quotacheck)

So in short, I suggest that 

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm

 is replaced by

quotacheck -acvugm

A big thank you, for your tutorials! Very useful!

From: conket at: 2009-11-10 17:54:03

I followed the part of Install MyDNS, and here is what I got. Could someone help me of  what to do next? Thank you,


test1:/tmp# wget http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.25.tar.gz                      --2009-11-10 12:49:49--  http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.25.tar.gz
Resolving heanet.dl.sourceforge.net... 193.1.193.66, 2001:770:18:aa40::c101:c142
Connecting to heanet.dl.sourceforge.net|193.1.193.66|:80... failed: Connection refused.
Connecting to heanet.dl.sourceforge.net|2001:770:18:aa40::c101:c142|:80... failed: Network is unreachable.
test1:/tmp#

From: at: 2009-06-02 09:30:36

I would recommend adding the volatile repository to apt (see http://www.debian.org/volatile/ ) when using clamav.

From: Julien at: 2009-06-15 13:13:18

Hi, this tutorial comes in very handy, thanks. But there seem to be a problem with your phpmyadmin security fix. By doing this, you remove setup.php protection and leave it available to anyone. (I don't understand how this is a security fix in the first place) Since debian lenny runs phpmyadmin 2.11.8.1 it becomes subject to code injection! See phpmyadmin security annonce : http://www.phpmyadmin.net/home_page/security/PMASA-2009-3.php Thanks again for your great site

From: Aprasmac at: 2009-06-23 05:11:13

There's no /etc/init.d/openbsd-inetd in my case. Did i miss something? How to restart the service then?

From: Anonymous at: 2009-12-04 18:49:09

did you solve this? the file is missing here too

From: pallermo at: 2010-02-26 00:22:32

Also missing...

From: Anonymous at: 2010-03-10 07:59:51

I also crashed at this point:(

From: Anonymous at: 2009-06-26 13:54:47

If you are on a low-spec server, do not install ClamAV. I installed it on a server with 540M ram and I realized that it was taking a third of my memory, forcing it to hit the swap (which kills performance).

From: Robert at: 2009-12-10 19:16:00

9 Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils

We can install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, and binutils with a single command:

apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils

At step 9 you are saying that your are installing phpMyAdmin. But you are not.

Instead you are installing phpMyaAdmin at step 11. Which one is the better, at step 9 together with MySQL, or at step 11 where it is installed now ?

From: Jan Schulz-Hofen at: 2009-12-29 14:33:59

see http://www.dikant.de/2009/01/22/setting-up-pureftpd-on-a-virtual-server/

Essentially, it's:

apt-get source pure-ftpd

add --without-capabilities to optflags in debian/rules

apt-get build-dep pure-ftpd

dpkg-buildpackage -uc -b

dpkg -i ../pure-ftpd-common_1.0.1-8_i386.deb

dpkg -i ../pure-ftpd-mysql_1.0.1-8_i386.deb

From: diamen at: 2009-12-25 11:16:31

1. Edit or create /etc/pure-ftpd/conf/CallUploadScript

2. Write on this file YES 

3 Edit or create /etc/pure-ftpd/clamav_chek.sh

4. Write on this file 

#!/bin/sh
/usr/bin/clamdscan --remove --quiet --no-summary "$1"

5. Edit /etc/default/pure-ftpd-common

UPLOADSCRIPT=/etc/pure-ftpd/clamav_chek.sh

6. Restart pure-ftpd 

/etc/init.d/pure-ftpd-mysql restart

From: alogoc at: 2009-09-01 12:24:33

It's a very nice a useful tutorial...though how i make my squirremail point to whole domain?It's not very handy to have to put the /webmail in the end.

 If anyone could help...thanks!

From: suzeFan at: 2010-03-01 22:16:04

Because after edit out ftp as last service from default inetd configuration, the inetd gives an errormsg on restart and, off course, do not start again.

Maybe telnetd should be added to the tutorial ...

 

From: suzeFan at: 2010-03-01 22:54:28

Tip for all people lazy as me: create mydns by copy and paste into any editor on the host/Web-Browser-Computer and save it on an arbitrary local webserver.

Then get it by wget:

cd /etc/init.d
wget http://192.168.0.99/mydns

Could save some writing/typos that way

 

 

From: Anonymous at: 2010-03-12 21:16:04

apt-get install openbsd-inetd and go on

From: Paolo at: 2010-03-12 23:21:13

Restart inetd afterwards:

/etc/init.d/openbsd-inetd restart

become

/etc/inetd restart

From: Gummel at: 2010-06-27 09:54:21

Hi,

thank you for this tutorial.

Make it sense to add a alternative caching system  for a perfect server ? 

To install e.g. eAccelerator have I only add "apt-get php-eaccelerator" in step 11 ?

Have someone testet a alternative cache ?

Thank you  a lot   

From: Enzo24 at: 2010-08-28 20:50:03

Nice tutorial.

There's just one important detail that was forgotten at step 13 - install MyDNS

Debian Lenny's base installation is delivered with bind9 pre-installed & active.

Before installing mydns, do this :

apt-get purge bind9
update-rc.d bind9 remove

 If you don't do it, then you'll wind up having mydns & bind both running & dns will not work because bind is already running on port 53...I spent a day on this one...( with thanks to "The Worm" and his tuto (in french))

http://forum.cabane-libre.org/topic-821-1.html

Thanks again for a nice tutorial, very well written & VERY useful too.

From: at: 2010-10-17 15:31:05

I realized that 5 saslauthd processes were running, each consuming about 10% of the available memory. All together 1,5Gb mem.

You can tune this down to about 0.5Gb and 1 thread!

edit /etc/default/saslauthd

Change this line:
OPTIONS=”-m /var/spool/postfix/var/run/saslauthd -r”

to

OPTIONS=”-n0 -m /var/spool/postfix/var/run/saslauthd -r”

 

From: at: 2010-10-19 17:21:11

Hello,

I really need jailkit to restrict folder access to shell users, but I have Debian Leny + ISPConfig 3.0.3 and Jailkit seems not installed (no /etc/jailkit/ folder).

Do you think if I install jailkit then make an update of ISPConfig then jailkit will work ?

Thank you,

Fred 

From: Anonymous at: 2009-04-26 16:55:41

If you are doing this setup on a VPS system (OpenVZ container), after the installation you should do the following steps:

1) Shutdown the vps

2) On the openvz server run the following script

VPSID=110
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
do
vzctl set $VPSID --capability ${CAP}:on --save
done

3) start the vps, and that's it! Your pure-ftp will now work without problems.

From: Alex at: 2010-04-15 01:13:27

What if this is happening in a xen machine? can you help? I´m getting this message

 

server pure-ftpd: (?@xxxxxx.xxx.xx) [WARNING] Authentication failed for user

From: Anonymous at: 2009-04-24 14:48:58

I don't see the user creation instructions on glancing through here.  Check out the Perfect Server tutorial for Etch.  I think it shows how to create email users.

From: Jas-n at: 2009-04-18 01:04:31

Thank's a lot, fixed my line 135 error.

From: Anonymous at: 2009-04-19 07:47:17

Greetings .

One thing, which login info should readers use to login to SquirrelMail??? There was no prompt for user nor pass so i ASS-ume that it was root and root pass (that did not work)  so I tried the user I created (admin....) and pass, but still nothing.

Any ideas???

From: Anonymous at: 2009-04-16 09:36:26

thank you for your work. SUPER SUPER SUPER.........good luck

From: Anonymous at: 2009-04-14 20:08:07

Worked for me also, just installed Debian today with this tut (really nice work Falko i can't thank ya enough, that would prly be considered as spam ;) I got 3 errors (didn't save the errormsg) but changing 5.0 to 5.0.1 did the trick.

 

 

From: DanielS at: 2009-04-13 21:12:33

I was getting an error upon trying this recently and here's how to fix it. The error I was receving was:

"Notice: Undefined variable: distver in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135"

To fix this,

     nano /tmp/ispconfig3_install/install/lib/install.lib.php

search for the distver

     ctrl+w distver

edit where it says 5.0 to make it say 5.0.1

     [...]
     if(trim(file_get_contents('/etc/debian_version')) == '5.0.1' |...
     [...]

and then try the install again

     php -q install.php

 

Worked a treat for me! Thanks a million howtoforge! You have saved me ALOT of random searching once again and provide a source I can trust!

From: Anonymouscarbony at: 2009-06-30 21:17:11

ISPConfig 3.0.1.3 is available for download. This release is a bugfix release for ISPConfig 3. 

http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.1.3.tar.gz?use_mirror=

 

OK

;)

From: Anonymous at: 2010-04-06 20:51:10

Thank you, this fixed my issue too.

From: Anonymous surfing at: 2010-04-26 09:52:03

Thanks,

From: Newby at: 2009-08-07 02:03:55

Thanks for the fix to the line 135 problem.  I changed it to 5.0.2 and bingo!  It worked.

From: Mike at: 2009-09-27 01:14:18

You're a lifesaver brother!

From: Anonymous at: 2009-04-08 09:32:05

Install: perfect, 100% OK.

Thank you very much.

From: Paul at: 2009-03-29 14:43:41

Hi Falko:

Thank you for your work.

 I had a problem with mydns not compiling as it apparently wants source files for either mysql or postgresql.  This is found on the ./configure.

Also a little scared to use this as you've not enabled the cert and started the admin process as https.

 Thanks again for your work, and best wishes.

--Paul

From: at: 2009-03-24 08:23:01

I have problems with ftp as well. 530 incorrect login.

From: at: 2009-09-19 15:07:58

I had the 530 error with pure-ftp login until I did a restart:

shutdown -r now

Then it worked.

Thanks Falko.

From: Anonymous at: 2009-03-23 21:27:53

A stupid mistake I found that out but comment wasn't posted yet to reply and withdraw. Thank you for a great setup.

From: Anonymous at: 2009-03-25 00:55:55

now that ispconfig 3 got stable , i guess it isn't necessary to download it from svn right?

 we can wget , tar -xfv  , and run ./setup like the older ones.. correct?

 

 

 

From: kernalpanik at: 2010-07-26 17:00:42

hi

I got this error : 

Parse error: syntax error, unexpected T_ELSEIF in /tmp/ispconfig3_install/install/lib/install.lib.php on line 83

and nothing in my http://domain.com:8080

 

thx in avance

From: sigterm at: 2009-03-25 08:00:46

Excellent write up! good job

From: Damian at: 2009-03-25 16:01:10

Very important to know...

To make PureFTPD show hidden files you have to create a new file "DisplayDotFiles" in "/etc/pure-ftpd/conf/" with the value "yes". Falko or s.o. else already mentioned it in the english ispc forum, but i think this setting belongs to a "PERFECT" server :)

echo "yes" > /etc/pure-ftpd/conf/DisplayDotFiles

From: Matt at: 2009-03-21 12:13:58

Worked almost perfectly. Did everything word for word except at the end where you want to log into ispconfig. You show as either your domain /8080 or ip /8080 neither worked but i tried using /ispconfig and it came right up. Thank you very much for this tutorial!!!!!!!!

From: admin at: 2009-03-21 20:37:45

It's :8080, not /8080.

From: CyberShadow at: 2009-06-01 18:46:20

Nice tutorial and everything is working but the mail server.
Though I read the following error appeared several times, none of the mentioned solutions worked out for me.
For my testing I used the provided VM and modified it aggording to my needs.

I changed the /etc/hosts and also the hostname but it is still showing server1.example.com
hostname and hostname -f are giving the new name...

But more urgent is:

I always get the error: ERROR: ERROR: Connection dropped by IMAP server.

part of my /var/log/mail.log:

 

Jun  1 20:34:31 mlabs postfix/qmgr[2790]: 8C28217C24E: from=<www-data@server1.example.com>, size=995, nrcpt=1 (queue active)
Jun  1 20:34:31 mlabs postfix/smtpd[3406]: connect from p4FD72694.dip0.t-ipconnect.de[79.215.38.148]
Jun  1 20:34:31 mlabs postfix/smtp[3405]: warning: host mlabs.mine.nu[79.215.38.148]:25 greeted me with my own hostname server1.example.com
Jun  1 20:34:31 mlabs postfix/smtp[3405]: warning: host mlabs.mine.nu[79.215.38.148]:25 replied to HELO/EHLO with my own hostname server1.example.com
Jun  1 20:34:31 mlabs postfix/smtp[3405]: 8C28217C24E: to=<test@mlabs.mine.nu>, relay=mlabs.mine.nu[79.215.38.148]:25, delay=4669, delays=4669/0.05/0.2/0, dsn=5.4.6, status=bounced (mail for mlabs.mine.nu loops back to myself)
Jun  1 20:34:31 mlabs postfix/smtpd[3406]: disconnect from p4FD72694.dip0.t-ipconnect.de[79.215.38.148]
Jun  1 20:34:31 mlabs postfix/cleanup[3410]: 6CBBE17C180: message-id=<20090601183431.6CBBE17C180@server1.example.com>
Jun  1 20:34:31 mlabs postfix/qmgr[2790]: 6CBBE17C180: from=, size=2895, nrcpt=1 (queue active)
Jun  1 20:34:31 mlabs postfix/bounce[3408]: 8C28217C24E: sender non-delivery notification: 6CBBE17C180
Jun  1 20:34:31 mlabs postfix/qmgr[2790]: 8C28217C24E: removed
Jun  1 20:34:31 mlabs postfix/local[3411]: 6CBBE17C180: to=<www-data@server1.example.com>, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun  1 20:34:31 mlabs postfix/qmgr[2790]: 6CBBE17C180: removed

I'd appreciate any advise.


From: Marius at: 2009-05-30 11:21:21

Hi,

i get this error when i tri to upgrade ispconfig to last version

 server1:/tmp/ispconfig3_install/install# php -q install.php

 

ERROR: Stopped: Database already contains some tables.
 

From: Up2NoGood at: 2009-03-04 00:16:25

Falko you truly are a super star

Worked first time.

I was previously running ubuntu 8.04 LTS with the final version of ISPConfig 2 which was working great. I really wanted to upgrade to ISPConfig 3 and also the security of the server in general but i could not find a subatable HOWTO and following the HOWTO on the ISPConfig website just left me more confused that ever.

 I had always fancied using Debian as it was the base for Ubuntu it seemed logical for me to have a go.

Well I can report that everything for now is working perfectly.

Thank you once again Falko

From: Web-Worlds at: 2009-03-15 14:58:03

Once again, it was a flawless installation, in under 2 hours time, ad working like a charm, now running to discover the new ISPConfig... Thanks Falko !

 

WW

From: andresfcasas at: 2009-03-13 00:03:13

Hi, thanks for the guide has been very useful to me but I have a problem when trying to connect with https, I removed the error ssl_error_rx_record_too_long as I can fix this? Thanks

From: dbg at: 2010-01-16 01:13:21

I am seeing this ssl_error_rx_record_too_long error after trying to enable SSL on apache. Digging the web always leads me to previous version of apache conf, which used "site-available/default" instead of "default-ssl".

After reading /usr/share/doc/apache2.2-common/README.Debian.gz I realized I need to run:

  a2ensite default-ssl

This command allows default-ssl.conf to be included by apache.  Hope this helps.

From: Anonymous at: 2010-08-07 11:45:41

Thanks, it works for me.

From: Anonymous at: 2009-03-12 00:59:38

I follow instructions, but ISPConfig 3 is not charming, the FTP is creating a lot of problems, now I fix it, but instead to direct to the web root, goes to the main root.

From: Protalia at: 2009-03-02 18:34:04

Worked perfectly!

Thank you ver much!

From: Gaizka at: 2009-06-11 08:59:29

postfix:~# /etc/init.d/apache2 restart
Restarting web server: apache2 failed!

postfix:~# vi /var/log/apache2/error.log

unable to start piped log program ' /usr/sbin/vlogger -s access.log -t "%Y%m%d-access.log" /var/log/ispconfig/httpd': No such file or directory
Unable to open logs
 

From: carbony at: 2009-06-24 18:38:52

 

Solution:?!

ClamAV update process started at Wed Jun 24 05:34:37 2009
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.95.1 Recommended version: 0.95.2
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cld is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
daily.cld is up to date (version: 9501, sigs: 30936, f-level: 43, builder: guitar)
--------------------------------------
Received signal: wake up
ClamAV update process started at Wed Jun 24 06:34:36 2009
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.95.1 Recommended version: 0.95.2
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cld is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
Trying host db.local.clamav.net (138.123.96.134)...
Downloading daily-9502.cdiff [100%]
daily.cld updated (version: 9502, sigs: 30937, f-level: 43, builder: acab)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 42, recommended = 43
DON'T PANIC! Read http://www.clamav.net/support/faq
Database updated (575972 signatures) from db.local.clamav.net (IP: 138.123.96.134)
Clamd successfully notified about the update.

From: Dennis P. Nikolaenko at: 2009-07-05 03:18:48

You need to install Bastille for firewall functionality if IspConfig 3

# apt-get install bastille -y

From: Anonymous at: 2009-07-07 08:30:19

Excellent!

I enabled squirrelmail for each virtual domain by adding the following line to the Sites:Options:Apache Directives...

Redirect /webmail http://privateserver.com/webmail

This is kinda ugly in that the user is redirected away from their domain.  If instead I use...

Alias /webmail /var/www/webmail

...I get a page saying something like "file not found" in the web browser. Is there a clean/preferred way to enable squirrelmail within each virtual domain?

Thanks

From: Anonymous at: 2009-12-20 13:33:14

Create a subdomain mail.domain.com and then en Sites:Options:Apache Directives...

 Redirect /webmail http://mail.domain.com

From: Lukman Hakim at: 2009-07-13 05:55:01

Dear falko,

I have follow your tutorial step by step, and it's all work perfect without error:) 

Very great tutorial!! Please keep posting, and i will waiting for your next tut...

From: Anonymous at: 2010-01-29 23:40:16

It is as easy as to follow the steps one after another.

The result is a valuable and usefull system, that without the recipe could take someone  to setup  much more time and headache.

Perhaps it lacks a 2nd part about security and performance tuning,

Many thanks to the developers for making our lives easier and adding hours to our days.

From: alogoc at: 2009-07-25 12:42:43

Greetings!Very nice tutorial,i followed it step by step.

The problem is that in my case i can't acess my webmail server/ipsconfig3 from nowhere except the host.I done some google searching,and forum searching but nothing did the trick.

I have no great experience with servers,this is my debut and i do it mosly for practice.

If anyone have any ideas or can help would be much appreciated!

Thanks in advance

 

From: Anonymous at: 2009-07-19 20:32:02

Everything worked okay.  Only two things didn't work for me.

 !) can not access server via server1.example.com (that's just an example), have to use the IP.

2)  the default password and username for ISPConfig 3, except after changing the password neither the default or what I changed it to works.

From: Newby at: 2009-08-07 02:10:40

Thanks for the help... your tutorial was perfect!  I had been using an O'Reilly book with little success, but your tutorial was rock solid.

From: SamTzu at: 2009-08-11 17:17:04

If you are experiencing FTP problems you probably have an OpenVZ container based hosting solution. If you can't get your host to run the vzctl set $VPSID --capability on the server then You wont be able to get your SQL-FTP users running.

 

From: Jonathan at: 2009-10-14 01:42:46

 Great tutorial. THANKS.

 Im at the login page and i dont remember setting a user or password for squirrel admin.

The tutorial doesn't indicate if you have to create a user or password?

any help would be great. Thanks in advanced.

From: Jonathan at: 2009-10-14 06:29:07

it shows this error.

Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/usr/share/php5) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0

 /web[website_id]

 

maybe its this: (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/usr/share/php5)

From: at: 2009-11-23 18:50:30

You should mention that you need to do a:

 dpkg-reconfigure locales

 

and enable de_DE.iso-8839-1 for germand - just an example...

 

otherwise you will not be able to use squirrelmail in any other language than english.

 

Regards,

Andreas

From: at: 2009-11-27 10:12:17

I'm not sure I understand what you are bitching about.

If it's just installing linux then you should not be using the ISPConfig  instructions. If you're new to linux try something user friendly like Ubuntu, Centos is not for beginners.

If you're complaining about ISPConfig get your around this 'It's not a plug'n play toy'. If you don't understand it go buy something from MS. Probably cost you thousands of dollars and then hundreds (perhaps thousands) more for support.

That's your choice learn or pay!

 

From: Robert at: 2009-12-01 17:35:57

I hope that you are not a Linux developer, because you do not read and comprehend.

Like I said "I need to test some scripts in a "production" environment similar to the VPS they are going to be installed to.".

Which means that ISPConfig works on CentOS on the production server. So why on earth should I go test with another distro ? What kind of test is that ?

I merely thought to pickup some additional information or other approaches from first reading, then maybe trying this similar tut for Debian.

And pardon me for quoting from the ISPConfig readme, that support for CentOS is experimental. I can't see where I'm complaining about ISPConfig. Didn't mean to step on your virtual toes.

From: Toperzar at: 2009-11-30 14:20:07

hello, i have the same problem when i do the symbolic link to webmail

ln -s /usr/share/squirrelmail webmail

in debian etch it is greatfull, but not here, i just can go to web page of squirrelmail with my ip and not with the domain. if i choose the domain the page it is completly in blank.

any ideas???

thanks

 

From: Robert at: 2009-12-01 17:43:00

@Anonymous:

You missed the fact that the OS is dead after installation. We are talking about one distro, how "static" is that ? And it doesn't even install. There are no differences, there is nothing to interact with.

"PS: see you in two years." Nothing will have changed. Tempt me.

From: Esteban at: 2010-02-13 17:46:19

no need to tempt you, why should we care? may be we can help, but really don't care about what you choose , is your choice, not mine.

 also if the case is to test some scripts on a vm, why didn't you downloaded an image? there are thousands and you can spend your time on more important subjects like to test the scripts ;)

 Cheers

 Esteban

From: ulf kypke at: 2009-12-06 14:08:07

hi folks,

thanks for this perfect tutorial.

it was working very well on a vserver with debian 5

the only thing i had to change was debian version from 5.0 to 5.0.3 in

/tmp/ispconfig3_install/install/lib/install.lib.php 

to run the  php -q install.php script

 

thanks a lot

 

ulf

 

From: Bob at: 2009-12-21 22:44:42

Thanx a million, works like a charm!!!

From: Bozza at: 2009-11-02 11:23:34

Installed ISPConfig 3.0.1.6 prefectly with the use of this guide..

Awesome work :D

From: Noall at: 2009-10-13 18:54:40

I had the same problem.  The resolution was to add a domain and a user in ISPConfig.  Use that user to login.  So add the domain, "example1.com" and user named "test" select a  password, then you can login is as test@exapmle.com with the password you just created.


From: Anonymous at: 2009-09-25 11:26:19

"There are so many clever, bright and inventive developers in the Open Source world. What's so difficult to come up with a decent installer ?"

We're not talking about a windows environment here where you click Next->Next->(scroll down EULA)->Next->untick Readme->Finish and it's done. It's much easier to create a *cough* installer when your OS is static but in the world of linux and freedom there is also differences between OS distros and sometimes even packages between versions of distros, so nothing is super full proof.

And we are talking about multiple pieces of software that can be pieced together in many ways then 1. When was the last time you got the same piece of windows software to interact with just about any other windows software to get a job well done. With linux, we can tie clam antivirus into postfix to scan mail, squid to scan browsing, filescannign within samba and more, and just one to mention.

The beautiful part is that there is a world community out there willing to help out those who are keen learners and eager to tinkle with Linux and understand why it didn't work or where the documentation may have gone wrong.

So I my suggestion is that when your frustrated that you windows has problems again and the professional MCSE is some dude that got his paper and yet still doesn't know how things work in windows or worse, can't help you... we'll be ready and happy to give you a hand.

 

PS: see you in two years.

From: Anonymous at: 2009-08-28 16:10:39

Maybe I missed it but how do I configure ISPconfig without installing the desktop? You can only configure it from the host computer right? is there a way to bring up the browser from the command line? Sorry if it seems novice but this is the first debian server I have setup without installing the desktop. In the etch setup instructions I installed the desktop and then once the base system was installed it was easier because I could bring up the web browser with the instructions and just copy and paste apt-get install instructions instead of typing them.

From: Anonymous at: 2009-09-01 06:41:37

ssh from an x window desktop (notebook/other pc or even windows machine with putty) then with firefox so you can do just that?

From: Scott at: 2010-02-07 09:34:15

You can configure the server from any computer that can reach it over the network.  Just open a browser on another computer and go to http://xx.xx.xx.xx:8080, using the IP address of the ISPConfig server in place of the xx's.

From: Robert at: 2009-09-14 19:13:22

Guys and Gals,

I was here about 2 years ago. Thought I'd give it another go with Linux. I couldn't get it installed.

Yesterday I tried installing CentOS 5.3 and ISPconfig with the perfect server instructions on VMware WS 6.5.3.

"Determining IP information for ETH0   [FAILED]"

After a while a black screen with a blinking underscore cursor top left of the screen.

I deleted the VM and installed a couple of times more. Same results.

I realise that I can ignore the ETH0 timeout because ETH0 is by default for a cabled network. (although I do not have a wireless setup, but it possibly has to do with VMware)

But that black screen with a blinking cursor, why, why why so Spartan ?

Then I read in the ISPconfig readme that CentOS support was experimental, and Debian or Ubuntu were adviced for a production server. Sjeeez! I need to test some scripts in a "production" environment similar to the VPS they are going to be installed to.

So I come over here, and I see all the problems. I'm not even attempting an installation.

There are so many clever, bright and inventive developers in the Open Source world. What's so difficult to come up with a decent installer ?

All I can say is, see you again in 2 years. Nothing has changed. How the f.ck are we supposed to leave Windows behind us, and move to a Nix OS with this cr.p still going on ?

From: Scott at: 2010-02-07 09:27:18

Hi Robert...

I suggest you stick with Microsoft products.

Cheers,

Scott

 

 

 

From: at: 2010-05-09 19:16:52

Quite funny that you complain in a Tutorial for debian Linux that centos does not work for you. So if you own a nokia phone, do you complain in a apple store that it does not work ;) If you had used debian, which this tutorial describes, it would have worked. As pointed out here already, Centos is complicated and not for beginners. So if you are a beginner, why dont you use easy to install Linux distribution like Debian or Ubuntu?

 > So I come over here, and I see all the problems. I'm not even attempting an installation.

You will find only reports of problems as pople normally dont report successfull installs here. If I would follow your arguments, then cars in general seem not work. Everytime I go to a car repair shop, there are lots of non working cars. So if you go to a Linux help forum, why do you think poeple are reporting their problems here.

From: at: 2010-06-17 11:01:15

Thx, Robert.

You saved my day :) (I'm still smiling.)
Even though you kind of mixed your metaphors and generally expressed your self badly you got a point about most Linux's needing some heavy reworking. The real problem is not however in Linux setup. (Just install new Exchange/IIS/MySQL on the same server and see how impossible that is.) The problem is in the language we use to describe what we want done. What all Linux's really, really, really need is a drastic simplification of the language it's systems rely on. We need to get rid of all the old backage like /usr/bin, /bin etc. That's simply too confusing. That is the major reason why we still need Falco & Co. so badly :) To tone down (clarify) the language for the rest of us.

 PS. If you don't understand what you are doing with any OS you need to call a professional. It does not matter how easy it's to install Windows it wont work for long if you mis-configure it. (Just like your original CentOS setup is. It's still a mystery to me why organizations choose RedHat/CentOS/Fedora. If you want commercial support choose Canonical or Novel)

From: Wayland at: 2010-12-01 20:59:19

Don't blame this install procedure for your failure with CentOS.

Debian is by far the easiest server to get going (easier than Windows) and to make it super easy this procedure is provided. I only have half a clue what I am doing because I don't have the time to get expert at this. Luckly I don't need to be an expert, I just follow this procedure and I end up with a fully working server.

The open source world has surpassed Windows Server for ease of use. It is so simple to apt-get install new packages, nothing could be easier. Plus being Linux there is no limitation on number of clients you can connect. I am not saying these never get hacked or never go wrong but they are virus free and easy to fix. If you can't fix it just build a new one and transfer the users files.

It's all pretty practical and easy as changing the brake pads or changing the oil on a car. Not something for non-techies but definitely definately something a competant computer person can do themselves.

So give it a go with Debian and stop whining like a little child ;-)

 

From: Anonymous at: 2009-08-30 15:41:48

Okay you can access ispconfig remotely as well as squirrelmail. My new issue is I tried to login into SquirrelMail with the username and passwords that I login to the server with and none of them work. I even created a new user and tried to login. I have searched the web trying to find ways to troubleshoot but to no avail. Any ideas???

From: Marko Jozic at: 2010-01-15 07:53:00

Hi

First of all I'm sorry for my bad english.


This Server isn't secure, I haven't seen any elaboration about DoS like synflooding, portscanning, ping of death ...

I wouldn't call this Server perfect because it's easy to Access skiddies, spam-mail-bots and so on

 check http.www://netfilter.org for some more detailed explenations about security-problems

From: at: 2010-07-19 21:27:46

Hi First of all I'm sorry for my bad english. This Server isn't secure, I haven't seen any elaboration about DoS like synflooding, portscanning, ping of death ... I wouldn't call this Server perfect because it's easy to Access skiddies, spam-mail-bots and so on check http.www://netfilter.org for some more detailed explenations about security-problems

From: Tamas at: 2010-01-20 13:36:35

Great work, nearly everything works perfect.


There's only one problem for me. If I want to use phpmyadmin I get a blank screen. I'm not automatically logged in neither I have a login screen. This happens as user (where I only see my DBs) and also as reseller or  admin.


Is there someone with the same problem?


If I will find out why, I will post the solution.

From: Wladimir at: 2010-02-03 09:08:11

I'm currently running debian 5.0 (lenny) with isp config...

all is running just fine, install within 30 mins...perfect..

I'm currently trying to find out where the .vhost are being created.

it should be in /root/ispconfig/scripts/lin/lib.config.php

but i can's seem to trace the file..

Any suggestions?

From: at: 2010-01-27 01:24:26

Hi to all

i'm installed ispconfig 3 trunk to debian lenny 5.0.3 i see your guide and work but only to database, when i create a new domain site, domain email ftp user shell user and database.

 

to /var/www/clients there are not other such as in /var/vmail and in mysql

 How i can resolve it

From: Anonymous at: 2010-03-10 00:47:32

Any suggestions for people who don't want:

  • postfix
  • courier
  • saslauthd
  • rkhunter
  • binutils
  • Amavisd-new
  • SpamAssassin
  • Clamav 
  • FCGI
  • suExec
  • Pear
  • PureFTPd
  • Quota
  • MyDNS
  • Vlogger
  • Webalizer
  • Jailkit
  • fail2ban
  • SquirrelMail

on their server?  Just a plain old AMP server that someone might want to manage with a web interface?

From: Anonymous at: 2010-07-23 11:43:01

rofl... erm maybe you're at the wrong page then kid.

 If you want 'amp'? I assume you still want on linux, so lamp? Then on your distro, you get the Apache package, mysql package and php and install them accordingly.. then stop moaning till you understand what the difference between these two server layouts mean.

 

 

From: Charlie at: 2010-08-10 12:07:32

This sets up as is on a 20gb drive in less than 2 gb of drive space.  Add a GUI and it's 3.5gb. 

 

 

From: Anonymous at: 2010-05-12 11:39:39

Hy guys.

I'm new in lynux, but i have to resolve something. Maybe you could help me.

I get a mailserver installed and configured step by step using this page. I tried to send an email, but i get the following error:

An unknown error has occurred. Account: 'ns2.itteam.ro', Server: 'ns2.itteam.ro', Protocol: SMTP, Server Response: '421 Cannot connect to SMTP server 86.125.35.24 (86.125.35.24:25), connect error 10060', Port: 25, Secure(SSL): No, Server Error: 421, Error Number: 0x800CCC67

But i can download the e-mails what i get...

What should i do?

Thanks a lot

From: Kristoffer Clasen at: 2010-05-10 17:25:23

THANKS....

 IT HELPED ALOT

From: dotslasher at: 2010-05-15 18:08:06

I'm getting the following error when installing Ispconfig 3

chown: changing ownership of `/var/www/apps': Disk quota exceeded

chown: changing ownership of `/usr/local/bin/run-getmail.sh': Disk quota exceeded

 But if I do df -h I have enough space.

 Filesystem            Size  Used Avail Use% Mounted on

/dev/hdv1              76G   22G   54G  29% /

 and If I want to visit the webpage I get you do not have permission access to / on this server

From: Anonymous at: 2010-06-03 10:03:06

Sans parler anglais, le suivi de ce tutorial m'a permit d'installer ispconfig sur debian 5.04 sans aucune difficulté. Et cela fonctionne à merveille.

 Merci pour ce travail magnifique et sans accroc.

From: Anonymous at: 2011-01-09 14:41:59

Hi all,

 

I Got the same error :  " permission access to / on this server " after all installation done

Any idea can help me. 


From: The Codfather at: 2010-07-16 16:53:14

Hi.

I installed this Debian server and isp3config, all working fine, thanks.

But, how do I get to see my website locally from another machine ? It works fine over the net.

From: Wahid at: 2010-08-08 11:26:00

Hello Community,

 I was very glad to see my system working exactly as described on this perferct how-to, so firstly my best thanks for the author.

However after finishing with the installation and configuration, I'm still having some open points to fix:

- How can I create a subdomaine like "webmail.mydomain.tld" under wich I'll be able to reach my Squirrelmail-interface?

=> By the way: I create a subdomain already under ispconfig-cp with the following settings:

Redirect type:  L

Redirect Path: /../../webmail/  (this is the problematic setting for me to fix!)

 the with this settings, then when I call "webmail.mydomain.tld" , apache returns an 403-Forbidden Error. I know that the default-user, which I used to create the website and subdomains on ispconfig has no access-rights on the symlink /var/www/webmail/, so and I'm wondering now how to include this on its site-dir /var/www/mydomain.tld/web in order to get access to squirrelmail-dir. For any help I will be very thankfull.

 Regards

 

From: Dr. Richmen at: 2010-09-04 16:29:13

Perfect HowTo

 

Thanks

From: Anonymous at: 2010-09-11 10:11:03

help  me

 

splet:/tmp/ispconfig3_install/install# php -q install.php


--------------------------------------------------------------------------------
 _____ ___________   _____              __ _
|_   _/  ___| ___ \ /  __ \            / _(_)
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| |
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, |
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------


>> Initial configuration


Parse error: syntax error, unexpected T_STRING in /tmp/ispconfig3_install/install/lib/install.lib.php on line 69

From: JayDax at: 2010-09-19 15:44:51

Yes, very good HowTo. ISPConfig is working now. So i will go and have a look at the system.

Thanks a lot for your work !!!

From: Shane at: 2010-12-05 19:31:03

Really Great Tutorial!!! This went in a lot smoother for debian than centos 5.5.

The only problem I had was a blank screen when i went to 'addy' http(s)://xxx.xxx.xxx.xxx:8080 I found out that apache2 wasn't up and running.

Solution I used: (after installing ispconfig the first time)

/etc/init.d/retwork restart

cd /tmp/ispconfig. (insert build here or just * if you have only one folder with Ispconfig in it.)

php update.php (then answer the questions you did when first install)

this should restart apache2 server.

Hope this helps any one else that is suffering from "operator 'head-space'" like I was :)

Shane :)

From: Anonymous at: 2012-06-23 05:00:48

Hi

I know this post is really old and probably because of that what im trying isnt working but here is my question =>

If i acesss :

192.168.0.100 --> it works and go to the page locate in www

https://192.168.0.100:8080 --> it works and go to the page of isp

https://192.168.0.100:8080/webmail --> it works and go to the page of squirrelMail

The problem is that it only works with the http(s) and if i put

http://server1.example.com:8080/ or http://server1.example.com:8080/webmail/

 it dont works....

Anybody knows how to make it works without the (s) and the 2 links above???