Before starting Cheel ERP, you must have installed a database management system. Database installation is an operation that is usually performed by an IT professional or a user with the necessary technical knowledge.
If you are working on a network, it is recommended that you install the PostgreSQL database management system on your server. If you are not connected to a local network, you can install PostgreSQL on your computer.
- To download PostgreSQL, open the following page: https://www.postgresql.org/download/
- Select the operating system of the computer where you want to install PostgreSQL (Windows, macOS, Linux, BSD, Solaris). In this documentation, we install PostgreSQL on Windows.
Install PostgreSQL
- Start the installer
- In the Component Selection step, select all components.

- In step 4, you can keep the default port: 5432 , and Cheel will be able to connect automatically. If you change the port, you will need to specify the new port in Cheel's connection settings.

- Complete all installation steps
Configure PostgreSQL
pgAdmin 4 is the PostgreSQL administration utility. It is automatically available if you accepted all components during installation.
- Start pgAdmin 4

- Click on Servers(1), Register, Server

- Enter a server name, for example "Cheel"

- Specify the connection parameters, then save the server.
- Host: if the server is installed on this computer, you can specify localhost
- Database maintenance: you can keep PostgreSQL
- Username: the default username is postgresql
- Password: The password is the one you entered during installation.
- Check the "Save password" option to avoid having to enter it each time

- Click Save to save the server. Once the server is saved, the system displays statistical data.

- Create a new connection (login). Expand the Cheel server, Login , right-click on Login and select the Create option, Login .

- Enter a login name in the General tab and a password in the Definition tab.


- In the Privileges tab, activate all the options.

- In the File menu, under Organizations, click on + to add an Organization.
- In the Organization creation wizard, at the Select database location step, specify the following connection elements:

- Location: Custom Server
- Database engine: PostgreSQL
- Server: <localhost> or <IP address> or <PostgreSQL server name>
- Port: If the port is 5432, it is optional. It is required if you defined a different port during installation or in pgAdmin 4.
Allow access from other computers
By default, PostgreSQL does not allow access from other computers. To access it from other workstations, you must first configure the firewall and allow communication from other machines using a configuration file. After configuration, you must restart the PostgreSQL services.
Open port 5432 in the Windows firewall
- Run wf.msc to start the Windows Firewall
- Create a new Inbound Traffic Rule
- Type: Port
- Protocol: TCP
- Specific local port: 5432 (or the one you defined in the PostgreSQL configuration)
- Allow connection
- When: Estate and Private
- Name the rule (for example, PostgreSQL)
Configure postgresql.conf
- Edit C:\Program Files\PostgreSQL\<version>\data\ postgresql.conf
- Make sure the following line exists:
- listen_addresses = '*'
- Edit C:\Program Files\PostgreSQL\<version>\data\ pg_hba.conf
- Add the following line to the IPv4 zone
- host all all 0.0.0.0/0 md5
(or just the IP address of authorized computers)
Restart PostgreSQL services
- Run services.msc to start the Windows Services console
- Locate the PostSQL services
- Stop and then start the PostSQL services