# SciELO Publishing Framework

# HOW TO INSTALL MINIO ON ROCKY LINUX 8

## Prerequisites

- An Rocky Linux system.
- A user with root or sudo privileges. This user will be used for installing new packages and make changes system-wide.

## Downloading MinIO on Rocky Linux

<span style="color: #24292f; font-family: -apple-system, 'system-ui', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Use the following command to download a standalone MinIO server on Linux hosts running 64-bit Intel/AMD architectures. Replace </span>`/data`<span style="color: #24292f; font-family: -apple-system, 'system-ui', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> with the path to the drive or directory in which you want MinIO to store data.</span>

```command
dnf -y install wget
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
mkdir /data
mv minio /usr/local/bin
```

## Create default configuration

- This file serves as input to MinIO systemd service. Use this file to add `MINIO_VOLUMES` with the correct paths, `MINIO_OPTS` to add MinIO server options like `certs-dir`, `address`. MinIO credentials can be `MINIO_ROOT_USER` and `MINIO_ROOT_PASSWORD` in this file as well.
- Run the command bellow to create the file with minio parameters.

```command
cat <<EOT >> /etc/default/minio
# Volume to be used for MinIO server.
MINIO_VOLUMES="/data"
# Use if you want to run MinIO on a custom port.
MINIO_OPTS="--address :9199"
# Root user for the server.
MINIO_ROOT_USER=spf-user
# Root secret for the server.
MINIO_ROOT_PASSWORD=spf-Password
# setting access key to access the interface web
MINIO_ACCESS_KEY="minio"
# setting secret key. Avoid using the value default from this tutorial.
MINIO_SECRET_KEY="miniostorage"

EOT
```

## Creating minio user to run the systemd

- creating the user with no shell login and change binary and data directory ownership

```command
useradd -r minio-user -s /sbin/nologin
chown minio-user:minio-user /usr/local/bin/minio
chown minio-user:minio-user /data
```

## Systemd service MinIO on Rocky Linux

- Systemd script is configured to run the binary from /usr/local/bin
- Create minio.service in /etc/systemd/system/

```command
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio

[Service]
WorkingDirectory=/usr/local/

User=minio-user
Group=minio-user

EnvironmentFile=/etc/default/minio
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"

ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES

# Let systemd restart this service always
Restart=always

# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536

# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no

[Install]
WantedBy=multi-user.target

# Built for ${project.name}-${project.version} (${project.name})
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> Enable startup on boot  
</span>

```command
systemctl daemon-reload
systemctl enable minio
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Starting minio</span>

```command
systemctl start minio
```

[![image-1636415567865.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636415567865.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636415567865.png)

## Interface Web

[![image-1636416514806.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636416514806.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636416514806.png)

[![image-1636416589909.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636416589909.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636416589909.png)

## Reference link

[https://www.digitalocean.com/community/tutorials/how-to-set-up-an-object-storage-server-using-minio-on-ubuntu-18-04-pt](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-object-storage-server-using-minio-on-ubuntu-18-04-pt)

[https://github.com/minio/minio](https://github.com/minio/minio)

# HOW TO INSTALL ROCKY LINUX 8



# HOW TO INSTALL MONGODB ON ROCKY LINUX

## Prerequisites

- A fresh server running Rocky Linux 8 with a minimum of 10 GB of free disk space
- A non-root user with sudo privileges configured on the server

## Update the System

Login to the system using root or sudo user depending on your privilege configuration, and update the system using the following command.

```command
sudo dnf update -y
```

## Installing MongoDB

The MongoDB package is not included in the default repositories for Rocky Linux 8 because it is not considered part of the "base" system. Thus, you need to add the repository containing the package before installing MongoDB.

MongoDB comes in two editions the community edition and the enterprise edition. The community edition is free while the enterprise edition offers additional features. This guide is for the community edition.

Run the following command to add the MongoDB Repository on your system.

```
cat > /etc/yum.repos.d/mongodb.repo << 'EOL'
[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
EOL
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Once the repository is enabled, run the following command to install the mongoDB community edition.</span>

```command
dnf update
dnf install -y mongodb-org
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Once the installation is complete, verify the version installed as follows.</span>

```command
mongod --version
```

[![image-1636410940818.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636410940818.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636410940818.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">The MongoDB service doesn't start automatically after installation. You can verify this by running the command as follows.</span>

```command
systemctl status mongod
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">The output should be similar to that below:</span>

[![image-1636411003039.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636411003039.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636411003039.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Since the service has not started, start it manually by running the following command.</span>

```command
systemctl start mongod
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">To enable MongoDB to automatically start on boot time, run the following command.</span>

```command
systemctl enable mongod
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">At this point, MongoDB has been installed and configured on the server. Verify the status of MongoDB service as follows.</span>

```command
systemctl status mongod
```

[![image-1636411097194.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636411097194.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636411097194.png)

# HOW TO INSTALL POSTGRESQL ON ROCKY LINUX

## Prerequisites

- An Rocky Linux system.
- A user with root or sudo privileges. This user will be used for installing new packages and make changes system-wide.

## Installing PostgreSQL on Rocky Linux

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">List out the available streams for the `postgresql` module using the `dnf` command:</span>

```
dnf module list postgresql
```

```
Output

[root@node02-postgresql ~]# dnf module list postgresql
Last metadata expiration check: 0:16:48 ago on Fri 07 Jun 2024 10:51:45 AM -03.
Rocky Linux 8 - AppStream
Name                           Stream                     Profiles                               Summary                                               
postgresql                     9.6                        client, server [d]                     PostgreSQL server and client module                   
postgresql                     10 [d]                     client, server [d]                     PostgreSQL server and client module                   
postgresql                     12                         client, server [d]                     PostgreSQL server and client module                   
postgresql                     13                         client, server [d]                     PostgreSQL server and client module                   
postgresql                     15                         client, server [d]                     PostgreSQL server and client module                   
postgresql                     16                         client, server [d]                     PostgreSQL server and client module                   

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
```

You can see in this output that there are four versions of PostgreSQL available from the **AppStream** repository: `9.6`, `10`, `12`, and `13`. The stream that provides Postgres version 10 is the default, as indicated by the `[d]` following it. To install that version, you could just run `sudo dnf install postgresql-server` and move on to the next step. However, even though version 10 is still maintained, this tutorial will install Postgres version 16.

To install PostgreSQL version 16, you must enable that version’s module stream. When you enable a module stream, you override the default stream and make all of the packages related to the enabled stream available on the system. Note that only one stream of any given module can be enabled on a system at the same time.

To enable the module stream for Postgres version 16, run the following command:

```
sudo dnf module enable postgresql:16
```

When prompted, press `y` and then `ENTER` to confirm that you want to enable the stream:

```
Output

[root@node02-postgresql ~]# dnf module enable postgresql:16
Last metadata expiration check: 0:16:59 ago on Fri 07 Jun 2024 10:51:45 AM -03.
Dependencies resolved.
=======================================================================================================================================================
 Package                             Architecture                       Version                              Repository                           Size
=======================================================================================================================================================
Enabling module streams:
 postgresql                                                             16                                                                            

Transaction Summary
=======================================================================================================================================================

Is this ok [y/N]: y
Complete!
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> Install the latest version of PostgreSQL from the repository using the dnf command below.</span>

```command
dnf install postgresql-server.x86_64
```

[![image-1636411419853.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636411419853.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636411419853.png)

## PostgreSQL Database Initialization

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Next, after the PostgreSQL installation is complete, you must initialize the PostgreSQL configuration and then start and enable the PostgreSQL service.</span>

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">1. Execute the following command to initialize the PostgreSQL database configuration.</span>

```command
postgresql-setup --initdb --unit postgresql
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">2. After that, start and enable the PostgreSQL service using the command below.</span>

```command
sudo systemctl enable postgresql
sudo systemctl start postgresql
```

Now the PostgreSQL service is active and running, and it will run automatically on every boot.

3\. Now execute the command below to verify the PostgreSQL service.

```command
systemctl status postgresql
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">If your PostgreSQL service is running, you will see the green output such as </span>**"active(running)"**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> as below. Otherwise, you will see the red output such as "</span>**failed**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">" following by the error message logs.</span>

[![image-1636411733930.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636411733930.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636411733930.png)

## Securing PostgreSQL Deployment

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">During the installation, PostgreSQL will create a new system user and database user name as "</span>**postgres**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">". And for this stage, you will be setting up a new password for the "</span>**postgres**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">" user, both for the </span>**system user**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> and </span>**database user**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">.</span>  
  
<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">1. Change the password for default system user "</span>*postgres*<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">" using the following command.</span>

```command
passwd postgres
```

Now type the new password for the system user "*postgres*".

2\. Next, to change the password for the "*postgres*" database user, you must log in to the PostgreSQL shell.

First, log in as a system user "*postgres*" using the following command.

```command
su - postgres
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now login to the PostgreSQL shell using the psql command below.</span>

```command
psql
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Execute the following query to create a new password for the default "</span>*postgres*<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">" database user.</span>

```command
ALTER USER postgres WITH PASSWORD 'strongpostgrespassword';
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Change the string 'strongpostgrespassword' to your own password. Now type exit and press "</span>**Ctrl+d**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">" to exit and log out from the '</span>*postgres*<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">' user shell.</span>

[![image-1636412051559.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412051559.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412051559.png)

## Change Authentication Method

By default, local PostgreSQL users will connect to the PostgreSQL shell using the 'peer' method. The peer authentication method will work only for local connections. In the development environment, you can use this type of authentication, but for production, consider using the password-based authentication method.

For this stage, you will learn how to change the default peer authentication method to password authentication using '**md5**'.<span class="ezoic-adpicker-ad" id="bkmrk--9"></span>

1\. First, log in to the PostgreSQL shell using the following command.

```command
sudo -u postgres psql
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now execute the following query to check the location of the PostgreSQL configuration '</span>**pg\_hba.conf**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">'.</span>

```command
SHOW hba_file;
SHOW password_encryption;
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">You will see the output as below.</span>

[![image-1636412188727.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412188727.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412188727.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">You will notice the PostgreSQL configuration "pg\_hba.conf" are located at the '</span>**/var/lib/pgsql/data**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">' directory, and the default password encryption for PostgreSQL on RHEL based operating system is '</span>**md5**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">'.</span>

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now type '\\q' to exit and quit the PostgreSQL shell.</span>

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">2. Next, change the working directory to '**/var/lib/pgsql/data**' and edit the configuration '**pg\_hba.conf**' using nano editor.</span>

```command
cd /var/lib/pgsql/data/
vi pg_hba.conf
```

[![image-1636412445157.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412445157.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412445157.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">At the bottom of the line, change the local authentication method to '</span>**md5**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">' as below.</span>

[![image-1636412520423.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412520423.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412520423.png)

Now press '**ESC**', type '**:wq**', and press "**Enter**" to save and exit.

Using this configuration, you will be prompted for the password to log in to the PostgreSQL shell.<span class="ezoic-adpicker-ad" id="bkmrk--10"></span>

3\. Next, apply the new configuration by restarting the PostgreSQL service using the following command.

```command
systemctl restart postgresql
```

Now every time you want to access the PostgreSQL shell, you must type the password for authentication.

4\. To make sure of the password authentication configuration, log in to the PostgreSQL shell using the following command.

```command
su - postgres
psql
```

Now you will be asked for a password for the default user '*postgres*'.

Type the password for the '*postgres*' database user and press '**Enter**'. If your password is correct, you will see the PostgreSQL shell as follows. Otherwise, you will see the '**FATAL**' error because the password is incorrect.

[![image-1636412705058.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412705058.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412705058.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Additionally, you can use the one-line command to log in to the PostgreSQL shell as below.</span>

```command
# Log in as default "postgres" user
sudo -u postgres psql

# Log in as another user
sudo -u postgres psql -U username
```

## Creating New User and Database for your Application

At this stage, you will learn how to create a new user and database on PostgreSQL.

1\. Log in to the PostgreSQL shell by executing the command below.

```command
sudo -u postgres psql
```

Now type the password for PostgreSQL user '**postgres**'.

2\. Run the PostgreSQL query below to create a new user 'johndoe' with the password 'johndoestrongpassword' and give the user privileges for creating a new database and role.

```command
CREATE USER spf WITH 
CREATEDB
CREATEROLE
PASSWORD 'spfstrongpassword';
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">After that, verify the new user using the following query.</span>

```command
\du
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now you will see the new user 'spf' with the list of roles '</span>**Create role**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">' and '</span>**Create DB**<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">' as below.</span>

[![image-1636412942826.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636412942826.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636412942826.png)

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">3. Next, to create a new user database on PostgreSQL, run the following query.</span>

```command
CREATE DATABASE spf OWNER spf;
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now verify the new database using the following query.</span>

```command
\l
```

<span style="color: #474b51; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">And you will see the new database 'spf' with the owner 'spf' as the screenshot below.</span>

[![image-1636413026643.png](https://documentacao.scielo.org/uploads/images/gallery/2021-11/scaled-1680-/image-1636413026643.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-11/image-1636413026643.png)

## Reference link

[https://www.howtoforge.com/how-to-install-postgresql-on-rocky-linux/](https://www.howtoforge.com/how-to-install-postgresql-on-rocky-linux/)

[https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-rocky-linux-8](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-rocky-linux-8)

# HOW TO INSTALL SCIELO OPAC ON ROCKY LINUX

## Prerequisites

- An Rocky Linux system.
- A user with root or sudo privileges. This user will be used for installing new packages and make changes system-wide.
- Python 3.x (earlier version) and git command

## Getting the last version

- Dowloading the [newest release,](https://github.com/scieloorg/opac/releases) uncompress and move to the directory /usr/local/opac

```command
wget https://github.com/scieloorg/opac/archive/refs/tags/v3.4.51.tar.gz
tar -zxvf v3.4.51.tar.gz 
mv opac-3.4.51 /usr/local/opac
```

## Installing OPAC

- Create python environment and install using pip

```command
# Installing git command
dnf install git

cd /usr/local/opac
# Creating the environment
python3 -m venv .venv

# Activating the environment
source .venv/bin/activate

# Installing
pip install -U pip & pip install -r requirements.txt
```

## Configuring OPAC

- Copy the variable file default.py to local\_settings.py

```command
cd /usr/local/opac
cp opac/webapp/config/default.py  opac/webapp/config/local_settings.py
```

<table id="bkmrk-variable-de-entorno-"><tbody><tr><td style="width: 201px;">**Variable de entorno**

</td><td style="width: 375px;">**Descripción**

</td><td style="width: 233px;">**Valor predeterminado**

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_DEBUG\_MODE</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Habilita/deshabilita el modo DEBUG</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_CONFIG</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Archivo de configuración de la aplicación (consulte las instrucciones a continuación)</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_COLLECTION</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Acrónimo de la colección</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">mex</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MONGODB\_NAME</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Nombre de la base de datos MongoDB</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">opac</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MONGODB\_HOST</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Host do MongoDB</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">localhost</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MONGODB\_PORT</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Puerto de host MongoDB</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">27017</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_DATABASE\_DIR</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Directorio de almacenamiento base de SQLite</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">/tmp</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_DATABASE\_FILE</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Nombre de archivo SQLite</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Opac.sqlite</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_DATABASE\_URI</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">URI da base SQLite</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">sqlite:////tmp/opac.sqlite</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MEDIA\_ROOT</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Ruta absoluta de la carpeta que almacenará las imágenes registradas por los usuarios a través de la interfaz de administración</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">&lt;ruta&gt;/media</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MEDIA\_URL</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">RUTA DE ACCESO DE LA URL para servir las imágenes</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">/media</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MAIL\_SERVER</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Host del servidor de correo</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">localhost</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_MAIL\_PORT</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Puerto de host del servidor de correo</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">1025</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SECRET\_KEY</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Clave necesaria para la seguridad de los formularios de solicitud (consulte las instrucciones a continuación)</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SSM\_SCHEME</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Protocolo de conexión del almacén de objetos</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">https</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SSM\_DOMAIN</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Host do Object Store</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">ssm.scielo.org</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SSM\_PORT</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Puerto de host de almacén de objetos</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">80</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SSM\_XML\_URL\_REWRITE</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">¿Cambiará el esquema de URL + autoridad registrada en el artículo? Si es true, fuerce la búsqueda del artículo en la url 'OPAC\_SSM\_SCHEME + '://' + OPAC\_SSM\_DOMAIN + ':' + OPAC\_SSM\_PORT'. De lo contrario, carga la dirección URL registrada en el artículo</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">True</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_CACHE\_ENABLED</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva la cache con Redis</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">True</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_CACHE\_DEFAULT\_TIMEOUT</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Duración de los objetos de la memoria caché en segundos</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">3600</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_CACHE\_REDIS\_HOST</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Host de Redis para cache</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">cache en redis</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_USE\_METRICS</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva la integración con SciELO Analytics</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_METRICS\_URL</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">URL de SciELO Analytics</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">http://analytics.scielo.org</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_USE\_DIMENSIONS</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva la integración de dimensiones</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_DIMENSIONS\_METRICS\_URL</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Dirección URL de dimensiones</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">https://badge.dimensions.ai/details/doi</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_USE\_PLUMX</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva la integración con PlumX</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_PLUMX\_METRICS\_URL</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">URL de PlumX</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">https://plu.mx/scielo/a</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_USE\_ALTMETRIC</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva la integración altmetric</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_ALTMETRIC\_METRICS\_URL</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Dirección URL de Altmetric</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">https://www.altmetric.com/details.php</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_AUDIT\_LOG\_NOTIFICATION\_ENABLED</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Activa/desactiva las notificaciones de informes de auditoría</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">True</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_AUDIT\_LOG\_NOTIFICATION\_RECIPIENTS</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Lista de correos electrónicos que deben recibir el informe de auditoría, separados por comas (",")</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Lista vacía (ninguna)</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SERVER\_NAME</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Nombre del servidor/IP</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Vacío (ninguno)</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_COOKIE\_DOMAIN</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Dominio para cookie de sesión. Configura SESSION\_COOKIE\_DOMAIN</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Valor del OPAC\_SERVER\_NAME</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_COOKIE\_HTTPONLY</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Habilita o deshabilita la cookie de sesión solo en HTTP. Configura SESSION\_COOKIE\_NAME</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">True</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_COOKIE\_NAME</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Nombre de la cookie de sesión. Configura SESSION\_COOKIE\_NAME</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">opac\_session</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_COOKIE\_PATH</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Ruta de acceso a la cookie de sesión. Configura SESSION\_COOKIE\_PATH</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Ninguno, que es la raíz de la aplicación ("/")</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_COOKIE\_SECURE</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Establece si la cookie de sesión debe marcarse como segura. Conjuntos SESSION\_COOKIE\_SECURE</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_SESSION\_REFRESH\_EACH\_REQUEST</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Envío de la cookie en cada solicitud. Conjuntos SESSION\_REFRESH\_EACH\_REQUEST</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">False</span>

</td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_TWITTER\_ACCESS\_TOKEN</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Token de acceso de la cuenta de twitter</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_TWITTER\_ACCESS\_TOKEN\_SECRET</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Secreto de token de acceso desde la cuenta de Twitter</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_TWITTER\_CONSUMER\_KEY</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Cuenta de Twitter de clave de consumidor</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_TWITTER\_CONSUMER\_SECRET</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Secreto del consumidor de la cuenta de Twitter</span>

</td><td style="width: 233px;"> </td></tr><tr><td style="width: 201px;"><span style="font-weight: 400;">OPAC\_TWITTER\_SCREEN\_NAME</span>

</td><td style="width: 375px;"><span style="font-weight: 400;">Nombre de pantalla de la cuenta de Twitter</span>

</td><td style="width: 233px;"><span style="font-weight: 400;">Red SciELO</span>

</td></tr></tbody></table>