Installation - Upgrade: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 28: Line 28:


* Check that you have installed Apache, PHP and a database server (MySQL or PostGreSQL) 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, PHP and a database server (MySQL or PostGreSQL) 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.
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:
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">
<source lang="bash">
To complete...       
mysql   
</source>
</source>
Once in Mysql interface, run the SQL command to modify the root password:
<source lang="sql">
grant all privileges on *.* to root@'localhost' identified by 'dolibarrownerpass' with grant option;     
</source>
Then enter and \q to quit.
To check that connexion with the new couple user/password works, launch the command
<source lang="bash">
mysql -u root -p
</source>
And type your password ''dolibarrownerpass'' then \q to quit if connexion has been successfull.
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)
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">
<source lang="ini">

Navigation menu