logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 27-07-2017 09:31:39

keo
Membre
Inscription : 21-02-2017

configurer correctement apache2 et php-fpm en mod worker avec debian 9

Bonjour,

je tente d'installer proprement mon serveur web, pour le moment voici mon apache:


sudo apache2ctl  -V
sudo sudo apache2ctl  -V
Server version: Apache/2.4.25 (Debian)
Server built:   2017-07-18T18:37:33
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

 



je suis en mode


Server MPM:     prefork
 



j'aimerais installer le worker, j'ai donc essayer de désinstaller prefork:


sudo a2dismod mpm_prefork
ERROR: The following modules depend on mpm_prefork and need to be disabled first: mpm_itk php7.0
 



comment m'y prendre ? faut -t'il désactiver mpm_itk  ?

voici la version de php que j'utilise:


php -v
PHP 7.0.19-1 (cli) (built: May 11 2017 14:04:47) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.19-1, Copyright (c) 1999-2017, by Zend Technologies

 




voici les services qui tourne:


ps -aux | grep php
root      7993  0.0  0.3 222592 26216 ?        Ss   08:51   0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data  7994  0.0  0.0 222592  6320 ?        S    08:51   0:00 php-fpm: pool www
www-data  7995  0.0  0.0 222592  6320 ?        S    08:51   0:00 php-fpm: pool www
eldoom   15026  0.0  0.0  12784   980 pts/0    S+   10:28   0:00 grep php

 



merci d avance de vos reponses smile

Hors ligne

Pied de page des forums