Hi,
(Sorry for my mistakes, I’m doing my best )
Long Story Short :
Nextcloud really slow with PHP7 and Apache2 when outside of the LAN, but other services are working fine.
I just installed a Nextckoud server on an ARM device (Odroid XU4) with a Plex server. It’s like a Raspberry Pi 3 but almost 3 times faster, with 1G ethernet, 2G Ram et 8 cores 2Ghz.
I disabled the Plex server for my tests, so it has nothing to do with it.
When I stream a video with Plex, I can watch a FullHd video easily.
In LAN, I can also download files on my Nextcloud server, with the Web page, at almost 12Mo/s
But as soon as I use another connection, than I can’t download anything (sometimes 200k/s for 3s than nothing for 10s). I asked some friends and they have the same troubles.
The CPU is really fine (5%) and I have plenty of storage and Ram.
The cloud is working fine when I use it on LAN, download and upload rates are great and I dont have any troubles.
My upload speed is not awesome, but I can stream some Plex so I don’t think this is the bottleneck.
For my configuration :
Php7
Apache2
Nextcloud conf file
$CONFIG = array (
‘trusted_domains’ =>
array (
0 => ‘192.168.0.17’,
1 => ‘xx.xx.xx.xx’,
2 => ‘xx.xx.xx.xx’,
),
‘datadirectory’ => ‘/home/odroid/Nextcloud’,
‘overwrite.cli.url’ => ‘http://192.168.0.17/nextcloud’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.3.3’,
‘dbname’ => ‘xxx’,
‘dbhost’ => ‘xxxx’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘xxx’,
‘dbpassword’ => ‘xxx’,
‘installed’ => true,
‘auth.bruteforce.protection.enabled’ => false,
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
);
Php.ini
I just enabled the opcache and I added some memory for the upload
I have another instance of a nextcloud server that runs well (on php5 with nginx) for my work, and I wanted to try that configuration.
It runs on HTTP, I will enable HTTPS later.