Guest User

Untitled

a guest
Jul 18th, 2019
200
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. ```
  12.  
  13. Edit Nextcloud config file:
  14. ```
  15. sudo nano /var/www/html/config/config.php
  16. ```
  17.  
  18. And add this:
  19. ```
  20. 'memcache.distributed' => '\\OC\\Memcache\\Redis',
  21. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  22. 'redis' => [
  23. 'host' => 'localhost',
  24. 'port' => 6379,
  25. ],
  26. ```
  27. Save & exit with CTRL+X.
  28.  
  29. Restart server with:
  30. ```
  31. sudo service apache2 restart
  32. ```
  33.  
  34. ----------------------------------
  35.  
  36. ### Basic & required/recommended settings as administrator
  37.  
  38. Log in as **administrator** on Nextcloud, using browser.
  39. And set these questions:
  40.  
  41. **Apps > install some usual ones**:
  42.  
  43. - AppOrder, Mind Map, QOwnNotesAPI, News, Talk
  44. - Calendar, Contacts, Deck, Markdown editor
  45. - Social sharing via email, Social sharing via Facebook
  46.  
  47. **Settings > Basic settings > Email server (SMTP)**
  48.  
  49. - SMTP, encrypt: None, From: [email protected]
  50. - Auth: login, required (check)
  51. - server: mail.mydomain.com:587
  52. - cred: [email protected] | ****
  53.  
  54. _Obviously: replace with the SMTP settings of one email of yours_
  55.  
  56.  
  57. **Settings > Basic settings > Background jobs**
  58.  
  59. - check the third option: [] **CRON**
  60. - you need to do this on terminal:
  61. ```
  62. sudo chmod +x /var/www/html/cron.php
  63. echo "*/15 * * * * php -f /var/www/html/cron.php" >> cron.tmp
  64. sudo crontab -u www-data cron.tmp
  65. rm cron.tmp
  66. ```
  67. - to check the last executions of CRON, run this on SHELL:
  68. ```
  69. grep CRON /var/log/syslog
  70. ```
  71.  
  72. **Settings > Sharing**
  73.  
  74. - check _Enforce password protection_ around
  75. - uncheck all on "Federated Cloud Sharing" (if you do not use it)
  76. - on _Share by email_ uncheck _Send password by email_
  77. and check _Enforce password protection_
  78.  
  79. **Settings > Security > Password policy**
  80.  
  81. - 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)
  82. - 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