31,026
edits
| Line 27: | Line 27: | ||
You can follow this tutorial for any Dolibarr version >= 2.0.0 | You can follow this tutorial for any Dolibarr version >= 2.0.0 | ||
* Check that you have installed Apache, Mysql and PHP correctly (check list of installed packged on your server by using the package manager of your distribution). If not install them (use last recent version). | * Check that you have installed Apache, Mysql and PHP correctly (check list of installed packged on your server by using the package manager of your distribution). If not, install them (use last recent version). | ||
Note: The installer can create optionnaly the database if it does not exists yet, but in this case, you must know your database admin user and password. | |||
For Linux users, if you have just installed MySQL database, the admin user is''' root'''. You must run the following command to initialize its password: | |||
<source lang="ini"> | |||
To complete... | |||
</source> | |||
For Linux users, if you have just installed PostgresSQL, you must run the following command to initialize an admin user and password. For this, add the following line in file '''/etc/postgresql/x.x/main/pg_hba.conf''' (replace x.x with your postgres version) | |||
<source lang="ini"> | |||
local all dolibarrowner md5 | |||
</source> | |||
Then launch commands from a root shell | |||
<source lang="bash"> | |||
sudo -s -u postgres | |||
createuser dolibarrowner | |||
psql -d template1 -c "alter user dolibarrowner with password dolibarrownerpass" | |||
exit | |||
sudo /etc/init.d/postgresql-8.3 restart | |||
</source> | |||
You can test a connection with this user with command | |||
<source lang="bash"> | |||
psql -d postgres -U dolibarrowner -W | |||
</source> | |||
And type your ''dolibarrownerpass'' as password and \q to quit if connection is ok. | |||
* Go into the directory where to install Dolibarr (the web root directory defined for your web server) | * Go into the directory where to install Dolibarr (the web root directory defined for your web server) | ||