NextCloud Installation Q & A

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • in your nextcloud config.php

      Source Code

      1. array (
      2. 0 => '192.168.144.101:90',
      3. 1 => '192.168.144.101:92',
      4. ),
      90 is for http and 92 is for https.
      You forgot to expand the extra options to setup your database. --> "Storage & database" then you see extra options for which database you want to use.


      If you still want to join irc, you don't have to install an application just go to webchat.freenode.net/ choose a nick and put #openmediavault under channel
    • error log says my config.php has an error on line 2.
      here's my config.php file, any help on what's wrong with it is much appreciated.

      Source Code

      1. CONFIG = array(
      2. 'instanceid' => 'ocjt6dh0kv',
      3. 'passwordsalt' => '06jVBpHFdbdfIVK13yLyk1aS92slJ',
      4. 'secret' => '4Y3xtte/e64UmlErtm+SZg61XjemM+H',
      5. 'trusted_domains' =>
      6. array (
      7. 0 => '192.168.144.101:90',
      8. 1 => '192.168.144.101:92',
      9. ),
      10. 'datadirectory' => '/srv/dev-disk-by-label-Media/www/nextcloud/data',
      11. 'overwrite.cli.url'=>'https://192.168.144.101:92',
      12. 'dbtype' => 'sqlite3',
      13. 'version' => '12.0.3.3',
      14. 'installed' => true,
      15. );
      Display All

      The post was edited 1 time, last by HackitZ: added info ().

    • Don't change the config.php unless you know what you're doing.
      There is no need to change the config.php for your initial setup.
      By the way, no need to put the port number in the array (.....

      Post your NC vhost config here, so we can check it for you.
      I notice that you enabled SSL, turn it off, and use just HTTP for your setup.
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      Post by HackitZ ().

      This post was deleted by the author themselves ().
    • here's what i have in the extra options

      Source Code

      1. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
      2. add_header X-Content-Type-Options nosniff;
      3. add_header X-Frame-Options "SAMEORIGIN";
      4. add_header X-XSS-Protection "1; mode=block";
      5. add_header X-Robots-Tag none;
      6. add_header X-Download-Options noopen;
      7. add_header X-Permitted-Cross-Domain-Policies none;
      8. location = /robots.txt {
      9. log_not_found off;
      10. allow all;
      11. access_log off;
      12. }
      13. # The following 2 rules are only needed for the user_webfinger app.
      14. # Uncomment it if you're planning to use this app.
      15. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
      16. #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
      17. # last;
      18. location = /.well-known/carddav {
      19. return 301 $scheme://$host/remote.php/dav;
      20. }
      21. location = /.well-known/caldav {
      22. return 301 $scheme://$host/remote.php/dav;
      23. }
      24. # set max upload size
      25. client_max_body_size 50G;
      26. fastcgi_buffers 64 4K;
      27. # Disable gzip to avoid the removal of the ETag header
      28. gzip off;
      29. # Uncomment if your server is build with the ngx_pagespeed module
      30. # This module is currently not supported.
      31. #pagespeed off;
      32. error_page 403 /core/templates/403.php;
      33. error_page 404 /core/templates/404.php;
      34. location / {
      35. rewrite ^ /index.php$uri;
      36. }
      37. location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
      38. deny all;
      39. }
      40. location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
      41. deny all;
      42. }
      43. location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
      44. fastcgi_split_path_info ^(.+\.php)(/.*)$;
      45. include fastcgi_params;
      46. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      47. fastcgi_param PATH_INFO $fastcgi_path_info;
      48. fastcgi_param HTTPS on;
      49. #Avoid sending the security headers twice
      50. fastcgi_param modHeadersAvailable true;
      51. fastcgi_param front_controller_active true;
      52. fastcgi_pass $socket;
      53. fastcgi_intercept_errors on;
      54. }
      55. location ~ ^/(?:updater|ocs-provider)(?:$|/) {
      56. try_files $uri/ =404;
      57. index index.php;
      58. }
      59. # Adding the cache control header for js and css files
      60. # Make sure it is BELOW the PHP block
      61. location ~* \.(?:css|js|woff|svg|gif)$ {
      62. try_files $uri /index.php$uri$is_args$args;
      63. add_header Cache-Control "public, max-age=7200";
      64. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
      65. add_header X-Content-Type-Options nosniff;
      66. add_header X-Frame-Options "SAMEORIGIN";
      67. add_header X-XSS-Protection "1; mode=block";
      68. add_header X-Robots-Tag none;
      69. add_header X-Download-Options noopen;
      70. add_header X-Permitted-Cross-Domain-Policies none;
      71. # Optional: Don't log access to assets
      72. access_log off;
      73. }
      74. location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
      75. try_files $uri /index.php$uri$is_args$args;
      76. # Optional: Don't log access to other assets
      77. access_log off;
      78. }
      Display All
    • here's what i have in the extra options


      Source Code

      1. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
      2. add_header X-Content-Type-Options nosniff;
      3. add_header X-Frame-Options "SAMEORIGIN";
      4. add_header X-XSS-Protection "1; mode=block";
      5. add_header X-Robots-Tag none;
      6. add_header X-Download-Options noopen;
      7. add_header X-Permitted-Cross-Domain-Policies none;
      8. location = /robots.txt {
      9. log_not_found off;
      10. allow all;
      11. access_log off;
      12. }
      13. # The following 2 rules are only needed for the user_webfinger app.
      14. # Uncomment it if you're planning to use this app.
      15. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
      16. #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
      17. # last;
      18. location = /.well-known/carddav {
      19. return 301 $scheme://$host/remote.php/dav;
      20. }
      21. location = /.well-known/caldav {
      22. return 301 $scheme://$host/remote.php/dav;
      23. }
      24. # set max upload size
      25. client_max_body_size 50G;
      26. fastcgi_buffers 64 4K;
      27. # Disable gzip to avoid the removal of the ETag header
      28. gzip off;
      29. # Uncomment if your server is build with the ngx_pagespeed module
      30. # This module is currently not supported.
      31. #pagespeed off;
      32. error_page 403 /core/templates/403.php;
      33. error_page 404 /core/templates/404.php;
      34. location / {
      35. rewrite ^ /index.php$uri;
      36. }
      37. location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
      38. deny all;
      39. }
      40. location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
      41. deny all;
      42. }
      43. location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
      44. fastcgi_split_path_info ^(.+\.php)(/.*)$;
      45. include fastcgi_params;
      46. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      47. fastcgi_param PATH_INFO $fastcgi_path_info;
      48. fastcgi_param HTTPS on;
      49. #Avoid sending the security headers twice
      50. fastcgi_param modHeadersAvailable true;
      51. fastcgi_param front_controller_active true;
      52. fastcgi_pass $socket;
      53. fastcgi_intercept_errors on;
      54. }
      55. location ~ ^/(?:updater|ocs-provider)(?:$|/) {
      56. try_files $uri/ =404;
      57. index index.php;
      58. }
      59. # Adding the cache control header for js and css files
      60. # Make sure it is BELOW the PHP block
      61. location ~* \.(?:css|js|woff|svg|gif)$ {
      62. try_files $uri /index.php$uri$is_args$args;
      63. add_header Cache-Control "public, max-age=7200";
      64. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
      65. add_header X-Content-Type-Options nosniff;
      66. add_header X-Frame-Options "SAMEORIGIN";
      67. add_header X-XSS-Protection "1; mode=block";
      68. add_header X-Robots-Tag none;
      69. add_header X-Download-Options noopen;
      70. add_header X-Permitted-Cross-Domain-Policies none;
      71. # Optional: Don't log access to assets
      72. access_log off;
      73. }
      74. location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
      75. try_files $uri /index.php$uri$is_args$args;
      76. # Optional: Don't log access to other assets
      77. access_log off;
      78. }
      Display All
      I commented out fastcgi_param HTTPS on; by adding #
    • I modified it a little bit, see if that help.

      PHP Source Code

      1. <?php
      2. $CONFIG = array(
      3. 'instanceid' => 'ocjt6dh0kv',
      4. 'passwordsalt' => '06jVBpHFdbdfIVK13yLyk1aS92slJ',
      5. 'secret' => '4Y3xtte/e64UmlErtm+SZg61XjemM+H',
      6. 'trusted_domains' =>
      7. array (
      8. 0 => '192.168.144.101',
      9. 1 => 'localhost',
      10. ),
      11. 'datadirectory' => '/srv/dev-disk-by-label-Media/www/nextcloud/data',
      12. 'overwrite.cli.url'=>'https://192.168.144.101',
      13. 'dbtype' => 'sqlite3',
      14. 'version' => '12.0.3.3',
      15. 'installed' => true,
      16. );
      Display All
      Restart Nginx service: sudo service nginx restart

      I don't use SqlLite, not sure what else you're missing.

      The 'overwrite.cli.url' is supposed to be a URL such as: abx.xyz.com , not IP address.

      Why you don't use MySQL?
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 3 times, last by tinh_x7 ().

    • ok started again, back to the setup page.
      how do i setup mysql? i have searched for hours and found nothing. so it must be something simple ,
      so i have tried twice to open mysql,
      created a new data base called nextcloud
      i then create a new user ncadmin and password
      i then open the new user and select the nextcloud database i created and select all the options and apply.

      is this the way you create a mysql user and database?
      thanks
    • 1. Please download the MySQL plugin from OMV first.

      2.

      HackitZ wrote:

      created database in mysql, added a new user in mysql, gave that user full rights to the new database.
      3. Re-read the installation guide.

      You can use my Pydio installation guide to mirror NextCloud MySQL database: forum.openmediavault.org/index…tallation-Guide/?pageNo=1
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 1 time, last by tinh_x7 ().

    • Users Online 3

      3 Guests