This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:linux:alpine:serveur_web [2025/10/28 21:28] – yahiko | informatique:linux:alpine:serveur_web [2025/10/29 19:52] (current) – yahiko | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| - | On va faire simple et un peu sale : Apache2, PHP-FPM | + | On va faire simple et un peu sale : Apache2 |
| ===== Documentations ===== | ===== Documentations ===== | ||
| Line 122: | Line 122: | ||
| </ | </ | ||
| - | On ajoute les lignes suivantes | + | Pour activer PHP au global |
| - | <code apache> | + | <file apache |
| < | < | ||
| SetHandler " | SetHandler " | ||
| </ | </ | ||
| - | </code> | + | </file> |
| - | Par exemple | + | Sinon ce code peut juste être intégrer dans un vhost, du genre : |
| <file apache test.conf> | <file apache test.conf> | ||
| < | < | ||
| - | | + | ServerName erreur503.xyz |
| - | DocumentRoot / | + | DocumentRoot / |
| < | < | ||
| SetHandler " | SetHandler " | ||
| </ | </ | ||
| - | | + | < |
| - | AllowOverride All | + | AllowOverride All |
| - | Require all granted | + | Require all granted |
| - | </ | + | </ |
| </ | </ | ||
| + | </ | ||
| + | |||
| + | ==== Vérification du fonctionnement ==== | ||
| + | On peut vérifier en créant un fichier '' | ||
| + | |||
| + | <file php phpinfo.php> | ||
| + | <?php phpinfo(); ?> | ||
| </ | </ | ||