• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Lecture notes

Configuration complète d’un serveur Web NGINX avec PHP et SSL sur Ubuntu

Document preview thumbnail
Preview 1 out of 3 pages

Ce document présente l’ensemble des étapes nécessaires pour configurer un serveur Web complet sous Ubuntu en utilisant NGINX. Il explique comment préparer le serveur, vérifier les ports, installer et activer NGINX, créer un Virtual Host pour un nom de domaine, mettre en place les fichiers HTML/PHP, configurer PHP-FPM pour exécuter du code PHP, et sécuriser le site avec un certificat SSL grâce à Certbot. Il inclut également les commandes essentielles à exécuter, dans l’ordre, ainsi que les modifications à apporter aux fichiers de configuration.

Content preview

Configuration d’un serveur Web NGINX sur Ubuntu
Table des matières
Configuration d’un serveur Web NGINX sur Ubuntu .......................................................1
Préparation du serveur Linux ...................................................................................1
Vérifications initiales des ports ................................................................................1
Installation de NGINX .............................................................................................1
Configuration du Virtual Host...................................................................................2
Création du répertoire web ......................................................................................2
Ajout de PHP..........................................................................................................2
Installation du HTTPS avec Certbot...........................................................................3



Préparation du serveur Linux
1. sudo -i
2. apt update
3. apt upgrade
4. apt install net-tools
5. Changer le DNS du domaine. Exemple : Domaine sur PlanetHoster → modifier
l’enregistrement A pour pointer vers l’IP publique du serveur.

Vérifications initiales des ports
1. netstat -an | grep -ei listen
2. lsof -i :80

Installation de NGINX
1. apt install nginx
2. nginx -v
3. service nginx status OU systemctl status nginx
4. Configurer les règles Azure (Inbound Rules). Autoriser HTTP (80) et HTTPS (443).
5. Tester dans un navigateur. Entrer l’IP publique → la page par défaut NGINX doit
s’afficher.

Document information

Study
Uploaded on
November 15, 2025
Number of pages
3
Written in
2025/2026
Type
Lecture notes
Professor(s)
Jade lachapelle
Contains
All classes
$5.63

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
8
Last sold
11 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions