Installation - Upgrade: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 34: Line 34:
  $ mv dolibarr-x.y.z dolibarr
  $ mv dolibarr-x.y.z dolibarr


* En tant que root, créez, dans le répertoire dolibarr/htdocs/conf, un fichier de configuration vide, et attribuez-lui comme propriétaire du fichier, l'utilisateur du serveur web (exemple www-data sur debian, nobody sur une vieille RedHat, apache sur une autre version ...). Ceci est requis car le serveur web a besoin d'écrire dans ce fichier lors de l'installation.
* As a root user, create, into directory dolibarr/htdocs/conf, an empty configuration file called conf.php and set, as owner, the web server user (example www-data on Debian, nobody on old RedHat, apache on Mandriva, recent RedHat or other distributions ...). This is required because the web server will have to write into this file during install process.
  $ cd dolibarr ; touch htdocs/conf/conf.php ; chown www-data htdocs/conf/conf.php
  $ cd dolibarr ; touch htdocs/conf/conf.php ; chown www-data htdocs/conf/conf.php


* Toujours en root, créez le répertoire qui servira aux documents générés ou stockés par Dolibarr (factures pdf, images, ...), et attribuez lui comme propriétaire, l'utilisateur du serveur web (exemple www-data sur Debian, nobody sur une vieille RedHat, Apache sur une Mandriva ou une RedHat récente, ...). Le serveur web doit avoir les droits en écriture dans ce répertoire.
* Always as a root user, create a directory that will serve to save all generated and stocked by Dolibarr (PDf invoices, uploaded images, ...), and attribute to this directory a owner that must be the web server (example www-data on Debian, nobody on old RedHat, apache on Mandriva or recent RedHat, ...). The web server must have write permission into this directory.
  $ mkdir documents ; chown www-data documents
  $ mkdir documents ; chown www-data documents


* Pointez votre navigateur sur la page principale
* Now call your browser to point to the main page
  http://127.0.0.1/dolibarr/htdocs/
  http://127.0.0.1/dolibarr/htdocs/


* Suivez les instructions de l'installation
* Follow instructions of setup steps until end of install process.


* Pour des raisons de sécurité nous vous conseillons, une fois l'installation terminée, de créer un fichier install.lock dans le répertoire d'installation, que seul root doit avoir le droit d'effacer.
* For security reason, we recommend, once setup is finished, to create a file install.lock into Dolibarr installed directory that only root user can delete. This will lock the call of the install process again (you will have to remove it for upgrades)
  $ touch /var/www/dolibarr/install.lock; chmod ug-w /var/www/dolibarr;
  $ touch /var/www/dolibarr/install.lock; chmod ug-w /var/www/dolibarr;


Navigation menu