Scan for Files
sudo chmod
777 -R /usr/share/nginx/nextcloud/Uploads
sudo -u
www-data php /usr/share/nginx/nextcloud/occ files:scan –-all
Add
Certificates into vhosts
sudo mkdir /etc/ssl/certs
sudo openssl dhparam -out
/etc/ssl/certs/dhparam.pem 4096
Add to config file
ssl_dhparam
/etc/ssl/certs/dhparam.pem;
ssl_certificate /etc/letsencrypt/live/aaa.net/fullchain.pem;
ssl_certificate_key
/etc/letsencrypt/live/aaa.net/privkey.pem;
Opcache is not properly configured
sudo nano
/etc/php/7.0/fpm/php.ini
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
sudo systemctl restart nginx
Or sudo nano /etc/php/7.0/mods-available/opcache.ini
Add...
zend_extension=/usr/lib/php/20151012/opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
php does not seem to be setup properly to query system environment variables.
The test with getenv("PATH") only returns an empty response.
sudo nano
/etc/php/7.0/fpm/pool.d/www.conf
Uncomment
env[PATH] =
/usr/local/bin:/usr/bin:/bin
sudo service
php7.0-fpm restart
Same
Origin error
fgrep -Ri "x-frame-options"
/etc
Block out (Add #)
add_header X-Frame-Options
"SAMEORIGIN always";
to look like
#add_header X-Frame-Options
"SAMEORIGIN always";
sudo nano
/usr/share/nginx/nextcloud/config/config.php
'files_external_allow_create_new_local' => 'true',
No memory cache has been configured
First add
memcache on my tips page then.
sudo nano
/usr/share/nginx/nextcloud/config/config.php
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array(
'host' =>
'localhost',
'port' => 6379,
),
sudo reboot