The Perfect Server - CentOS 6.0 x86_64 [ISPConfig 3] - Page 5

14 Install Amavisd-new, SpamAssassin And ClamAV

To install amavisd-new, spamassassin and clamav, run the following command:

yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql

Then we start freshclam, amavisd, and clamd:

sa-update
chkconfig --levels 235 amavisd on
chkconfig --levels 235 clamd on
/usr/bin/freshclam
/etc/init.d/amavisd start
/etc/init.d/clamd start

 

15 Installing Apache2 With mod_php, mod_fcgi/PHP5, And suPHP

ISPConfig 3 allows you to use mod_php, mod_fcgi/PHP5, cgi/PHP5, and suPHP on a per website basis.

We can install Apache2with mod_php5, mod_fcgid, and PHP5 as follows:

yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel

Next we open /etc/php.ini...

vi /etc/php.ini

... and change the error reporting (so that notices aren't shown any longer) and uncomment cgi.fix_pathinfo=1:

[...]
;error_reporting = E_ALL & ~E_DEPRECATED
error_reporting = E_ALL & ~E_NOTICE
[...]
; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
cgi.fix_pathinfo=1
[...]

Next we install suPHP (there is a mod_suphp package available in the repositories, but unfortunately it isn't compatible with ISPConfig, therefore we have to build suPHP ourselves):

cd /tmp
wget http://suphp.org/download/suphp-0.7.1.tar.gz
tar xvfz suphp-0.7.1.tar.gz
cd suphp-0.7.1/
./configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
make
make install

Then we add the suPHP module to our Apache configuration...

vi /etc/httpd/conf.d/suphp.conf

LoadModule suphp_module modules/mod_suphp.so

... and create the file /etc/suphp.conf as follows:

vi /etc/suphp.conf

[global]
;Path to logfile
logfile=/var/log/httpd/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=apache
;Path all scripts have to be in
docroot=/
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=false
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-suphp="php:/usr/bin/php-cgi"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"

Finally we restart Apache:

/etc/init.d/httpd restart

 

15.1 Ruby

Starting with version 3.0.3, ISPConfig 3 has built-in support for Ruby. Instead of using CGI/FastCGI, ISPConfig depends on mod_ruby being available in the server's Apache.

For CentOS 6.0, there's no mod_ruby package available, so we must compile it ourselves. First we install some prerequisites:

yum install httpd-devel ruby ruby-devel

Next we download and install mod_ruby as follows:

cd /tmp
wget http://modruby.net/archive/mod_ruby-1.3.0.tar.gz
tar zxvf mod_ruby-1.3.0.tar.gz
cd mod_ruby-1.3.0/
./configure.rb --with-apr-includes=/usr/include/apr-1
make
make install

Finally we must add the mod_ruby module to the Apache configuration, so we create the file /etc/httpd/conf.d/ruby.conf...

vi /etc/httpd/conf.d/ruby.conf

LoadModule ruby_module modules/mod_ruby.so
RubyAddPath /1.8

... and restart Apache:

/etc/init.d/httpd restart

(If you leave out the RubyAddPath /1.8 directive, you will see errors like the following ones in Apache's error log when you call Ruby files:

[Thu May 26 02:05:05 2011] [error] mod_ruby: ruby:0:in `require': no such file to load -- apache/ruby-run (LoadError)
[Thu May 26 02:05:05 2011] [error] mod_ruby: failed to require apache/ruby-run
[Thu May 26 02:05:05 2011] [error] mod_ruby: error in ruby

)

 

15.2 WebDAV

WebDAV should already be enabled, but to check this, open /etc/httpd/conf/httpd.conf and make sure that the following three modules are active:

vi /etc/httpd/conf/httpd.conf

[...]
LoadModule auth_digest_module modules/mod_auth_digest.so
[...]
LoadModule dav_module modules/mod_dav.so
[...]
LoadModule dav_fs_module modules/mod_dav_fs.so
[...]

If you have to modify /etc/httpd/conf/httpd.conf, don't forget to restart Apache afterwards:

/etc/init.d/httpd restart

 

16 Install PureFTPd

PureFTPd can be installed with the following command:

yum install pure-ftpd

Then create the system startup links and start PureFTPd:

chkconfig --levels 235 pure-ftpd on
/etc/init.d/pure-ftpd start

Now we configure PureFTPd to allow FTP and TLS sessions. FTP is a very insecure protocol because all passwords and all data are transferred in clear text. By using TLS, the whole communication can be encrypted, thus making FTP much more secure.

OpenSSL is needed by TLS; to install OpenSSL, we simply run:

yum install openssl

Open /etc/pure-ftpd/pure-ftpd.conf...

vi /etc/pure-ftpd/pure-ftpd.conf

If you want to allow FTP and TLS sessions, set TLS to 1:

[...]
# This option can accept three values :
# 0 : disable SSL/TLS encryption layer (default).
# 1 : accept both traditional and encrypted sessions.
# 2 : refuse connections that don't use SSL/TLS security mechanisms,
#     including anonymous sessions.
# Do _not_ uncomment this blindly. Be sure that :
# 1) Your server has been compiled with SSL/TLS support (--with-tls),
# 2) A valid certificate is in place,
# 3) Only compatible clients will log in.
TLS                      1
[...]

In order to use TLS, we must create an SSL certificate. I create it in /etc/ssl/private/, therefore I create that directory first:

mkdir -p /etc/ssl/private/

Afterwards, we can generate the SSL certificate as follows:

openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem

Country Name (2 letter code) [XX]: <-- Enter your Country Name (e.g., "DE").
State or Province Name (full name) []:
<-- Enter your State or Province Name.
Locality Name (eg, city) [Default City]:
<-- Enter your City.
Organization Name (eg, company) [Default Company Ltd]:
<-- Enter your Organization Name (e.g., the name of your company).
Organizational Unit Name (eg, section) []:
<-- Enter your Organizational Unit Name (e.g. "IT Department").
Common Name (eg, your name or your server's hostname) []:
<-- Enter the Fully Qualified Domain Name of the system (e.g. "server1.example.com").
Email Address []:
<-- Enter your Email Address.

Change the permissions of the SSL certificate:

chmod 600 /etc/ssl/private/pure-ftpd.pem

Finally restart PureFTPd:

/etc/init.d/pure-ftpd restart

That's it. You can now try to connect using your FTP client; however, you should configure your FTP client to use TLS.

 

17 Install BIND

We can install BIND as follows:

yum install bind bind-utils

Next open /etc/sysconfig/named...

vi /etc/sysconfig/named

... and make sure that the ROOTDIR=/var/named/chroot line is comment out:

# BIND named process options
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
# Currently, you can use the following options:
#
# ROOTDIR="/var/named/chroot"  --  will run named in a chroot environment.
#                            you must set up the chroot environment
#                            (install the bind-chroot package) before
#                            doing this.
#       NOTE:
#         Those directories are automatically mounted to chroot if they are
#         empty in the ROOTDIR directory. It will simplify maintenance of your
#         chroot environment.
#          - /var/named
#          - /etc/pki/dnssec-keys
#          - /etc/named
#          - /usr/lib64/bind or /usr/lib/bind (architecture dependent)
#
#         Those files are mounted as well if target file doesn't exist in
#         chroot.
#          - /etc/named.conf
#          - /etc/rndc.conf
#          - /etc/rndc.key
#          - /etc/named.rfc1912.zones
#          - /etc/named.dnssec.keys
#          - /etc/named.iscdlv.key
#
#       Don't forget to add "$AddUnixListenSocket /var/named/chroot/dev/log"
#       line to your /etc/rsyslog.conf file. Otherwise your logging becomes
#       broken when rsyslogd daemon is restarted (due update, for example).
#
# OPTIONS="whatever"     --  These additional options will be passed to named
#                            at startup. Don't add -t here, use ROOTDIR instead.
#
# KEYTAB_FILE="/dir/file"    --  Specify named service keytab file (for GSS-TSIG)
#ROOTDIR=/var/named/chroot

Make a backup of the existing /etc/named.conf file and create a new one as follows:

cp /etc/named.conf /etc/named.conf_bak
cat /dev/null > /etc/named.conf
vi /etc/named.conf

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { any; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { any; };
        recursion no;
        allow-recursion { none; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
zone "." IN {
        type hint;
        file "named.ca";
};
include "/etc/named.conf.local";

Create the file /etc/named.conf.local that is included at the end of /etc/named.conf (/etc/named.conf.local will later on get populated by ISPConfig if you create DNS zones in ISPConfig):

touch /etc/named.conf.local

Then we create the startup links and start BIND:

chkconfig --levels 235 named on
/etc/init.d/named start

 

18 Install Vlogger, Webalizer, And AWStats

Vlogger, webalizer, and AWStats can be installed as follows:

yum install webalizer awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder

cd /tmp
wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
tar xvfz vlogger-1.3.tar.gz
mv vlogger-1.3/vlogger /usr/sbin/
rm -rf vlogger*

 

19 Install Jailkit

Jailkit is needed only if you want to chroot SSH users. It can be installed as follows (important: Jailkit must be installed before ISPConfig - it cannot be installed afterwards!):

cd /tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.14.tar.gz
tar xvfz jailkit-2.14.tar.gz
cd jailkit-2.14
./configure
make
make install
cd ..
rm -rf jailkit-2.14*

 

20 Install fail2ban

This is optional but recommended, because the ISPConfig monitor tries to show the log:

yum install fail2ban

chkconfig --levels 235 fail2ban on
/etc/init.d/fail2ban start

 

21 Install rkhunter

rkhunter can be installed as follows:

yum install rkhunter

Share this page:

54 Comment(s)

Add comment

Comments

From: Tray2 at: 2011-08-05 06:52:46

Hey mate nice work there :) One thing i noticed is that you must check the "Connect Automatically" otherwise your network won't start properly. I think that it should bew in the text :)

 

Cheers Tray2

From: Anonymous at: 2011-08-14 05:12:02

Hi, does subdomains work for you guys?  I followed this but my problem is that subdomains are not working as they should.

From: Anonymous at: 2011-08-28 11:46:49

redirection for subdomains not working.  please help..

From: at: 2012-07-20 07:29:02

Too many people do not follow the instructions to set the hostname to server1.example.com, instead they set the hostname to their domainname example.com. Afterwards they get into trouble with postfix. There are many threads with that problem.

 It would be good to add a warning at that point of the tutorial, e.g. Do not set your hostname to your domainname! or similar. Same for the tutorials for the other OSs.

From: KaoticEvil at: 2011-09-28 02:16:58

I just gotta say.. I *LOVE* your HOW-TO's. I've used yours since I first contemplated having a stand-alone server box using Ubuntu. Trying the CentOS one now, on Virtual Box.. So far, so good. Keep up the great work man!

From: Michael Ecklund at: 2011-08-16 18:37:43

Step 7 For 32 Bit Users

Do the following:

cd /tmp
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm

 

I don't know if it's a typo on the repoforge or if it's supposed to be like that, but they have it as .i686.rpm, by default when I was changing it from 64 bit to 32 bit, I was typing .i386.rpm and getting 404 errors. Just make sure you note the difference.

From: Biju at: 2011-09-08 12:07:06

yum install yum-priorities
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

From: styson011 at: 2011-09-15 14:24:01

Try this and see if it works, worked for me :

 cd /etc/yum.repos.d/
vi ./epel.repo

then comment all the mirrorlist= lines (#mirrorlist=........)

 and uncomment the #baseurl lines and save the file

 then try the "yum install priorities" again

 

From: lesley dos santos ribeiro at: 2011-10-06 19:42:51

Very very very thanks!!!!

good text!

From: relaxmasha at: 2011-10-25 12:29:12

compatible version php-mbstring for CentOS 6.0 x86_64 not found :(

From: at: 2011-10-26 15:36:27

I was and had to add the following to my setup. In the system-config-network-tui I used a gateway that has access to the proxy I had to use, on another network. then in my /etc/profile I add the following lines:

export ftp_proxy=[your proxy ip]:[your proxy port]

export http_proxy=[your proxy ip]:[your proxy port]

export https_proxy=[your proxy ip]:[your proxy port]


then reboot and everything should be good to use the proxy.  Oh I also added the line proxy=[your proxy ip]:[your proxy port] to my /etc/yum.conf just to be safe.

From: Marvio Rocha at: 2011-10-31 08:07:20

Solved. Now my yum update working!

Thanks you!

From: at: 2011-10-30 03:09:04

In the Centos 6 distribution I have, wget is not installed as part of the "Minimal Server" option.

yum install wget

From: Sevastian1711 at: 2011-11-09 01:07:05

this also helped me a lot, thanks for the help.

From: Brian at: 2012-01-27 12:35:41

For me this error was because of being behind a firewall. If you set the https_proxy variable to point at your proxy server before running yum, it should work.

From: Alex at: 2012-02-02 18:04:16

I had a problem with phpMyAdmin.

 This guide refers to phpmyadmin, when it should be phpMyAdmin.

yum install phpmyadmin, will install an old version that will not update with yum update.

yum install phpMyAdmin, will install from epel repository. Also it will be kept updated with yum  update.

From: Matthew McCleary at: 2012-03-27 15:21:41

Please update your documentation to reflect the move from download.fedora.redhat.com to dl.fedoraproject.org (as of February, 2012). Thanks.

From: Joseph Mouhanna at: 2012-03-28 00:06:26

Please note that step 7 does not work -- installing the EPEL 6 repos. Instead of the prescribed method:

rpm --import https://fedoraproject.org/static/0608B895.txt

wget http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

rpm -ivh epel-release-6-5.noarch.rpm

you should use the following (which will get the repo and install it):

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

 

From: Michael at: 2012-05-25 10:26:02

please assist me here
i have failed to install the EPEL 6 repos

am using CentOS6.2

Thanks

From: Anonymous at: 2012-06-13 17:00:57

it works, thanks a bunch

From: Anonymous at: 2013-03-11 03:46:14

The current version is 6_8 just replace the 5 with an 8

From: Anonymous at: 2013-07-18 13:29:37

Your a lifesaver!!! thanks a million man!!!!

From: Anonymous at: 2013-10-01 11:00:29

Many thanks from italy. Saved my life!

From: Dhana (Urjita) at: 2011-09-29 04:38:57

Hi Falko Timme,

Nice to follow you excellent Tutorial.

There a Target Folder error in the below step

sudo ls -l /root/rpmbuild/RPMS/x86_64

the compiled files are stored in sudo ls -l /root/rpm/RPMS/x86_64

It should be  followed as same as in the following steps as well

Or otherwise the folder creation should be rpmbuild

 

Regards

Dhana

From: gapa at: 2011-11-03 23:52:36

for me the simplest solution was to change

 echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros

 for 

echo "%_topdir $HOME/rpmbuild" >> $HOME/.rpmmacros

From: Sevastian1711 at: 2011-11-09 22:35:13

Check de date and tim, thats works to me. 

From: Dylan M. at: 2011-11-22 01:54:46

You no longer need to install getmail via sources since it is now in the rpmforge repo that you're using.

From: Davtyan at: 2013-10-23 14:40:20

In my case path is another

code:

<code>sudo rpm -ivh
/root/rpmbuild/RPMS/x86_64/courier-authlib-0.63.0-1.el6.x86_64.rpm
/root/rpmbuild/RPMS/x86_64/courier-authlib-mysql-0.63.0-1.el6.x86_64.rpm

/root/rpmbuild/RPMS/x86_64/courier-authlib-devel-0.63.0-1.el6.x86_64.rpm </code>

need to change

code:

<code>sudo rpm -ivh /root/rpmbuild/RPMS/i686/courier-authlib-0.63.0-1.el6.i686.rpm /root/rpmbuild/RPMS/i686/courier-authlib-mysql-0.63.0-1.el6.i686.rpm /root/rpmbuild/RPMS/i686/courier-authlib-devel-0.63.0-1.el6.i686.rpm </code>

 as real path is root/rpmbuild/RPMS/i686/  (in your example root/rpmbuild/RPMS/i686/)

From: deainfo at: 2011-08-06 14:12:32

same problem here :(

From: Lucho at: 2011-08-06 02:30:53

Error: Package: amavisd-new-2.6.4-2.el6.noarch (epel)
           Requires: /etc/clamd.d
           Available: clamd-0.97-13.el6.x86_64 (epel)
               Not found

From: Anonymous at: 2011-08-16 06:34:23
From: Don Trauco at: 2011-08-26 13:14:51

Today the site works fine.

 

 

From: Don Trauco at: 2011-08-25 19:15:27

[root@isp3 tmp]# wget http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz
--2011-08-25 16:07:17--  http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz
Resolving www.modruby.net... 221.186.184.67
Connecting to www.modruby.net|221.186.184.67|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-25 16:07:17 ERROR 404: Not Found.

From: at: 2011-08-26 05:22:37

Try


wget http://modruby.net/archive/mod_ruby-1.3.0.tar.gz


(without the www). This still works.


From: Maurilio N. at: 2011-10-16 20:28:37

the correct patch to create a named.conf.local is;

 /var/named/chroot/etc

then.....


touch /var/named/chroot/etc/named.conf.loca

and

service named restart

Maurilio N.

From: Alastair at: 2011-10-29 13:02:23

That worked perfectly, thanks!

From: max at: 2011-11-09 20:54:06

log "...checking for APR... configure:  the --with-apr parameter is incorect.  It build a directory, or an apr-config file." 

 after that when i'm trying to "make" and "make install" = " no rules for target "install""

 what to do ? help please...

From: miniraket at: 2011-11-13 21:06:52

Same problem here: tried this howto twice but failed to install suPHP twice.

 make-command returns: No targets specified and no makefile found. Stop

 make install-command returns: No rule to make target 'install'. Stop

 Restarting apache doesn't work anymore after step 15.0, so now my server is bricked :(

From: Shafiullah at: 2011-11-19 10:43:09

Please follow http://www.chrisam.net/blog/2009/10/11/installing-and-configuring-suphp-on-centos-5-3/
It works for me

From: Nguyen Xuan Thang at: 2011-11-21 23:35:49

You must install complier tool, its fix for me

yum install gcc gcc-c++ make

From: Tommy M at: 2011-11-26 09:28:21

You have to install the httpd-devel package first.

yum install httpd-devel


From: at: 2011-12-05 02:28:03

When I tried to install php-mssql I get error message, here 

15 Installing Apache2 With mod_php, mod_fcgi/PHP5, And suPHP

ISPConfig 3 allows you to use mod_php, mod_fcgi/PHP5, cgi/PHP5, and suPHP on a per website basis.


We can install Apache2with mod_php5, mod_fcgid, and PHP5 as follows:

 yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc
php-pear php-xml php-xmlrpc php-eaccelerator php-mbstring php-mcrypt
php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl
ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel

[root@server1 ~]# yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel Loaded plugins: fastestmirror, presto, priorities Loading mirror speeds from cached hostfile * base: mirror.5ninesolutions.com * epel: mirrors.kernel.org * extras: mirrors.login.com * rpmforge: fr2.rpmfind.net * updates: mirror.san.fastserv.com 1070 packages excluded due to repository priority protections Setting up Install Process Package php-5.3.2-6.el6_0.1.x86_64 already installed and latest version Package php-gd-5.3.2-6.el6_0.1.x86_64 already installed and latest version Package php-mysql-5.3.2-6.el6_0.1.x86_64 already installed and latest version Package php-mbstring-5.3.2-6.el6_0.1.x86_64 already installed and latest version Package php-mcrypt-5.3.3-1.el6.x86_64 already installed and latest version Package curl-7.19.7-16.el6.x86_64 already installed and latest version Package perl-libwww-perl-5.833-2.el6.noarch already installed and latest version Package libxml2-2.7.6-1.el6.x86_64 already installed and latest version Package php-cli-5.3.2-6.el6_0.1.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package ImageMagick.x86_64 0:6.5.4.7-5.el6 set to be updated --> Processing Dependency: librsvg-2.so.2()(64bit) for package: ImageMagick-6.5.4.7-5.el6.x86_64 --> Processing Dependency: libgs.so.8()(64bit) for package: ImageMagick-6.5.4.7-5.el6.x86_64 --> Processing Dependency: libwmflite-0.2.so.7()(64bit) for package: ImageMagick-6.5.4.7-5.el6.x86_64 --> Processing Dependency: libXt.so.6()(64bit) for package: ImageMagick-6.5.4.7-5.el6.x86_64 --> Processing Dependency: liblcms.so.1()(64bit) for package: ImageMagick-6.5.4.7-5.el6.x86_64 ---> Package httpd-devel.x86_64 0:2.2.15-5.el6.centos set to be updated --> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.15-5.el6.centos.x86_64 --> Processing Dependency: apr-devel for package: httpd-devel-2.2.15-5.el6.centos.x86_64 ---> Package libcurl-devel.x86_64 0:7.19.7-16.el6 set to be updated ---> Package libxml2-devel.x86_64 0:2.7.6-1.el6 set to be updated ---> Package mod_fcgid.x86_64 0:2.3.6-1.el6 set to be updated ---> Package php-devel.x86_64 0:5.3.2-6.el6_0.1 set to be updated ---> Package php-eaccelerator.x86_64 1:0.9.6.1-1.el6 set to be updated ---> Package php-imap.x86_64 0:5.3.2-6.el6_0.1 set to be updated --> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.3.2-6.el6_0.1.x86_64 ---> Package php-ldap.x86_64 0:5.3.2-6.el6_0.1 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 --> Processing Dependency: libsybdb.so.5()(64bit) for package: php-mssql-5.3.3-1.el6.x86_64 ---> Package php-odbc.x86_64 0:5.3.2-6.el6_0.1 set to be updated --> Processing Dependency: libodbc.so.2()(64bit) for package: php-odbc-5.3.2-6.el6_0.1.x86_64 ---> Package php-pear.noarch 1:1.9.0-2.el6 set to be updated ---> Package php-snmp.x86_64 0:5.3.2-6.el6_0.1 set to be updated --> Processing Dependency: net-snmp for package: php-snmp-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php-snmp-5.3.2-6.el6_0.1.x86_64 ---> Package php-soap.x86_64 0:5.3.2-6.el6_0.1 set to be updated ---> Package php-tidy.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.3.3-1.el6.x86_64 ---> Package php-xml.x86_64 0:5.3.2-6.el6_0.1 set to be updated --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.3.2-6.el6_0.1.x86_64 ---> Package php-xmlrpc.x86_64 0:5.3.2-6.el6_0.1 set to be updated --> Running transaction check ---> Package apr-devel.x86_64 0:1.3.9-3.el6_0.1 set to be updated ---> Package apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 set to be updated --> Processing Dependency: db4-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64 --> Processing Dependency: expat-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64 ---> Package freetds.x86_64 0:0.91-1.el6 set to be updated ---> Package ghostscript.x86_64 0:8.70-6.el6 set to be updated --> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-8.70-6.el6.x86_64 --> Processing Dependency: ghostscript-fonts for package: ghostscript-8.70-6.el6.x86_64 ---> Package lcms-libs.x86_64 0:1.19-1.el6 set to be updated ---> Package libXt.x86_64 0:1.0.7-1.el6 set to be updated ---> Package libc-client.x86_64 0:2007e-11.el6 set to be updated ---> Package librsvg2.x86_64 0:2.26.0-5.el6 set to be updated --> Processing Dependency: libgsf >= 1.6.0 for package: librsvg2-2.26.0-5.el6.x86_64 --> Processing Dependency: libgsf-1.so.114()(64bit) for package: librsvg2-2.26.0-5.el6.x86_64 --> Processing Dependency: libcroco-0.6.so.3()(64bit) for package: librsvg2-2.26.0-5.el6.x86_64 ---> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 set to be updated ---> Package libwmf-lite.x86_64 0:0.2.8.4-22.el6 set to be updated ---> Package libxslt.x86_64 0:1.1.26-2.el6 set to be updated ---> Package net-snmp.x86_64 1:5.5-27.el6_0.1 set to be updated --> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-27.el6_0.1.x86_64 ---> Package net-snmp-libs.x86_64 1:5.5-27.el6_0.1 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 ---> Package unixODBC.x86_64 0:2.2.14-11.el6 set to be updated --> Running transaction check ---> Package db4-devel.x86_64 0:4.7.25-16.el6 set to be updated --> Processing Dependency: db4-cxx = 4.7.25-16.el6 for package: db4-devel-4.7.25-16.el6.x86_64 --> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-16.el6.x86_64 ---> Package expat-devel.x86_64 0:2.0.1-9.1.el6 set to be updated ---> Package ghostscript-fonts.noarch 0:5.50-23.1.el6 set to be updated --> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5.50-23.1.el6.noarch ---> Package libcroco.x86_64 0:0.6.2-5.el6 set to be updated ---> Package libgsf.x86_64 0:1.14.15-5.el6 set to be updated --> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64 --> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64 ---> Package lm_sensors-libs.x86_64 0:3.1.1-10.el6 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 ---> Package urw-fonts.noarch 0:2.4-10.el6 set to be updated --> Running transaction check ---> Package GConf2.x86_64 0:2.28.0-6.el6 set to be updated --> Processing Dependency: sgml-common for package: GConf2-2.28.0-6.el6.x86_64 --> Processing Dependency: libORBit-2.so.0()(64bit) for package: GConf2-2.28.0-6.el6.x86_64 ---> Package db4-cxx.x86_64 0:4.7.25-16.el6 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 ---> Package xorg-x11-font-utils.x86_64 1:7.2-10.el6 set to be updated --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-10.el6.x86_64 --> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-10.el6.x86_64 --> Running transaction check ---> Package ORBit2.x86_64 0:2.14.17-3.1.el6 set to be updated --> Processing Dependency: libIDL-2.so.0()(64bit) for package: ORBit2-2.14.17-3.1.el6.x86_64 ---> Package libXfont.x86_64 0:1.4.1-1.el6 set to be updated ---> Package libfontenc.x86_64 0:1.0.5-2.el6 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 ---> Package sgml-common.noarch 0:0.6.3-32.el6 set to be updated --> Running transaction check ---> Package libIDL.x86_64 0:0.8.13-2.1.el6 set to be updated ---> Package php-mssql.x86_64 0:5.3.3-1.el6 set to be updated --> Processing Dependency: php-pdo >= 5.3.3 for package: php-mssql-5.3.3-1.el6.x86_64 --> Finished Dependency Resolution Error: Package: php-mssql-5.3.3-1.el6.x86_64 (epel) Requires: php-pdo >= 5.3.3 Installed: php-pdo-5.3.2-6.el6_0.1.x86_64 (@updates) php-pdo = 5.3.2-6.el6_0.1 Available: php-pdo-5.3.2-6.el6.x86_64 (base) php-pdo = 5.3.2-6.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

 

From: Anonymous at: 2011-12-12 11:59:44

This is a bug in the Perfect Server Setup. When you complete step 20 above, you must then type this:
vi /etc/fail2ban/fail2ban.conf
then change:
logtarget = SYSLOG
to:
logtarget = /var/log/fail2ban.log
then restart fail2ban or something!


Otherwise the ISPConfig monitor will say:
Unable to read /var/log/fail2ban.log


Hope this helps someone!

From: Arrrgh! at: 2013-03-08 06:27:00

Today it does not and google is being difficult.

www... and http://modruby.net gives me some oriental/asian site that I can't understand.

From: pdxerik at: 2013-03-08 22:30:24

I found a version that works at this address:

http://fossies.org/unix/www/apache_httpd_modules/mod_ruby-1.3.0.tar.gz/

From: Anonymous at: 2013-03-11 06:01:40

And that link doesn't work, I don't know how I made it work then.

 This link, however, does.

http://www.ruby-lang.org/en/downloads/

From: Bedoskil at: 2011-09-08 05:59:46

Hello I have scrupulously followed this wonderful tutorial on my server and everything works fine, I have a problem with "Courier" When I send an email fine but it happens with the sender "Apache" example : apache@myserver.com How can I fix this?

From: Maurilio at: 2011-10-16 19:01:33


if you browser show a blank page after all instalation process, and apache show in log the message above;


[notice] child pid 5003 exit signal Segmentation fault (11)


 remove php-eaccelerator and go ahead.


rpm -e php-eaccelerator



From: admin at: 2011-10-17 06:03:52

It's Apache then or PHP that are not compatible with php-eaccelerator, not ISPConfig. ISPConfig does not serve the pages, that's done by Apache/PHP.

From: Maurilio at: 2011-10-16 19:12:17

if you have a blank page after login in ISPconfig, and apear in apache log the message above;

[notice] child pid 5010 exit signal Segmentation fault (11)

 

1- don´t wory, only remove the package: php-eaccelerator

2- and restart apache;

 

rpm -e php-eaccelerator

service httpd restart

 

And Realy Thanks to Tutorial.

 Maurilio

From: Bogdan Storm at: 2011-10-24 22:03:24

I followed your tutorials about "perfect servers" and they are absolutely great. Simple, fast and good stuff to learn from.

It would be great o see a tutorial about a "perfect server" made only to run fast CMS websites and online stores (Joomla+Virtuemart, Wordpress + Ecommerce, Prestashop, Magento). Without email boxes, antispam and all that useless stuff, just with ability to send mails to customers/visitors.

I am currently configured my server (Debian) for all domains and websites (about 80) that I host to receive email with help from Google Apps free and it's working great. This way I am not loading my server with all that stuff. :D

 Thanks a lot for putting all this together.


From: maxnz at: 2011-12-13 08:59:08

Hi !!! i have an VBox machine on W7 host with a ADSL conection - i install the server on vbox from this tutorial but at finish i have some troubles : 
1. i cant acces mysite from exterior(internet), from network it works perfect 
2. phpmyadmin doesn't open too, but it doesn,t open from network and from internet(when i install it first I test it and he work from network)

 ISPConfig and webmail, FTP and SSH are working well from internet and from internal network .

 Firewall and SElinux are disabled, NAT on router is configured, the mysql server works (show in IPSConfig)  

 

From: at: 2011-12-23 05:09:42

Hey, that fixed my ISPConfig and WordPress.  Thanks.



From: Andrew Christensen at: 2013-04-06 14:52:11

I followed this tutorial to a T and it's great. I have it on Linode and it's wonderful. The only problem I've run into is that the AWSTATS just don't seem be working. I've set all of the sites (4 days ago) to awstats. But they are all giving a 404 error.

I'm not sure what to do next. Any ideas?