Line 16:
Line 16:
* Tous les OS connus sont supportés.
* Tous les OS connus sont supportés.
Par exemple: Linux, BSD, Windows, MacOS, Aix, ...
Par exemple: Linux, BSD, Windows, MacOS, Aix, ...
+
+
= Serveur WEB =
+
Dolibarr peut fonctionner aussi bien avec Apache qu'avec Nginx.
+
+
== Configuration Nginx ==
+
Voici un fichier de configuration Nginx qui fonctionne pour Debian 11, PHP7.4, Nginx 1.18 et Dolibarr 14 :
+
<blockquote>server {
+
+
root /var/www/dolibarr/htdocs;
+
+
# Add index.php to the list if you are using PHP
+
index index.html index.php;
+
+
server_name dolibarr.example.fr;
+
+
location / {
+
# First attempt to serve request as file, then
+
# as directory, then fall back to displaying a 404.
+
try_files $uri $uri/ =404;
+
}
+
+
# pass PHP scripts to FastCGI server
+
#
+
location ~ [^/]\.php(/|$) {
+
# include snippets/fastcgi-php.conf;
+
fastcgi_intercept_errors on;
+
include fastcgi_params;
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
+
# # With php-fpm (or other unix sockets):
+
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
+
}
+
+
listen [::]:443 ssl ipv6only=on; # managed by Certbot
+
listen 443 ssl; # managed by Certbot
+
ssl_certificate /etc/letsencrypt/live/dolibarr.example.fr/fullchain.pem; # managed by Certbot
+
ssl_certificate_key /etc/letsencrypt/live/dolibarr.example.fr/privkey.pem; # managed by Certbot
+
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
+
+
error_log /var/log/nginx/dolibarr.example.fr/error.log warn;
+
access_log /var/log/nginx/dolibarr.example.fr/access.log;
+
+
}
+
server {
+
if ($host = dolibarr.example.fr) {
+
return 301 https://$host$request_uri;
+
} # managed by Certbot
+
+
listen [::]:80;
+
+
server_name dolibarr.example.fr;
+
return 404; # managed by Certbot
+
}</blockquote>
+
= Bases de données =
= Bases de données =