diff --git a/docs/website/installation.php b/docs/website/installation.php index 9f092ede..840ce065 100644 --- a/docs/website/installation.php +++ b/docs/website/installation.php @@ -90,24 +90,24 @@ order to shorten the path.
On your database server you will need to create a user called -'general' which should not be able to create databases or users, +'davical_app' which should not be able to create databases or users, and which will be granted minimum privileges for the application.
-createuser --no-createdb --no-createrole general +createuser --no-createdb --no-createrole davical_app
PostgreSQL 7.4 named things slightly differently, so you should use something like:
-createuser --no-createdb --no-adduser general +createuser --no-createdb --no-adduser davical_app
You may need to become the 'postgres' user to do this, in which case you will need to be the postgres user to create the database as well. For example (for PostgreSQL 8.x):
-su postgres -c createuser --no-createdb --no-createrole general +su postgres -c createuser --no-createdb --no-createrole davical_app
Once your database has been created, you may also need to edit your pg_hba.conf file in order to grant the application -access to the database as the 'general' user.
+access to the database as the 'davical_app' user.In a simple installation, where you do not have untrusted users on your database server, and your database is on the same @@ -140,20 +140,20 @@ computer as the web server, the following line (near the top of the pg_hba.conf file) should be enough:
-local davical general trust +local davical davical_app trust
This means that anyone on the local computer (including the web application) will have rights to connect to the DAViCal -database as the 'general' user. It will not allow remote access, -or access as any user other than 'general'.
+database as the 'davical_app' user. It will not allow remote access, +or access as any user other than 'davical_app'.If you want to connect to the database over TCP/IP rather than unix sockets, the line in the pg_hba.conf file should look something like:
-host davical general 127.0.0.1/32 trust +host davical davical_app 127.0.0.1/32 trust
If the webserver is on a different machine to the database, that @@ -250,8 +250,8 @@ and is a regular PHP file which sets (or overrides) some specific variables.
// $c->enable_row_linking = true; // $c->default_locale = en_NZ.UTF-8; -// $c->pg_connect[] = 'dbname=davical port=5433 user=general'; - $c->pg_connect[] = 'dbname=davical port=5432 user=general'; +// $c->pg_connect[] = 'dbname=davical port=5433 user=davical_app'; + $c->pg_connect[] = 'dbname=davical port=5432 user=davical_app';