Skip to content

Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

Introduction

Ce guide vous montrera comment installer PhpMyAdmin sur un serveur vps Ubuntu 24.04, utilisant Nginx comme serveur web et Let’s Encrypt pour le SSL.

Prérequis

  • Un serveur vps avec Ubuntu 24.04 installé.
  • Un accès SSH à votre serveur.
  • Un domaine lié à votre serveur.
  • MySQL ou MariaDB installé.

Étape 1 : Mettre à jour le système

Connectez-vous à votre serveur via SSH et mettez à jour vos paquets :

sudo apt update && sudo apt upgrade -y

Étape 2 : Installer Nginx et PHP

Installez Nginx et PHP avec les extensions nécessaires :

sudo apt install nginx php-fpm php-mysql -y

Étape 3 : Installer PhpMyAdmin

Ajoutez le dépôt PhpMyAdmin et installez-le :

sudo apt install phpmyadmin -y

Lors de l’installation, sélectionnez Nginx comme serveur web lorsque vous y êtes invité.

Étape 4 : Configurer Nginx pour PhpMyAdmin

Ouvrez le fichier de configuration Nginx :

sudo nano /etc/nginx/sites-available/default

Ajoutez la configuration suivante pour PhpMyAdmin :

Visual overview of Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
Visual overview: Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
location /phpmyadmin {
        root /usr/share/;
        index index.php index.html index.htm;
        location ~ ^/phpmyadmin/(doc|sql|setup)/ {
            deny all;
        }
        location ~ /phpmyadmin/(.*\.php)$ {
            include snippets/fastcgi-php.conf;
            fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
    }

Étape 5 : Mettre en place Let’s Encrypt SSL

Installez Certbot :

sudo apt install certbot python3-certbot-nginx -y

Procédez à l’obtention du certificat SSL :

sudo certbot --nginx -d votre_domaine.com

Étape 6 : Redémarrer Nginx

Après avoir configurer le tout, redémarrez Nginx :

sudo systemctl restart nginx

Conclusion

Félicitations ! Vous avez installé PhpMyAdmin avec Nginx et SSL Let’s Encrypt sur votre serveur vps Ubuntu 24.04. Vous pouvez maintenant accéder à PhpMyAdmin à l’adresse https://votre_domaine.com/phpmyadmin.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Key topics covered in Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
Key topics covered in this NetCloud24 guide.

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Practical checklist for Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
Practical checklist for applying the guidance in this article.

Windows VPS

Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
Comment Installer PhpMyAdmin avec Nginx et SSL Let's Encrypt sur Ubuntu 24.04
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.