- Configuration of self generated SSL certificate
- Append
export ssl_name="my_domain_name"
to ~/.bashrc- Replace "my_domain_name" with the domain name(e.g. lists.fedoraproject.org)
# dnf install openssl
# mkdir ~/certs
# cd ~/certs
# openssl genrsa -des3 -out ${ssl_name}.key 4096
- Recommended: Add passphrase
# openssl req -x509 -new -nodes -key ${ssl_name}.key -sha256 -days 1825 -out ${ssl_name}.pem
# cp ~/certificate-trust-examples/Cert-trust-test-ca.pem /etc/pki/ca-trust/source/anchors/
# update-ca-trust
- References
- Append
- MariaDB/MySQL installation
# dnf install mariadb-server
# systemctl enable --now mariadb
# mysql_secure_installation
mysql -u root -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
quit
- Nextcloud installation
# dnf install nextcloud
- Nextcloud server initialization
# cd /usr/share/nextcloud/
# sudo -u apache php occ maintenance:install --data-dir /var/lib/nextcloud/data/ --database "mysql" --database-name "nextcloud" --database-user "nextcloud" --database-pass "database_password" --admin-user "nextcloud_admin" --admin-pass "nextcloud_admin_password"
- Replace "*" with proper values
- Firewall configuration
# firewall-cmd --list-all-zones | grep active
# firewall-cmd --permanent --zone=public --add-service=http
# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --reload
# systemctl start httpd
# systemctl restart httpd
- PHP memory limit
# nano /etc/php.ini
- memory_limit = 128M --> 512M
- "PHP configuration option output_buffering must be disabled."
# nano /etc/php.ini
- output_buffering = 4096 --> Off
- "This server has no working Internet connection: Multiple endpoints could not be reached."
# setsebool -P httpd_can_network_connect 1
- Reference: https://help.nextcloud.com/t/this-server-has-no-working-internet-connection-it-does-really/67524/2