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

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Thu, 2008-04-24 14:15. ::

19 Webalizer

To install webalizer, just run

apt-get install webalizer geoip-database

 

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 trondhuso (registered user) on Sat, 2012-06-09 08:40.

just noticed that I am running 8.04 and I want to upgrade this to 10.04. Is it just to do an upgrade and things will still work, or are there things in ISPConfig that needs changing and/or other settings that I must change as well then?

Would be a nice addition to this setup - which I must give you big High 5s for. The Perfect Server Setup Guides are _the_ best out there.

 

Submitted by KingBeto (registered user) on Mon, 2010-06-07 20:12.

VERY SERIOUS POST. CONGRATS.

But you forgot something VERY important: to install NetAddr::IP AND Archive::Tar Perl Modules.

For those how tried to install ISPConfig without this two modules and got errors, you must do this...

Installing modules using CPAN via CPAN.pm AS ROOT:

$perl -MCPAN -e shell
install NetAddr::IP
install Archive::Tar
quit


Cheers, King Beto

Submitted by Anonymous (not registered) on Thu, 2010-06-24 21:04.
Thanks! It seems to me, that step was not needed in previos versions. Now it is. Sorry for my english.
Submitted by Mike (not registered) on Wed, 2009-05-27 06:17.

Hi first of all thanks for the step by step config... I follow same steps but It looks like i m having a problem ...when i check the hostname via using hostname command i get the host name. but when i try to enter hostname -f ... its says unknown host ... also after installing the quota when i try to mount the disk to user and grp.. it says cannot find filesystem to check.... i m not sure wht i m doing wrng.. i uninstall the quota n then install it back on but still ... can you please give me a hand with this.. thanks

Mike

Submitted by Leow (registered user) on Sun, 2009-05-31 11:47.

Did you do step 7, editing the hosts file? it worked for me. Maybe, try redoing this step..

 About your second question I am not sure. Good luck..

Submitted by danuel (registered user) on Mon, 2009-05-11 04:57.

I received following error at the end of the ISPconfig-2.2.32 installation after http/https choice (all steps prior to this seems to go ok):

Please select the protocol (http or https (SSL encryption)) to use to access the ISPConfig system:
1) HTTPS
2) HTTP
Your Choice: 2

./setup2: line 1090: mysql_config: No such file or directory
./setup2: line 1091: httpd: No such file or directory
./setup2: line 1092: httpd2: No such file or directory
./setup2: line 1093: httpd2: No such file or directory
./setup2: line 1103: ip_addresses: No such file or directory
./setup2: line 1105: /root/ispconfig/php/php: No such file or directory
./setup2: line 1106: /root/ispconfig/dist.info: No such file or directory
chmod: cannot access `/home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper': No such file or directory
Restarting some services...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 * Stopping Postfix Mail Transport Agent postfix                            [ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 * Starting Postfix Mail Transport Agent postfix                                   chdir: error retrieving current directory: getcwd: cannot access parent directories     : No such file or directory
                                                                            [ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 * Stopping ftp server proftpd                                              [ OK ]
 * Starting ftp server proftpd                                              [ OK ]
./setup2: line 1163: /etc/init.d/ispconfig_server: No such file or directory
Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.

Although installation completes with "Congradulations!", it doesn't work.  Can you help with this please?  Thanks.

 

 

Submitted by danuel (registered user) on Mon, 2009-05-11 21:44.
Update:  The setup2 file errors seem to be specific to ISPconfig-2.2.32.  I was able to install ISPconfig-2.2.30 without any problems -- done after 3 failed attempts to install ISPconfig-2.2.32. 
Submitted by jp.fox (not registered) on Fri, 2009-02-13 14:15.

To remove this error from /var/log/apache2/error.log , you have to change ispconfig config.

In file /home/admispconfig/ispconfig/lib/config.inc.php change the line from:

$go_info["server"]["apache2_php"] = 'both';

to:

$go_info["server"]["apache2_php"] = 'addtype';

Change a website config (enable CGI scripts for example, save and disable it after) to apply change in Apache config.

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