Skip to content

Hoe PhpMyAdmin te installeren met Nginx en Let's Encrypt SSL op Ubuntu 24.04

Cloud Infrastructure Expert
Hoe PhpMyAdmin te installeren met Nginx en Let's Encrypt SSL op Ubuntu 24.04

 

 

In deze handleiding zullen we leren hoe we server VPS kunnen instellen met PhpMyAdmin, Nginx en Let’s Encrypt SSL op Ubuntu 24.04.

Stap 1: Vereisten

  • Ubuntu 24.04 geïnstalleerd
  • Toegang tot een server VPS
  • Root of sudo toegang

Stap 2: Systeem updaten

sudo apt update && sudo apt upgrade -y

Stap 3: Nginx installeren

sudo apt install nginx -y

Stap 4: PHP en vereiste extensies installeren

sudo apt install php php-mysql php-fpm php-xml php-mbstring -y

Stap 5: PhpMyAdmin installeren

sudo apt install phpmyadmin -y

Kies Nginx wanneer u wordt gevraagd om de webserver te configureren.

Stap 6: Nginx configureren voor PhpMyAdmin

Maak een nieuw configuratiebestand aan voor PhpMyAdmin:

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

Voeg de volgende inhoud toe:

server {
        listen 80;
        server_name jouw_domein.nl;

        root /usr/share/phpmyadmin;
        index index.php index.html index.htm;

        location / {
            try_files $uri $uri/ =404;
        }

        location ~ \.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;
        }
    }

Vergeet niet jouw domeinnaam aan te passen.

sudo ln -s /etc/nginx/sites-available/phpmyadmin /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx

Stap 7: Let’s Encrypt SSL certificaat installeren

sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d jouw_domein.nl

Stap 8: PhpMyAdmin openen

Ga naar http://jouw_domein.nl/phpmyadmin in uw webbrowser en log in met uw databankgegevens.

Conclusie

Je hebt nu PhpMyAdmin geïnstalleerd met Nginx en Let’s Encrypt SSL op Ubuntu 24.04. Gebruik een betrouwbare server VPS voor optimale prestaties.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

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)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.