HowtoForge - Linux Howtos in English English|HowtoForge.de - Linux-Howtos auf Deutsch Deutsch

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


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Please do not use the comment function to ask for help! If you need help, please use our forum: http://www.howtoforge.com/forums
Comments will be published after administrator approval.
Submitted by killfrog (Contact Author) (Forums) 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