Hello, merci pour vos réponses. J’avais justement suivi le wiki, et choisi la méthode d’install en .deb qui semblait dire que ça ne nécessiter ni d’installer mysql, ou plutot que le paquet s’en chargeait, ni s’y connaître en système:
Ce package vous permet d’installer Dolibarr sous Ubuntu ou Debian (ou dérivé) avec tous ces prérequis (Apache, Mysql, PHP) s’ils ne sont pas déjà installés et ce sans connaissances techniques particulières
je me suis donc penché sur mariadb, essayé de l’installer: ce qui semble unh succés:
● mariadb.service - MariaDB 10.1.48 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset:
Active: active (running) since Sun 2023-01-15 17:23:42 CET; 2min 11s ago
Docs: man:mysqld(8)
httttps://mariadb.com/kb/en/library/systemd/
Main PID: 6005 (mysqld)
Status: « Taking your SQL requests now… »
Tasks: 27 (limit: 4915)
CGroup: /system.slice/mariadb.service
└─6005 /usr/sbin/mysqld
néanmoins, sur dolibarr:>
Access denied for user ‹ root ›@‹ localhost ›
La connexion à la base de données a échoué: les paramètres de l’hôte ou du super utilisateur doivent être erronés.
Revenez en arrière et vérifiez / corrigez les paramètres.
peut-être un défaut de user/pwd nécessaire à DOlibarr pour utiliser mariadb?
je dois bien avoué que je n’ai pas trop su quoi réponse au moment de la config:
nicolas@nicolas-HP-ZBook-15u-G6:~$ sudo mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we’ll need the current
password for the root user. If you’ve just installed MariaDB, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] n
… skipping.
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] n
… skipping.
Normally, root should only be allowed to connect from ‹ localhost ›. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
… skipping.
By default, MariaDB comes with a database named ‹ test › that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n]
- Dropping test database…
… Success!
- Removing privileges on test database…
… Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n]
… Success!
Cleaning up…
All done! If you’ve completed all of the above steps, your MariaDB
installation should now be secure.
mais quand je lance dolibarr:>
Error: Dolibarr config file content seems to be not correctly defined.
Please run dolibarr setup by calling page /install.
et alors si je regarde install dans dolibarr:
Version de PHP 7.2.24-0ubuntu0
Ce PHP prend en charge les variables POST et GET.
Ce PHP prend en charge les sessions.
Ce PHP prend en charge les fonctions MBString.
Ce PHP prend en charge les fonctions JSON.
Ce PHP prend en charge les fonctions GD.
Ce PHP prend en charge les fonctions Curl.
Ce PHP prend en charge les fonctions Calendar.
Ce PHP prend en charge les fonctions Xml.
Ce PHP prend en charge les fonctions UTF8.
Votre installation PHP ne prend pas en charge les fonctions Intl.
Votre installation PHP ne prend pas en charge les fonctions IMAP.
Ce PHP prend en charge les fonctions ZIP.
Votre mémoire maximum de session PHP est définie à 128M. Ceci devrait être suffisant.
Le fichier de configuration /etc/dolibarr/conf.php a pu être créé.
Le fichier /etc/dolibarr/conf.php est modifiable.