The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page 7

Submitted by falko (Contact Author) (Forums) on Thu, 2008-04-24 14:15. ::

19 Webalizer

To install webalizer, just run

apt-get install webalizer

 

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

 

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

Run

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

 

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

 

22.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/suexec -V

and the output should look like this:

root@server1:~# /usr/lib/apache2/suexec -V
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="www-data"
 -D AP_LOG_EXEC="/var/log/apache2/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=100
 -D AP_USERDIR_SUFFIX="public_html"
root@server1:~#

So if you want to use suExec with ISPconfig, don't change the default web root (which is /var/www) if you use expert mode during the ISPConfig installation (in standard mode you can't change the web root anyway so you'll be able to use suExec in any case).

 

23 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 severnet (registered user) on Fri, 2009-01-02 18:22.

apt-get install ffmpeg php5-ffmpeg

can't find ffmpeg using php

this is the test ffmpeg script http://www.socialengine.net/tutorials/video_test.zip

how fix it? =(

Submitted by newz2000 (registered user) on Thu, 2008-12-18 16:16.

If you have to reboot your server you probably want it to be back up very quickly, right? A main reason that dash is used instead of bash is because bash, being a full-featured shell, starts up much more slowly. By making the default Dash, which is a simple but posix-compatible shell, system boots up much quicker.

For those shell scripts that really need bash and can't be rewritten, the sh-bang at the beginning should be #!/usr/bin/bash instead of #!/bin/sh.

That way you can still leave the default in place.

Submitted by perspectoff (not registered) on Wed, 2008-11-19 02:25.

Your instructions appear needlessly complex for today's Ubuntu installers.

By merely clicking the LAMP server option when installing from the server installation LiveCD, you get Apache 2.2, MySQL 5, and pHp. You don't need to do all the extra steps you led us through. Similarly, Bind9 is the default DNS server installed with the DNS server option -- you don't need to install it separately. Also, Postfix is the default Mail server installed when ticking the Mailserver option. You could have saved a few steps...

Clearly these are the best and easiest packages for routine server use. In addition to the above, for a (collaborative) web page content management system run from the server, I use Drupal (available as a package drupal5 from the repositories). For the perfect Groupware server setup on Ubuntu Hardy, however, I like the (open source) Kolab server components. Since Kolab has a package for Debian/Ubuntu, it is easy to install from the repositories. In such a situation, no extra packages are installed at the initial installation (i.e. no LAMP, Mail server, DNS server, or SSH server). Kolab chooses its own most compatible components and installs them all automatically. Detailed instructions for a Kolab server on Ubuntu Hardy are at http://wiki.kolab.org/index.php/Ubuntu_8.04

Submitted by Romain (not registered) on Tue, 2008-11-04 19:53.
Thank you very much for this tutorial brilliantly done and clear! Thanks again!
Submitted by Hans (not registered) on Thu, 2008-10-23 22:28.

Hi

Thank you a lot for this good documentation how to set a website with the ubuntu-server.

I dont understand all what I have done ;-)) but it works and I'm sure this is a good start for me.

regards from Switzerland

Hans

eg. excuse my poor english

Submitted by Steve (not registered) on Sun, 2008-10-05 17:22.
I very much appreciate your detailed instruction manual.  Your instructions were clear and the code that needed to be input was clearly laid out.  I would give this tutorial a perfect score except I feel that you dropped the ball at the end.  During the tutorial you talk about using ispconfig but at the end you do not explain how to isntall it.  I looked at the install manual on ispconfig's site but it is far from clear., especially since this is my first time running a linux server and my first time running only in command line.  I would really appreciate a tutorial on how to install ispconfig.  I would suspect that it would be short but possibly include how to download it, either from another computer or through the command line, and how to call the install commands.  ispconfig says it should be a straight forward install after following your istructions but they seem to expect their readers to be at a higher level than what you tutorail was designed for.
Submitted by PsychiC (registered user) on Wed, 2008-08-27 12:41.
Following your guide (which is great btw !)
When I tried installing ISPConfig I needed the following additional packages :

make
flex
g++

to install use " apt-get install make flex g++ "

after this installation went fine.

People installing ISPConfig, please have a look at http://www.ispconfig.org/manual_installation.htm because additional action might be required.
Submitted by charles (registered user) on Thu, 2008-08-21 17:31.

This guide also works with Ubuntu Server 8.04 JeOS (to be specific: 8.04.1 as of now) - the Linux distribution aimed at virtual machines. The only thing missing is cron, so you need to

apt-get install cron

before installing ISPConfig. Everything else seems to be okay. :-)

Submitted by tohir (registered user) on Tue, 2008-07-29 11:09.

Before going to install ISP Config, run:

 apt-get install iptables

 This is needed else ISP Config installation comes to a halt

Submitted by killfrog (registered user) on Sun, 2008-05-25 11:28.

Hi Falko,

I wanted to share with you a bug I've found.

I've installed a couple of servers following this great howto, and on one of them after a few days running, I've seen that the CPU is on 99% all the time and the process that was causing it was "mysqld-safe"

I thought it was just a stuck process so I killed it and I have no problems since then, but after I installed teh second server, I checked and also here I had the same process taking up the whole CPU time, I'm talking about a fresh installation on a clean "virgin" server, here's the output of my "top" command on the server:

root@mtsftp:/etc/bind# top

top - 10:22:21 up 18:13,  1 user,  load average: 0.68, 0.26, 0.09
Tasks:  65 total,   1 running,  64 sleeping,   0 stopped,   0 zombie
Cpu(s): 14.1%us, 35.9%sy,  0.0%ni, 50.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2074392k total,   686080k used,  1388312k free,    48636k buffers
Swap:  6072528k total,        0k used,  6072528k free,   542200k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                              
16246 root      20   0  1772  532  444 S  100  0.0   0:37.86 mysqld_safe                                                           
    1 root      20   0  2844 1696  548 S    0  0.1   0:01.30 init                                                                  
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd

I think you should check this and see if it's a coincidence or a real bug in the installation process.

Cheers,

Ziv