Documentation du Dr FRAPPE

Ce wiki regroupe les résultats de mes expériences en informatique accumulés au cours de mes recherches sur le net.

Dans la mesure du possible, j'ai cité mes sources ; il en manque certainement… :-)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
tutoriel:internet:serveur:nginx2apache:start1 [2022/03/18 09:32] – [Première étape] admintutoriel:internet:serveur:nginx2apache:start1 [2022/03/22 13:12] – [Première étape] admin
Ligne 17: Ligne 17:
 <WRAP list-deep> <WRAP list-deep>
   - **Installez [[apt>php-fpm]]** <cli prompt='$ '>...@...:~$ sudo apt install php-fpm</cli>   - **Installez [[apt>php-fpm]]** <cli prompt='$ '>...@...:~$ sudo apt install php-fpm</cli>
-  - **Configurez PHP-FPM** : créez un fichier de pool par site, sur la base du fichier /etc/php-fpm.d/www.conf :<code conf >;Remplacez www par le nom de votre site +  - **Configurez PHP-FPM** : créez un fichier de pool par site, sur la base du fichier /etc/php/7.4/fpm/pool.d/www.conf (Remplacez www par le nom de votre site) :<code - /etc/php/7.4/fpm/pool.d/monsite.conf> 
-[srv2+(...) 
-user = apache +#~ [www] 
-group = apache +[monsite] 
-#En mode socket +(...) 
-listen = /run/php-fpm/srv2.sock +; 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</code>+; Valid syntaxes are: 
 +;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on 
 +;                            a specific port; 
 +;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on 
 +;                            a specific port; 
 +;   'port'                 - to listen on a TCP socket to all addresses 
 +;                            (IPv6 and IPv4-mapped) on a specific port; 
 +;   '/path/to/unix/socket' - to listen on a unix socket. 
 +; 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 www-data 
 +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 and listen.group are ignored 
 +#~ ;listen.acl_users 
 +#~ ;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 
 +(...) 
 +</code>
 </WRAP> </WRAP>
   - **modules Apache** :   - **modules Apache** :