Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v73
  • v74
  • v73
  • v72
Login
  • Getting Started
  • Administrator documentation
  • Functional characteristics
  • Technology description
  • System requirements
  • Admin Panel
  • Platform installation
  • Platform configuration
    • Configuration file
    • Domain settings
    • LDAP access configuration
    • Sending Email via SMTP relay
    • Pixel and push domain configuration
    • Cluster and Replication Setup
    • System notifications configuration
    • Processes UNIX sockets configuration
    • HTTPS Configuration
    • External SQL database integration
    • Adding sender IP addresses
    • Deduplication request settings
    • PostgreSQL database for account data
    • Proxy server settings
    • Getting HTTP service statuses
    • Configuration MongoDB logs rotation
    • Configuration of system constants and directories
  • Platform maintenance
  • Custom channels guide
  • Extra
  • Processing HTTP/HTTPS traffic
  • Administrator API
This is documentation for Altcraft Platform v73. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Platform configuration
  • PostgreSQL database for account data
Documentation for version v73

PostgreSQL database for account data

PostgreSQL installation​

You can find PostgreSQL installation instruction for Ubuntu here: https://www.postgresql.org/download/linux/ubuntu/

info

PostgreSQL must be connected to enable the Market module. For correct operation, PostgreSQL version 16.1 or higher is required.

User and database configuration​

caution

A standard variant with local database installation is described. In this example we use altcraft as the username, but you can specify any arbitrary name.

After you have PostgreSQL installed, make the following preparations:

  • Re-login as the newly created user postgres:
su - postgres
  • Run the PostgreSQL command shell:
psql
  • Create a user through which we will connect to PostgreSQL:
CREATE USER altcraft WITH PASSWORD 'myPassword';
  • Check if the user has been created:
\du
  • Give permission to create the database to the user:
ALTER USER altcraft CREATEDB;
  • Create the database:
CREATE DATABASE ak_init_db OWNER altcraft;
  • Grant the user database rights:
GRANT ALL PRIVILEGES ON DATABASE ak_init_db TO altcraft;
  • Add the following lines to the end of the /etc/postgresql/<version_postgresql>/main/pg_hba.conf file:
# TYPE  DATABASE        USER            ADDRESS                 METHOD
host all altcraft localhost password

Then go to the administrative panel for further customization.

Platform settings​

In the Administrative panel, go to the "Setup" → "Service config" section. It is necessary to create a new configuration for connecting to the database; to do this, click the "Create" button.

Select the connection type "Account DB Postgres Configuration". Specify the host, port and credentials of the user created in PostgreSQL. To test the connection, click "Test connection":

Add the created configuration to your account. To do this, edit your account and select the configuration in the "Service configuration" item:

info

You can learn more about setting up connectors to databases here.

Last updated on Feb 12, 2025
Previous
Deduplication request settings
Next
Proxy server settings
  • PostgreSQL installation
  • User and database configuration
  • Platform settings
© 2015 - 2025 Altcraft, LLC. All rights reserved.