Skip to content

Hoe Joomla te installeren met Nginx op Rocky Linux

Cloud Infrastructure Expert
Hoe Joomla te installeren met Nginx op Rocky Linux

 

 

Volg deze stap-voor-stap handleiding om Joomla te installeren op je server die Rocky Linux draait.

Stap 1: Update je systeem

Voordat je software installeert, is het belangrijk om de systeem pakketten bij te werken:

sudo dnf update -y

Stap 2: Installeer vereiste pakketten

Installeer de benodigde pakketten om Joomla te laten draaien:

sudo dnf install -y epel-release
sudo dnf install -y nginx php php-fpm php-mysqlnd php-xml php-mbstring php-curl php-zip

Stap 3: Start en activeer Nginx en PHP-FPM

Start de Nginx- en PHP-FPM-diensten en zorg ervoor dat ze bij opstarten worden ingeschakeld:

sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl start php-fpm
sudo systemctl enable php-fpm

Stap 4: Configureer Nginx voor Joomla

Maak een nieuwe configuratiebestand voor Joomla in de Nginx-configuratiemap:

sudo nano /etc/nginx/conf.d/joomla.conf

Voeg de volgende configuratie toe:

server {
    listen 80;
    server_name your_domain.com;  # Vervang door je domein

    root /var/www/html/joomla;  # Vervang door je Joomla-map
    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php-fpm/www.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Bewaar en sluit het bestand.

Stap 5: Download Joomla

Ga naar de webroot-directory en download Joomla:

cd /var/www/html
wget https://downloads.joomla.org/latest-stable/joomla-4.x.x.zip  # Controleer de nieuwste versie

Pak het gedownloade bestand uit:

unzip joomla-4.x.x.zip
mv joomla/* joomla/.htaccess .

Stap 6: Stel permissies in

Stel de juiste permissies in voor de Joomla-map:

sudo chown -R nginx:nginx /var/www/html/joomla
sudo chmod -R 755 /var/www/html/joomla

Stap 7: Test de Nginx-configuratie

Voordat je Nginx herstart, test de configuratie op syntaxisfouten:

sudo nginx -t

Stap 8: Herstart Nginx

Als de test succesvol was, herstart Nginx:

sudo systemctl restart nginx

Stap 9: Voltooi de Joomla-installatie

Open je webbrowser en ga naar http://your_domain.com (vervang door je werkelijke domein). Volg de instructies op het scherm om de Joomla-installatie te voltooien.

Conclusie

Je hebt Joomla succesvol geïnstalleerd op je server met Nginx op Rocky Linux. Je kunt nu beginnen met het bouwen van je website!

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.