The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 2] - Page 7

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2010-05-25 17:28. ::

14 Webalizer

To install webalizer, just run

yum install webalizer

 

15 Synchronize The System Clock

If you want to have the system clock synchronized with an NTP server do the following:

yum install ntp

chkconfig --levels 235 ntpd on
ntpdate 0.pool.ntp.org
/etc/init.d/ntpd start

 

16 Install Some Perl Modules

ISPConfig comes with SpamAssassin which needs a few Perl modules to work. We install the required Perl modules with a single command:

yum install perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-Archive-Tar

We also need to install the Perl module NetAddr::IP which isn't available in the official CentOS repository, but from RPMforge. We can install it as follows:

rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/perl-NetAddr-IP-4.027-1.el5.rf.x86_64.rpm

(If the package doesn't exist anymore, you can find the latest version on http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/.)

 

17 The End

The configuration of the server is now finished, and if you wish you can now install ISPConfig on it.

 

17.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 CentOS' suExec is compiled with /var/www as Doc_Root. Run

/usr/sbin/suexec -V

and the output should look like this:

[root@server1 ~]# /usr/sbin/suexec -V
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="apache"
 -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -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).

 

18 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 Jazzzz (not registered) on Mon, 2010-11-22 17:00.

If not install flex the ISPConfig's installation fail.

Type yum install flex befor setup ISPConfig

yum intall flex

Submitted by Steveorevo (registered user) on Sat, 2010-07-31 02:29.
There is a bug in Perl's Tar module for 5.8.8, you should check that Spamassassin is able to update correctly by running: /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update If you receive the dreaded " Argument "1.39_01" isn't numeric" then be sure to edit /usr/lib/perl5/vendor_perl/5.8.8/Archive/Tar.pm to read: $VERSION                = "1.39_01"; $VERSION                = eval $VERSION; Add line "$VERSION                = eval $VERSION;" as shown above to resolve problem.
Submitted by Doug Lucy (not registered) on Sun, 2010-06-13 22:51.

For 32-bit installs, the correct line for the second part of step 16 is:

rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/perl-NetAddr-IP-4.027-1.el5.rf.i386.rpm