Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. ## After to install Nextcloud
  2.  
  3. These are some of the things you probably should do after get installed Nextcloud.
  4.  
  5. ----------------------------------
  6.  
  7. ### Enable Redis caching
  8.  
  9. Using your local terminal connect with VPS:
  10. ```
  11. ssh ubuntu@nextcloud.mydomain.com
  12. ```
  13.  
  14. Edit Nextcloud config file:
  15. ```
  16. sudo nano /var/www/html/config/config.php
  17. ```
  18.  
  19. And add this:
  20. ```
  21. 'memcache.distributed' => '\\OC\\Memcache\\Redis',
  22. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  23. 'redis' => [
  24. 'host' => 'localhost',
  25. 'port' => 6379,
  26. ],
  27. ```
  28. Save & exit with CTRL+X.
  29.  
  30. Restart server with:
  31. ```
  32. sudo service apache2 restart
  33. ```
  34.  
  35. ----------------------------------
  36.  
  37. ### Basic & required/recommended settings as administrator
  38.  
  39. Log in as **administrator** on Nextcloud, using browser.
  40. And set these questions:
  41.  
  42. **Apps > install some usual ones**:
  43.  
  44. - AppOrder, Mind Map, QOwnNotesAPI, News, Talk
  45. - Calendar, Contacts, Deck, Markdown editor
  46. - Social sharing via email, Social sharing via Facebook
  47.  
  48. **Settings > Basic settings > Email server (SMTP)**
  49.  
  50. - SMTP, encrypt: None, From: info@mydomain.com
  51. - Auth: login, required (check)
  52. - server: mail.mydomain.com:587
  53. - cred: info@mydomain.com | ****
  54.  
  55. _Obviously: replace with the SMTP settings of one email of yours_
  56.  
  57.  
  58. **Settings > Basic settings > Background jobs**
  59.  
  60. - check the third option: [] **CRON**
  61. - you need to do this on terminal:
  62. ```
  63. sudo chmod +x /var/www/html/cron.php
  64. echo "*/15 * * * * php -f /var/www/html/cron.php" >> cron.tmp
  65. sudo crontab -u www-data cron.tmp
  66. rm cron.tmp
  67. ```
  68. - to check the last executions of CRON, run this on SHELL:
  69. ```
  70. grep CRON /var/log/syslog
  71. ```
  72.  
  73. **Settings > Sharing**
  74.  
  75. - check _Enforce password protection_ around
  76. - uncheck all on "Federated Cloud Sharing" (if you do not use it)
  77. - on _Share by email_ uncheck _Send password by email_
  78. and check _Enforce password protection_
  79.  
  80. **Settings > Security > Password policy**
  81.  
  82. - Set "Minimal length" to 4 (to be able to share files protected with an only 4 digits, which is more friendly to third people don't using our Nextcloud)
  83. - uncheck "Forbid common passwords" (for the same question above, to let us to use _simple_ passwords like a 4 numeric digits, instead to force to us to use symbols, upper/lower case letters, bla bla bla, when sharing files)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement