Strange I put back the original script with https ON now I can login but I still get the message
You are accessing this site via HTTP. We strongly suggest you configure your server to require using HTTPS instead as described in our security tips.
Owncloud 8 and MySQL: alternative approach
-
- OMV 2.x
- Enra
-
-
Leave the HTTPS On.
Post your config.php here without your credentials.
Perhaps we can help you. -
I am sure from my previous posts you can guess I am just a beginner so How do I get the config.php ,plus since Last time I had to change domain (second router)although I created a new certificate I cannot login any longer
-
-
This message is a security warning.
It ensure that unknown ip can't access to your site such as hackers.This is where you add your local IP and domain in here as trusted domain.
https://docs.nextcloud.com/ser…ample_php_parameters.html
i.e:
PHP
Alles anzeigen<?php $CONFIG = array ( 'instanceid' => 'oc8c0fd71e03', 'passwordsalt' => '515a13302a6b3950a9d0fdb970191a', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'studio', 2 => '192.168.10.155' ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '7.0.2.1', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_carla', 'dbpassword' => '67336bcdf7630dd80b2b81a413d07', 'installed' => true, );
UUID is a longer number & letters of your drive.
1. Use Putty to log into your server and browse to your owncloud's installation folder: /media/UUID/www/owncloud/config/config.php
2. Then enter: nano config.php -
This message is a security warning.
It ensure that unknown ip can't access to your site such as hackers.This is where you add your local IP and domain in here as trusted domain.
https://docs.nextcloud.com/ser…ample_php_parameters.html
i.e:
PHP
Alles anzeigen<?php $CONFIG = array ( 'instanceid' => 'oc8c0fd71e03', 'passwordsalt' => '515a13302a6b3950a9d0fdb970191a', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'studio', 2 => '192.168.10.155' ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '7.0.2.1', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_carla', 'dbpassword' => '67336bcdf7630dd80b2b81a413d07', 'installed' => true, );
UUID is a longer number & letters of your drive.
1. Use Putty to log into your server and browse to your owncloud's installation folder: /media/UUID/www/owncloud/config/config.php
2. Then enter: nano config.phpThank you for the detailed reply but my problem is in putty login as root I cannot navigate to the folder media I put LS but I cannot see it, I probably need to change some permissions but I am not sure how to that.
Sent from my BLU R1 HD using Tapatalk
-
1. Do you know the OC installation path?
2. If you installed OC in the separate drive, then look for /media/UUID, or on your OS drive.
you can do this to find out: cat /proc/mounts
The default permissions for OwnCloud/NextCloud folder is: www-data: www-data.
If isn't then, do: chown -R www:data:www-data nextcloud
Either log in as root, or give yourself (user) privileges of www-data in OMV gui, then log in. -
-
1. Do you know the OC installation path?
2. If you installed OC in the separate drive, then look for /media/UUID, or on your OS drive.
you can do this to find out: cat /proc/mounts
The default permissions for OwnCloud/NextCloud folder is: www-data: www-data.
If isn't then, do: chown -R www:data:www-data nextcloud
Either log in as root, or give yourself (user) privileges of www-data in OMV gui, then log in.It took me a while to figure out the path
(root@raspberrypi:/media/fa36508a-b3c4-4499-b30a-711dd5994225/www/owncloud/config# /config.php)
since I am not very good with command line the main problem is now I changed domain but the config .php Did not change them
I do not know How to sort of copy paste in nano I might need your help on this ( the old domain 192.168.1.235) the new local domain is 192.168.2.228 also how to access it from a WAN (internet)
last question is I want to share my original music colection witch is on a ntfs Disk omv mini DNLA and plex are using them can I put a direct link inside owncloud folder without copying again the whole thing<?php
$CONFIG = array (
'instanceid' => 'ocg6sv8votci',
'passwordsalt' => 'DXDAGSpqIEvWI/qDejVOjtHeOzk1aN',
'secret' => '49pYIFKxQLnRTdG3nth8xvGyEOmgi+ID4OPSxNw6dZfxmt3q',
'trusted_domains' =>
array (
0 => '192.168.1.235:90',
),
'datadirectory' => '/media/fa36508a-b3c4-4499-b30a-711dd5994225/www/owncloud/$
'overwrite.cli.url' => 'http://192.168.1.235:90',
'dbtype' => 'sqlite3',
'version' => '9.1.2.5',
'logtimezone' => 'UTC',
'installed' => true,
);Maybe it is better to reinstall owncloud if you think the path are not correct?
-
The path is fine.
You don't need to put the port # in there.In order for you to access from WAN, you need to add your external IP or a DNS name in the config.php.
You can sign up an account with No-IP or DynDNS, for a free domain or create one.
Put them in the Array.After you change them, hit Ctrl+O to save the changes.
Regarding your data/music, you can mount it to OC in the admin settings.
Admin settings>>External Storage>>select Local from the drop-down menu.https://doc.owncloud.org/serve…ge_configuration_gui.html
To copy and paste from nano editor, just highlight the text, and right-click to paste them in a notepad or in here.
-
I finally was able to install a fresh OMV3 in my Odroid XU4, and every plugin works like a charm: Plex, Deluge, Nextcloud and Backup.
Now I have a question, I haven't set a cache for my Nextcloud, the use of my Nextcloud is a personal database with an small amount of documents, very small traffic, and eventually to share big media files (RAW photos) wiht a small group of friends.
So my question:
Should I install APCu cache to upgrade performance?
What exactly the cache does to Nextcloud?
In my last attempt to get Nextcloud running I set up APCu cache, the pluging was running fine in the night, but few hours later it sttopped working probably due to a problem with the cache, that's why I am reluctant to install it again now that everything works fine.
Thanks in advance.
-
-
It probably your Odroid doesn't have enough memory.
APCu has good performance when it has sufficient RAM.Try Redis for Cache & files locking.
-
The path is fine.
You don't need to put the port # in there.In order for you to access from WAN, you need to add your external IP or a DNS name in the config.php.
You can sign up an account with No-IP or DynDNS, for a free domain or create one.
Put them in the Array.
After you change them, hit Ctrl+O to save the changes.Regarding your data/music, you can mount it to OC in the admin settings.
Admin settings>>External Storage>>select Local from the drop-down menu.https://doc.owncloud.org/serve…ge_configuration_gui.html
To copy and paste from nano editor, just highlight the text, and right-click to paste them in a notepad or in here.
Great thank you I probably need to make a new certificate how to do it to reflect the wan ip? Here in the US uverse is my provider and wanip seldom change
-
Consumer IP is dynamic unless you pay to has a static IP.
Go to your OMV, look under certificates.
But if you want to avoid the dynamic IP, then sign up for a No-IP account.For all new users that setup this OC/NC for the first time please read pages 1-4 carefully.
All of information is there for you. -
-
It probably your Odroid doesn't have enough memory.
APCu has good performance when it has sufficient RAM.Try Redis for Cache & files locking.
I'll try.
Thi is what "free" shows about my Odroid RAM:
Codefree total used free shared buffers cached Mem: 2038548 1774636 263912 25376 262716 850168 -/+ buffers/cache: 661752 1376796 Swap: 0 0 0
Best regards.
-
Your Odroid is 2GB RAM total?
Use free -h easier to read.
-
OK,
I managed to configure Redis after a couple of ammendments in config.php due to some errors when I tryed to access my Nextcloud.
The procedure I got success was as it follows:
apt-get install redis-server
apt-get install php5-redisThen in Nextcloud conf.php we have to add the following lines:
Code'memcache.local' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'dbindex' => 0, ),
Adtitionally to this lines I had the following lines which caused an error:
'memcache.local' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
# 'host' => '/var/run/redis/redis.sock',
# 'port' => 0,
# 'timeout' => 0,
'dbindex' => 0,
),I followed the error.log in /var/log/nginx/ and figured out that there was a collision with this lines which I removed to get Redis working.
Now after I removed everything goes fine.
I hope it keep on working, I'll let you know tomorrow.
Best regards.
-
-
Your Odroid is 2GB RAM total?
Use free -h easier to read.
free -h
total used free shared buffers cached
Mem: 1.9G 1.8G 158M 23M 217M 966M
-/+ buffers/cache: 648M 1.3G
Swap: 0B 0B 0BMaybe something good adding a SWAP memory?
Best regards.
-
I don't know your max RAM on your Odroid, but at least upgrade it to 4GB.
You don't need to add: 'memcache.distributed' => '\\OC\\Memcache\\Redis',
-
I don't know your max RAM on your Odroid, but at least upgrade it to 4GB.
You don't need to add: 'memcache.distributed' => '\\OC\\Memcache\\Redis',
Done, you were right, now Nextcloud with Redis cache, is working fine in my Odroid.
The Odroid XU4 RAM it is impossible to be upgraded, as far as I know, anyway it is a cheap board like raspberry but with a more powerfull specs. If I ever need more performance I'll try another hardware.
This is the final addings in the config.php file for Redis cache to work:
Code'memcache.local' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'dbindex' => 0, ),
Best regards.
-
-
Leave the HTTPS On.
Post your config.php here without your credentials.
Perhaps we can help you.I guess I am back at square one after editing config.php and changing the port from 192.168.1.235:90 to 192.168.2.228:90 the only way I can log in is by editing the original script with fastcgi_param HTTPS on; and replacing it by fastcgi_param HTTPS off; so I can only login with http://192.168.2.228:90, and SSL is not working with https://192.168.2.228:8443
<!--?php<!--?php
$CONFIG = array (
'instanceid' => 'ocg6sv8votci',
'passwordsalt' => 'DXDAGSpqIEvWI/qDejVOjtHeOzk1aN',
'secret' => '49pYIFKxQLnRTdG3nth8xvGyEOmgi+ID4OPSxNw6dZfxmt3q',
'trusted_domains' =>
array (
0 => '192.168.2.228:90',
),
'datadirectory' => '/media/fa36508a-b3c4-4499-b30a-711dd5994225/www/owncloud/$
'overwrite.cli.url' => 'http://192.168.2.228:90',
'dbtype' => 'sqlite3',
'version' => '9.1.2.5',
'logtimezone' => 'UTC',
'installed' => true,
); -
If you got OC working, but encounter those errors in your screenshots, then re-read my previous posts.
Otherwise, it would be better to remove OC, then re-install it.
My suggestion is to use your WAN in your IP to generate your cert.
Once you get it running, then create a domain name to use for your cert.
Then setup the external access for OC later.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!