Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
c32ed779
Commit
c32ed779
authored
Aug 01, 2005
by
mozilla%colinogilvie.co.uk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 297475: Add docs about how to install and configure Bugzilla using PostgreSQL
Patch by Colin Ogilvie <colin.ogilvie@gmail.com> (with info from mkanat) r=mkanat
parent
257634d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
3 deletions
+77
-3
installation.xml
docs/xml/installation.xml
+77
-3
No files found.
docs/xml/installation.xml
View file @
c32ed779
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- $Id: installation.xml,v 1.10
1 2005/07/25 12:50:49
mozilla%colinogilvie.co.uk Exp $ -->
<!-- $Id: installation.xml,v 1.10
2 2005/07/31 23:35:40
mozilla%colinogilvie.co.uk Exp $ -->
<chapter
id=
"installing-bugzilla"
>
<chapter
id=
"installing-bugzilla"
>
<title>
Installing Bugzilla
</title>
<title>
Installing Bugzilla
</title>
...
@@ -611,6 +611,12 @@
...
@@ -611,6 +611,12 @@
</para>
</para>
</section>
</section>
<section
id=
"database-engine"
>
<title>
Database Server
</title>
<para>
This section deals with configuring your database server for use
with Bugzilla. Currently
<xref
linkend=
"mysql"
/>
and
<xref
linkend=
"postgresql"
/>
are available.
</para>
<section
id=
"mysql"
>
<section
id=
"mysql"
>
<title>
MySQL
</title>
<title>
MySQL
</title>
...
@@ -662,8 +668,6 @@
...
@@ -662,8 +668,6 @@
</note>
</note>
</section>
</section>
<section>
<section>
<title>
Allow small words in full-text indexes
</title>
<title>
Allow small words in full-text indexes
</title>
...
@@ -780,6 +784,76 @@
...
@@ -780,6 +784,76 @@
</section>
</section>
</section>
</section>
<section
id=
"postgresql"
>
<title>
PostgreSQL
</title>
<note>
<para>
Note if you are using PostgreSQL 8.0.1 or higher, then you
will require to use a version of DBD::Pg which is equal to or
greater than version 1.41
</para>
</note>
<section>
<title>
Add a User to PostgreSQL
</title>
<para>
You need to add a new user to PostgreSQL for the Bugzilla
application to use when accessing the database. The following instructions
assume the defaults in
<filename>
localconfig
</filename>
; if you
changed those, you need to modify the commands appropriately. You will
need the
<replaceable>
$db_pass
</replaceable>
password you
set in
<filename>
localconfig
</filename>
in
<xref
linkend=
"localconfig"
/>
.
</para>
<para>
On most systems, to create the user in PostgreSQL, you will need to
login as the root user, and then
</para>
<screen>
<prompt>
bash#
</prompt>
su - postgres
</screen>
<para>
As the postgres user, you then need to create a new user:
</para>
<screen>
<prompt>
bash$
</prompt>
createuser -U postgres -dAP bugs
</screen>
<para>
When asked for a password, provide the password which will be set as
<replaceable>
$db_pass
</replaceable>
in
<filename>
localconfig
</filename>
.
The created user will have the ability to create databases and will not be
able to create new users.
</para>
</section>
<section>
<title>
Configure PostgreSQL
</title>
<para>
Now, you will need to edit
<filename>
pg_hba.conf
</filename>
which is
usually located in
<filename>
/var/lib/pgsql/data/
</filename>
. In this file,
you will need to add a new line to it as follows:
</para>
<computeroutput>
host all bugs 127.0.0.1 255.255.255.255 md5
</computeroutput>
<para>
This means that for TCP/IP (host) connections, allow connections from
'127.0.0.1' to 'all' databases on this server from the 'bugs' user, and use
password authentication (md5) for that user.
</para>
<para>
If you are using
<emphasis
role=
"bold"
>
versions of PostgreSQL
before version 8
</emphasis>
, you may also need to edit
<filename>
postgresql.conf
</filename>
, also usually found in the
<filename>
/var/lib/pgsql/data/
</filename>
folder.
You will need to make a single line change, changing
</para>
<computeroutput>
# tcpip_socket = false
</computeroutput>
<para>
to
</para>
<computeroutput>
tcpip_socket = true
</computeroutput>
<para>
Now, you will need to restart PostgreSQL, but you will need to fully
stop and start the server rather than just restarting due to the possibility
of a change to
<filename>
postgresql.conf
</filename>
. After the server has
restarted, you will need to edit
<filename>
localconfig
</filename>
, finding
the
<literal>
$db_driver
</literal>
variable and setting it to
<literal>
Pg
</literal>
and changing the password in
<literal>
$db_pass
</literal>
to the one you picked previously, while setting up the account.
</para>
</section>
</section>
</section>
<section>
<section>
<title>
checksetup.pl
</title>
<title>
checksetup.pl
</title>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment