The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) - Page 7

Want to support HowtoForge? Become a subscriber!
Submitted by falko (Contact Author) (Forums) on Sun, 2006-06-04 09:36. ::

15 Webalizer

To install webalizer, just run

apt-get install webalizer

16 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.

17 Install Some Perl Modules Needed By SpamAssassin (Comes With ISPConfig)


apt-get install libhtml-parser-perl libdb-file-lock-perl libnet-dns-perl

18 ISPConfig

The configuration of the server is now finished, and if you wish you can now install ISPConfig on it. Please check out the ISPConfig installation:

18.1 A Note On SuExec

If you want to run CGI scripts under suExec, you should specify /var/www as the home directory for websites created by ISPConfig as Ubuntu's suExec is compiled with /var/www as Doc_Root. Run /usr/lib/apache2/suexec2 -V, and the output should look like this:

/usr/lib/apache2/suexec2 -V

To select /var/www as the home directory for websites during the installation of ISPConfig do the following: When you are asked for the installation mode, select the expert mode.

Later during the installation you are asked if the default directory /home/www should be the directory where ISPConfig will create websites in. Answer n and enter /var/www as the home directory for websites.

19 Links

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by moh (not registered) on Sun, 2009-09-06 15:28.

good good

Submitted by totte_karlsson (registered user) on Fri, 2007-03-09 23:27.

Thanks for a great tutorial,

however, it took me quite some time to find out how to install ISP config. I got this error

"ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

The fix is posted in another thread. However, I think it can be posted here as well

>>jnsc solved it. You must run
>>rm -f /bin/sh
>>ln -s /bin/bash /bin/sh
>>and afterwards you can install ISPConfig 2.2.7 on Edgy. :)

I would probably save /bin/sh before deleting it, i.e.

cp /bin/sh /bin/sh.copy

if it is needed later on ..

thanks though! 

Submitted by steven_twente (registered user) on Wed, 2006-09-27 13:07.
Just wanted to say thank you for this great tutorial! I've literally been able to copy all the commands from this howto to my ubuntu server (except the parts where I had to fill in details about my server/domain/etc ofcourse...) and I got no errors what so ever. After this howto ISPconfig runs perfectly as well. Great job!
Submitted by Anonymous (not registered) on Tue, 2006-07-25 05:10.
Excellent work indeed. If I could have one request, it would be to provide a little bit of info on why each thing is being installed, and how to start using it.
Submitted by Anonymous (not registered) on Mon, 2006-07-24 02:51.
What a fine job in this tutorial! I found it very useful - great comments and explanations of 'why' things get changed. I especially like the fact of being able to copy/paste as opposed to your tutorial for 'breezy badger' :). Everything seemed to install as advertised. Great job. Thanks!
Submitted by admin (registered user) on Mon, 2006-07-24 08:48.
The Breezy Badger tutorial is also copy & paste. If it didn't work for you, then you must have done something wrong...
Submitted by Anonymous (not registered) on Tue, 2006-07-11 17:04.

This tutorial was very helpful.  A perfect example of good documentation.  I only had one issue when I walked through the install.  There was a permissions error when creating the certificates.  All I had to do was change the permissions on the certificate directory while I was building them.  I then changed the permissions back after I had finished.  Other than that small issue, it was a superb tutorial!


Submitted by Anonymous (not registered) on Fri, 2006-06-16 13:56.
I miss one thing in this manual: setup your iptables ! No system should be without one (and I wonder why distributions are still not installing one per default (even if it is just either all open or all closed as the only two options))
Submitted by admin (registered user) on Sat, 2006-06-17 12:25.

iptables is installed. Run

iptables -L

and you'll see.

You can configure the iptables firewall with the firewall administration that comes with ISPConfig.

Submitted by jonwatson (registered user) on Mon, 2007-03-12 13:16.
I also had to install IPTables manually, but I'm installing ISPConfig into an OpenVZ Ubuntu VE. The VE template might be a little different than a normal Ubuntu intsall.
Submitted by Anonymous (not registered) on Tue, 2006-06-13 09:42.
Nice job falko!
Some comments:
You do not have to enable the root account. For security reasons it is disabled in Ubuntu and all management should be done via sudo. Just type in "sudo -s" and type in again you password to get a root shell.
For upgrading to the recent version of all packages I think it is better to user "apt-get update" and then "apt-get dist-upgrade". Otherwise some depending packages are not updated in the correct order.
Submitted by Anonymous (not registered) on Mon, 2006-08-21 22:55.

Really a good job!

For sudo and/or sudo -s I have problems to understand the security reasons. It is, with that default  setting an attacker needs only to know one password to do very nasty things with root privileges from network. Instead with a root account,  disabling sudo or limiting it, setting Rootlogin  to No in the sshd config file and maybe changing the root account (b.e. calling it newby) the attacker need to know at least 2 password and 2 user names to gain root privileges, but maybe I'm missing something.

Submitted by Anonymous (not registered) on Wed, 2006-06-07 16:50.
I'm pretty sure that I can't find any differences between this and the Breezy setup instructions. Good :-)
Submitted by Anonymous (not registered) on Wed, 2006-06-07 08:23.
Why don't you create a preconfigured VmWare virtual machine with this setup and ISPConfig installed and publish it on vmware website?...That would become the "Perfect Virtual Machine" :)...thanks
Submitted by Anonymous (not registered) on Tue, 2006-06-06 08:53.

/etc/webalizer.conf :

change : LogFile /var/log/apache/access.log.1

to : LogFile /var/log/apache2/access.log.1

Submitted by Anonymous (not registered) on Mon, 2006-06-05 23:54.
I really wish you had posted this a few days ago... But I probably learned more from doing the exact same thing myself...
Submitted by Anonymous (not registered) on Mon, 2006-06-05 18:07.
Great work Falko!!! =)
Submitted by Anonymous (not registered) on Mon, 2006-06-05 22:53.

I know ubuntu is Debian based, but I prefer to run Debian, since it probably has less unneeded stuff. How much different is your guide for Debian (afaik it should be very simular if not identical... or at least I hope so) Or am I missing something?

Submitted by admin (registered user) on Mon, 2006-06-05 23:44.
Submitted by Anonymous (not registered) on Tue, 2006-06-06 01:37.
Many thanks :) Your guides are very helpful for us beginners...