Logo       PBase-Foundation

Nextcloud

Here is how to install the Nextcloud PHP based application. Either PostgreSQL or MySQL 8.0 community can be used.
After running the first two preconfig packages be sure to modify the configuration files in the /usr/local/pbase-data/admin-only/module-config.d/ directory. Specifically, the pbase_lets_encrypt.json must be changed to hold your site administrator's email address.

Nextcloud with Postgres

To install Nextcloud with a Postgres database for storage
Use these steps:

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-postgres-nextcloud
yum -y install pbase-postgres
yum -y install pbase-nextcloud
yum -y install pbase-lets-encrypt

Extras

You should secure your server with pbase-firewall-enable, and lock down SSH access with the pbase-ssh-fail2ban package.

yum -y install pbase-ssh-fail2ban
yum -y install pbase-firewall-enable

Nextcloud with MySQL

To install Nextcloud with a MySQL 8.0 community database for storage
on EL/CentOS 8
Use these steps:

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-mysql-nextcloud
yum -y --disablerepo=AppStream install mysql-community-server
yum -y install pbase-mysql80community
yum -y install pbase-nextcloud

on EL/CentOS 6 and 7
Use these steps:

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-mysql-nextcloud
yum -y install pbase-mysql80community
yum -y install pbase-nextcloud

Configuration Options - Postgres

The pbase-preconfig-postgres-nextcloud rpm creates a default configuration file:

{
"pbase_postgres": [
{
"default": {
"hostName": "localhost",
"port": "5432",
"startService": true,
"enableRemoteAccess": true,
"install": true,
"database": [
{
"name": "nextcloud",
"user": "admin",
"password": "shomeddata"
}
]
}
}
]
}

Configuration Options - MySQL 8.0 Community

The pbase-preconfig-mysql-nextcloud rpm creates a default configuration file:

{
"pbase_mysql80community": [
{
"default": {
"hostName": "localhost",
"rootPassword": "SHOmeddata",
"port": "3306",
"characterSet": "utf8mb4",
"startService": true,
"install": true,
"database": [
{
"name": "nextcloud",
"user": "admin",
"password": "shomeddata"
}
]
}
}
]
}