Skip to content

Configuration

Loïc V. edited this page Feb 6, 2026 · 5 revisions

Sur le site

Éditez le fichier exemple.config.php et renommez-le config.php.

Config Nginx

Exemple :

server {
    listen 80;
    server_name votre-domaine.tld;

    root /var/www/forum-php;
    index index.php;

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

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    }

    location ~* \.(jpg|jpeg|png|gif|svg|css|js)$ {
        expires 7d;
    }
}

Config Apache

Exemple : ` <VirtualHost *:80> ServerName votre-domaine.tld DocumentRoot /var/www/forum-php

<Directory /var/www/forum-php>
    AllowOverride All
    Require all granted
</Directory>

<FilesMatch \.php$>
    SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
` **Attention !** Assurez-vous que `mod_rewrite` est bien actif.

Clone this wiki locally