Changes done to the postgresql install

This commit is contained in:
Jean Pierre Huart 2015-12-14 14:31:19 +01:00
parent 2c08bf2c6c
commit 61052639a8
2 changed files with 15 additions and 16 deletions

@ -1 +0,0 @@
Subproject commit 52f7bd2216cc22ef52494f346c5643bb2a74513f

View File

@ -12,12 +12,14 @@ Install PostgresSql server
########################## ##########################
On a linux environment, installing Postgresql server is very easy. On a linux environment, installing Postgresql server is very easy.
Here follows the instructions for a debian based distribution (as Ubuntu). Here follows the instructions for a debian based distribution (as Ubuntu) using the distribution repositories.
To have the latest version follow the instructions of the `Postgresql wiki`_.
.. code-block:: bash .. code-block:: bash
sudo apt-get update sudo apt-get update
sudo apt-get install postgresql sudo apt-get install postgresql
Having a look at the install messages, you will guess quickly which is the version installed. Having a look at the install messages, you will guess quickly which is the version installed.
Anyway you can check this with the following code: Anyway you can check this with the following code:
@ -50,18 +52,13 @@ Here follows as an example the instructions that has been used on Ubuntu 14.04 d
Feel free to customize it following your preferences, but do not forget to enable the `unaccent` extension on your database. Feel free to customize it following your preferences, but do not forget to enable the `unaccent` extension on your database.
.. code-block:: bash .. code-block:: bash
sudo su sudo su
su postgres su postgres
psql # At the prompt of the following instruction, I have typed 'my_terrible_secret' as password
CREATE USER chill_user WITH PASSWORD 'my_terrible_secret' CREATEDB; createuser --pwprompt chill_user
CREATE DATABASE chill_db OWNER chill_user LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8'; createdb -O chill_user chill_db
\q psql -d chill_db -c "CREATE EXTENSION unaccent;"
psql -d chill_db
CREATE EXTENSION unaccent;
\q
exit
exit
When you will use composer to install Chill, you will have to provide some database information. When you will use composer to install Chill, you will have to provide some database information.
If you follow this tutorial these will be: If you follow this tutorial these will be:
@ -71,4 +68,7 @@ If you follow this tutorial these will be:
- database_name: chill_db - database_name: chill_db
- database_user: chill_user - database_user: chill_user
- database_password: my_terrible_secret - database_password: my_terrible_secret
- locale: en - locale: en
.. _Postgresql wiki: https://wiki.postgresql.org/wiki/Apt