Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
tutoriel:internet:serveur:nginx2apache:start1 [2022/03/18 09:32] – [Première étape] admin | tutoriel:internet:serveur:nginx2apache:start1 [2022/08/13 22:15] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
<WRAP list-deep> | <WRAP list-deep> | ||
- **Installez [[apt> | - **Installez [[apt> | ||
- | - **Configurez PHP-FPM** : créez un fichier de pool par site, sur la base du fichier /etc/php-fpm.d/ | + | - **Configurez PHP-FPM** : créez un fichier de pool par site, sur la base du fichier /etc/php/7.4/fpm/pool.d/ |
- | [srv2] | + | (...) |
- | user = apache | + | #~ [www] |
- | group = apache | + | [monsite] |
- | #En mode socket | + | (...) |
- | listen = / | + | ; Unix user/group of processes |
- | #En mode application Tcp/Ip | + | ; Note: The user is mandatory. If the group is not set, the default user's group |
- | #listen = 127.0.0.1:9000 | + | ; will be used. |
- | listen.owner = apache | + | user = www-data |
- | listen.group = apache | + | group = www-data |
- | listen.acl_users = apache | + | |
- | listen.acl_groups = apache | + | ; The address on which to accept FastCGI requests. |
- | listen.allowed_clients = 127.0.0.1</ | + | ; Valid syntaxes are: |
+ | ; ' | ||
+ | ; a specific port; | ||
+ | ; ' | ||
+ | ; a specific port; | ||
+ | ; ' | ||
+ | ; (IPv6 and IPv4-mapped) on a specific port; | ||
+ | ; '/ | ||
+ | ; Note: This value is mandatory. | ||
+ | listen = /run/php/php7.4-fpm.sock | ||
+ | (...) | ||
+ | ; Set permissions for unix socket, if one is used. In Linux, read/write | ||
+ | ; permissions must be set in order to allow connections from a web server. Many | ||
+ | ; BSD-derived systems allow connections regardless of permissions. | ||
+ | ; Default Values: user and group are set as the running user | ||
+ | ; mode is set to 0660 | ||
+ | listen.owner | ||
+ | listen.group = www-data | ||
+ | ;listen.mode = 0660 | ||
+ | ; When POSIX Access Control Lists are supported you can set them using | ||
+ | ; these options, value is a comma separated list of user/group names. | ||
+ | ; When set, listen.owner | ||
+ | #~ ; | ||
+ | #~ ;listen.acl_groups | ||
+ | listen.acl_users = www-data | ||
+ | listen.acl_groups = www-data | ||
+ | |||
+ | ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. | ||
+ | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original | ||
+ | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address | ||
+ | ; must be separated by a comma. If this value is left blank, connections will be | ||
+ | ; accepted from any ip address. | ||
+ | ; Default Value: any | ||
+ | #~ ;listen.allowed_clients = 127.0.0.1 | ||
+ | listen.allowed_clients = 127.0.0.1 | ||
+ | (...) | ||
+ | </ | ||
</ | </ | ||
- **modules Apache** : | - **modules Apache** : |