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

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)

Run

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: http://www.ispconfig.org/manual_installation.htm

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.

Share this page:

20 Comment(s)

Add comment

Comments

From: Anonymous at: 2006-06-07 07:23:42

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

From: Anonymous at: 2006-06-05 17:07:52

Great work Falko!!! =)

From: Anonymous at: 2006-06-05 21:53:31

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?

From: admin at: 2006-06-05 22:44:06
From: Anonymous at: 2006-06-05 22:54:55

I really wish you had posted this a few days ago... But I probably learned more from doing the exact same thing myself...

From: Anonymous at: 2006-06-06 00:37:38

Many thanks :) Your guides are very helpful for us beginners...

From: Anonymous at: 2006-06-07 15:50:34

I'm pretty sure that I can't find any differences between this and the Breezy setup instructions. Good :-)

From: Anonymous at: 2006-06-06 07:53:26

/etc/webalizer.conf :

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

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

From: Anonymous at: 2006-06-16 12:56: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))

From: admin at: 2006-06-17 11:25:17

iptables is installed. Run

iptables -L

and you'll see.

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

From: at: 2007-03-12 12:16:17

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.

From: Anonymous at: 2006-06-13 08:42:10

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.

From: Anonymous at: 2006-08-21 21:55:51

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.

From: Anonymous at: 2006-07-11 16:04:13

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!

Thanks! 

From: Anonymous at: 2006-07-24 01:51:29

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!

From: admin at: 2006-07-24 07:48:28

The Breezy Badger tutorial is also copy & paste. If it didn't work for you, then you must have done something wrong...

From: Anonymous at: 2006-07-25 04:10:04

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.

From: steven_twente at: 2006-09-27 12:07:15

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!

From: at: 2007-03-09 22:27:51

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. :)
>>http://www.howtoforge.com/forums/showthread.php?t=7716

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! 

From: moh at: 2009-09-06 14:28:36

good good