irc not sure how to do anymore, i didn't select a database just went with the default option. here's a screenshot.
NextCloud Installation Q & A
-
- OMV 3.x
- tinh_x7
-
-
in your nextcloud config.php
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 https://webchat.freenode.net/ choose a nick and put #openmediavault under channel
-
screenshots
-
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.Code
Alles anzeigenCONFIG = array( 'instanceid' => 'ocjt6dh0kv', 'passwordsalt' => '06jVBpHFdbdfIVK13yLyk1aS92slJ', 'secret' => '4Y3xtte/e64UmlErtm+SZg61XjemM+H', 'trusted_domains' => array ( 0 => '192.168.144.101:90', 1 => '192.168.144.101:92', ), 'datadirectory' => '/srv/dev-disk-by-label-Media/www/nextcloud/data', 'overwrite.cli.url'=>'https://192.168.144.101:92', 'dbtype' => 'sqlite3', 'version' => '12.0.3.3', 'installed' => true, );
-
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. -
Post your NC vhost config here, so we can check it for you.
sorry for the silly question but where is the vhost config located?
-
OMV web GUI>>>Nginx>>>Servers>>Nextcloud setup
Refer to Step 3.
-
here's what i have in the extra options
Code
Alles anzeigenadd_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; add_header X-Content-Type-Options nosniff; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; location = /robots.txt { log_not_found off; allow all; access_log off; } # The following 2 rules are only needed for the user_webfinger app. # Uncomment it if you're planning to use this app. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last; #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json # last; location = /.well-known/carddav { return 301 $scheme://$host/remote.php/dav; } location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; } # set max upload size client_max_body_size 50G; fastcgi_buffers 64 4K; # Disable gzip to avoid the removal of the ETag header gzip off; # Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location / { rewrite ^ /index.php$uri; } location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { deny all; } location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass $socket; fastcgi_intercept_errors on; } location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index index.php; } # Adding the cache control header for js and css files # Make sure it is BELOW the PHP block location ~* \.(?:css|js|woff|svg|gif)$ { try_files $uri /index.php$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; add_header X-Content-Type-Options nosniff; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; # Optional: Don't log access to assets access_log off; } location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ { try_files $uri /index.php$uri$is_args$args; # Optional: Don't log access to other assets access_log off; }
-
here's what i have in the extra options
Code
Alles anzeigenadd_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; add_header X-Content-Type-Options nosniff; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; location = /robots.txt { log_not_found off; allow all; access_log off; } # The following 2 rules are only needed for the user_webfinger app. # Uncomment it if you're planning to use this app. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last; #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json # last; location = /.well-known/carddav { return 301 $scheme://$host/remote.php/dav; } location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; } # set max upload size client_max_body_size 50G; fastcgi_buffers 64 4K; # Disable gzip to avoid the removal of the ETag header gzip off; # Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location / { rewrite ^ /index.php$uri; } location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { deny all; } location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass $socket; fastcgi_intercept_errors on; } location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index index.php; } # Adding the cache control header for js and css files # Make sure it is BELOW the PHP block location ~* \.(?:css|js|woff|svg|gif)$ { try_files $uri /index.php$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; add_header X-Content-Type-Options nosniff; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; # Optional: Don't log access to assets access_log off; } location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ { try_files $uri /index.php$uri$is_args$args; # Optional: Don't log access to other assets access_log off; }
I commented out fastcgi_param HTTPS on; by adding #
-
I modified it a little bit, see if that help.
PHP
Alles anzeigen<?php $CONFIG = array( 'instanceid' => 'ocjt6dh0kv', 'passwordsalt' => '06jVBpHFdbdfIVK13yLyk1aS92slJ', 'secret' => '4Y3xtte/e64UmlErtm+SZg61XjemM+H', 'trusted_domains' => array ( 0 => '192.168.144.101', 1 => 'localhost', ), 'datadirectory' => '/srv/dev-disk-by-label-Media/www/nextcloud/data', 'overwrite.cli.url'=>'https://192.168.144.101', 'dbtype' => 'sqlite3', 'version' => '12.0.3.3', 'installed' => true, );
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: https://abx.xyz.com , not IP address.
Why you don't use MySQL?
-
still wont load
-
Why you don't use MySQL?
i did not have an option to choose on the main nextcloud page.
should i start over with the nextcloud settings? -
ok i did a reinstall of nexcloud i'm now in, but all is not well. i might have messed up the mysql settings.
is there a guide for reference on how the mysql is set up? -
Did you put in your mysql settings during your setup of nextcloud?
What does it say in your config.php under "dbtype"? -
Did you put in your mysql settings during your setup of nextcloud?
What does it say in your config.php under "dbtype"?yeas i put them in, i also made a data base called nextcloud.
dbtype = mysql -
ok removed nextcloud, removed mysql.
how do i setup mysql?
do i need to create a database? or just a username in the plugin with the reset password button? -
started over again, created database in mysql, added a new user in mysql, gave that user full rights to the new database.
opened nexcloud was presented with the set up page.
put in the user name, password, database and localhost with port.nextcloud loads to this blank page that keeps refreshing.
-
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.
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: https://forum.openmediavault.o…tallation-Guide/?pageNo=1
-
1. Please download the MySQL plugin from OMV first.
the plug in is installed, thats how i open mysql, the default user name is root and with omv password.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!