Suite à une installation de Plesk 10, un certain nombre d’éléments restent à configurer pour tirer partie, au mieux, de sa machine

On va commencer par le commencement :

apt-get install cron-apt ntp ntpdate fail2ban

Installation de Munin

apt-get install munin munin-node

On crée un sous-domaine sous Plesk (http://munin.site-internet.fr)

On va changer le propriétaire du répertoire httpdocs correspondant + modifier le chmod en 0755 (rwxr-xr-x)

chown munin:munin /var/www/vhosts/site-internet.fr/munin

Editer le fichier /etc/munin/munin.conf et modifier la variable htmldir

htmldir /var/www/vhosts/site-internet.fr/munin

Pour que Munin prenne en compte nos modifications : redémarrons le

/etc/init.d/munin-node restart

Modules PHP 5

apt-get install php5-imagick

Modules Apache

a2enmod expires
a2enmod headers
a2enmod deflate

OptiPNG (pour la compression PNG)

apt-get install optipng

On paramètre Apache /etc/apache2/apache2.conf

MaxKeepAliveRequests 150
KeepAliveTimeout 5

#    StartServers          5
#    MinSpareServers       5
#    MaxSpareServers      10
#    MaxClients          150
#    MaxRequestsPerChild   0
    StartServers       25
    MinSpareServers    25
    MaxSpareServers   50
    MaxClients       256
    MaxRequestsPerChild  4000

On optimise Apache : https://github.com/gusmaskowitz/apachetuner

cd /tmp
wget https://raw.github.com/gusmaskowitz/apachetuner/master/apachetuner.sh
chmod 744 apachetuner.sh
./apachetuner.sh

On redémarre Apache

/etc/init.d/apache2 restart

On optimise MySQL : https://github.com/rackerhacker/MySQLTuner-perl

cd /tmp
wget https://raw.github.com/rackerhacker/MySQLTuner-perl/71f14ea05358fe5094b99fbbd4cf62d4fa109731/mysqltuner.pl
perl mysqltuner.pl