Ceci permet de faire tourner iscpc sur des machines avec peu de ressoures.
Merci @ Daff !

1. Configuration des processus d'Apache2

Sur la pluspart des systèmes Apache2 consome beaucoup de RAM (par defaut environ 480Mo). Nous allons donc changer ces valeurs afin que Apache2 consome moins de RAM.

Ouvrez votre apache2.conf

# vi /etc/apache2/apache2.conf

Modifier la partie "worker MPM" en:

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
StartServers 1
MaxClients 100
MinSpareThreads 1
MaxSpareThreads 50
ThreadsPerChild 10
MaxRequestsPerChild 5000
</IfModule>

Redémarrer Apache2 pour que les modifications soient prises en compte:

# /etc/init.d/apache2 force-reload

2. Configuration de MySQL

Modifiez le my.cnf afin que MySQL consome moins de RAM.

Ouvrez le fichier my.cnf

# vi /etc/mysql/my.cnf file

Modifier la partie "*Fine Tuning" en:

#
# * Fine Tuning
#
key_buffer = 1M
max_allowed_packet = 8M
thread_stack = 64K
thread_cache_size = 8
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 8M

Redémarrer MySQL Server:

# /etc/init.d/mysql restart