diff --git a/docs/_source/cloud-libre-is.rst b/docs/_source/cloud-libre-is.rst
index 8ad9e70..f7f28bb 100644
--- a/docs/_source/cloud-libre-is.rst
+++ b/docs/_source/cloud-libre-is.rst
@@ -9,6 +9,12 @@ The site is based on Nextcloud software.
``_
+Nextcloud install documentation:
+
+ ``_
+
+ ``_
+
Firewall
========
@@ -27,11 +33,64 @@ Initial setup of Apache with Certbot.
.. code-block:: sh
sudo su -
- apt install python3-certbot-apache
+ apt install python3-certbot-apache php php-fpm php-gd php-json php-xml \
+ php-curl php-mbstring php-zip php-mysql php-intl php-imap php-bcmath \
+ php-gmp php-apcu php-redis php-imagick imagemagick ffmpeg
echo "cloud.libre.is" > /var/www/html/index.html
certbot -d cloud.libre.is
+ a2enmod rewrite headers env dir mime setenvif ssl proxy_fcgi
+ a2enconf php8.2-fpm
systemctl restart apache2
+Some PHP config...XXX
+
+.. code-block:: sh
+
+ sed -i -e 's/max_execution_time = 30/max_execution_time = 90/g' \
+ /etc/php/8.2/apache2/php.ini
+ sed -i -e 's/max_execution_time = 30/max_execution_time = 90/g' \
+ /etc/php/8.2/cli/php.ini
+ sed -i -e 's/max_execution_time = 30/max_execution_time = 90/g' \
+ /etc/php/8.2/fpm/php.ini
+ sed -i -e 's/memory_limit = 128M/memory_limit = 512M/g' \
+ /etc/php/8.2/apache2/php.ini
+ sed -i -e 's/memory_limit = 128M/memory_limit = 512M/g' \
+ /etc/php/8.2/cli/php.ini
+ sed -i -e 's/memory_limit = 128M/memory_limit = 512M/g' \
+ /etc/php/8.2/fpm/php.ini
+ sed -i -e 's/;opcache.enable=1/opcache.enable=1/g' \
+ /etc/php/8.2/apache2/php.ini
+ sed -i -e 's/;opcache.enable=1/opcache.enable=1/g' \
+ /etc/php/8.2/cli/php.ini
+ sed -i -e 's/;opcache.enable=1/opcache.enable=1/g' \
+ /etc/php/8.2/fpm/php.ini
+ systemctl restart apache2
+
+
+
+
+Database
+========
+Use MariaDB for the databse.
+
+ ``_
+
+.. code-block:: sh
+
+ sudo apt install mariadb-server
+ sudo mariadb-admin password
+ mariadb -uroot -p
+
+Then in the database:
+
+.. code-block:: sql
+
+ CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
+ CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
+ GRANT ALL PRIVILEGES on nextcloud.* to 'username'@'localhost';
+ EXIT
+
+
Nextcloud
=========
@@ -42,6 +101,10 @@ Get Nextcloud source.
wget https://download.nextcloud.com/server/releases/latest.tar.bz2
wget https://download.nextcloud.com/server/releases/latest.tar.bz2.sha256
cat latest.tar.bz2.sha256 ; sha256sum latest.tar.bz2
+ tar xf latest.tar.bz2
+ sudo cp -a nextcloud/* /var/www/html/nextcloud/
+ sudo cp -a nextcloud/.htaccess nextcloud/.user.ini /var/www/html/nextcloud/
+ sudo chown -R www-data:www-data /var/www/html/nextcloud/
Apache More
@@ -99,3 +162,29 @@ Set up Apache for nextcloud.
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
+
+Nextcloud Config
+================
+Config changes:
+
+.. code-block:: cfg
+
+ 'overwrite.cli.url' => 'https://cloud.libre.is/',
+ 'htaccess.RewriteBase' => '/',
+
+Update config:
+
+.. code-block:: sh
+
+ sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
+
+Background jobs:
+
+ ``_
+
+FPM config:
+
+ ``_
+ ``_
+
+
diff --git a/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po b/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po
index 76cf184..74fd086 100644
--- a/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po
+++ b/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Libre Developers Documentation 0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-09-02 07:42-0600\n"
+"POT-Creation-Date: 2024-09-02 08:38-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language: en\n"
@@ -40,34 +40,105 @@ msgstr ""
msgid "``_"
msgstr ""
+#: ../../../_source/cloud-libre-is.rst:12
+msgid "Nextcloud install documentation:"
+msgstr ""
+
#: ../../../_source/cloud-libre-is.rst:14
+msgid ""
+"``_"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:16
+msgid ""
+"``_"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:20
msgid "Firewall"
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:15
+#: ../../../_source/cloud-libre-is.rst:21
msgid "Open ports 80 and 443."
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:24
+#: ../../../_source/cloud-libre-is.rst:30
msgid "Apache"
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:25
+#: ../../../_source/cloud-libre-is.rst:31
msgid "Initial setup of Apache with Certbot."
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:37
+#: ../../../_source/cloud-libre-is.rst:45
+msgid "Some PHP config...XXX"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:73
+msgid "Database"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:74
+msgid "Use MariaDB for the databse."
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:76
+msgid ""
+"``_"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:84
+msgid "Then in the database:"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:96
msgid "Nextcloud"
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:38
+#: ../../../_source/cloud-libre-is.rst:97
msgid "Get Nextcloud source."
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:48
+#: ../../../_source/cloud-libre-is.rst:111
msgid "Apache More"
msgstr ""
-#: ../../../_source/cloud-libre-is.rst:49
+#: ../../../_source/cloud-libre-is.rst:112
msgid "Set up Apache for nextcloud."
msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:167
+msgid "Nextcloud Config"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:168
+msgid "Config changes:"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:175
+msgid "Update config:"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:181
+msgid "Background jobs:"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:183
+msgid ""
+"``_"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:185
+msgid "FPM config:"
+msgstr ""
+
+#: ../../../_source/cloud-libre-is.rst:187
+msgid ""
+"``_ ``_"
+msgstr ""