Dear community,
Please guide me in making my attempts to install succeed. I have tried numerous times to install NextCloud and every time my installations end with Internal Server Error.
I am installing on Ubuntu 18.04.06, my PHP is 7.4, MySQL 5.7.37, Apache 2.4.29.
I have disabled default Apache configuration and have only nextcloud.conf enabled.
The following Apache2 mods were enabled: rewrite, headers, env, dir, mime.
This is my nextcloud.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/nextcloud"
<Directory "/var/www/nextcloud/">
Options FollowSymLinks MultiViews
AllowOverride All
#Require all granted
Order allow,deny
Allow from all
#<IfModule mod_dav.c>
#Dav off
#</IfModule>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/nextcloud-error.log
CustomLog ${APACHE_LOG_DIR}/nextcloud-access.log combined
</VirtualHost>
The errors that I can see in /var/www/nextcloud/data/nextcloud.log and which I can’t decode are in the linked file. I could not paste it here as I went above the max allowed number of characters in the post body. NextCloud Log File
So far I have been able to make Nextcloud work in a VM where I use standard PHP mod by adding the sort_buffer_size = 256000000string to the mysqld.cnf file and restarting the database service. After that I was able to access the dashboard and things seem to be working more or less stable. All this worked without installing on a new instance of Ubuntu 20.x, I am still on 18.04.06 with PHP7.4.
I have another VM where I am experimenting with another instance of NC deployed in PHP7.4-FPM mode and here the things look differently - very unstable and dashboard constantly falls off to 503 Service Unavailable error page.
Both NC instances have FQDNs and the VMs are behind HAProxy running on pfSense. The only difference is the PHP implementation used in the virtual machines.
If you can suggest any tweaks that can stabilize PHP-FPM instance please share with me.