docs: Need to start postgres on rpm distros
authorJim Campbell <jcampbell@gnome.org>
Tue, 19 May 2015 02:12:37 +0000 (21:12 -0500)
committerJim Campbell <jcampbell@gnome.org>
Tue, 19 May 2015 02:12:37 +0000 (21:12 -0500)
Need to enable / start postgres database on rpm-based distros
before you create the postgres mediagoblin user and database.
If you don't start the database server, you can't create a
database user or database.

docs/source/siteadmin/deploying.rst

index 814316b1e3736cba4b5bf16864ad0ad95295f559..fc8f021c32bc4af2edf7432258325f427100f022 100644 (file)
@@ -98,11 +98,13 @@ These are the packages needed for an RPM-based system::
 
     sudo yum install postgresql postgresql-server python-psycopg2
 
-An rpm-based system also requires that you initialize the PostgresSQL database
-with this command. The following command is not needed on a Debian-based
-platform, however::
+An rpm-based system also requires that you initialize and start the
+PostgresSQL database with a few commands. The following commands are
+not needed on a Debian-based platform, however::
 
     sudo /usr/bin/postgresql-setup initdb
+    sudo systemctl enable postgresql
+    sudo systemctl start postgresql
 
 The installation process will create a new *system* user named ``postgres``,
 which will have privilegies sufficient to manage the database. We will create a