Nextcloud on AWS - simple EC2 instance with EFS storage, Aurora and Elasticache Redis

Опубликовано: 02 Сентябрь 2026
на канале: Shiunbird
889
12

Today I'm setting up a quick and easy single EC2 instance (VM) installation of Nextcloud in the AWS, but using Aurora and Elasticache. This setup is a good beginning for a HA solution behind an Auto Scaling group.

WARNING: This setup is a proof-of-concept. PHP could see more tweaks. Nothing is encrypted. Optional PHP modules would need to be decided based on your own requirements. I am not responsible for any issues you may face. I'm not covering HTTPS configuration, certificates or Apache hardening options. This is not the configuration I use for my own installation (I host mine at home).


Episode index:
00:08 - Preparing EFS
01:18 - Preparing Redis
02:26 - Preparing Aurora
05:25 - Creating the EC2 instance
08:30 - Mounting the EFS volume
09:45 - PHP configuration
11:17 - Moving Nextcloud where it should
12:18 - Apache configuration
13:22 - First run
15:26 - Configuring nextcloud to use Redis

List of required packages:
wget unzip apache2 libapache2-mod-php mariadb-client php-xml php-cli php-cgi php-mysql php-mbstring php-gd php-curl php-zip

List of optional packages:
php-intl php-bcmath php-gmp php-imagick
I ended up installing the whole imagemagick for SVG support.

Logos are propriety of their respect owners and I believe the usage here constitutes fair use.