Owncloud 8 and MySQL: alternative approach

  • 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:



    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

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    6 Mal editiert, zuletzt von tinh_x7 ()



  • Thank 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.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Einmal editiert, zuletzt von tinh_x7 ()

  • 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.


    Code
    'trusted_domains' =>
    array (
    0 => '192.168.1.235',
    1 => 'WAN IP',
    2 => 'abc.xyz.com',
    
    
    ),


    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.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    3 Mal editiert, zuletzt von tinh_x7 ()

  • 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.

  • 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.


    http://www.noip.com/


    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.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Einmal editiert, zuletzt von tinh_x7 ()

  • It probably your Odroid doesn't have enough memory.
    APCu has good performance when it has sufficient RAM.


    Try Redis for Cache & files locking.


    https://docs.nextcloud.com/ser…aching_configuration.html

    I'll try.


    Thi is what "free" shows about my Odroid RAM:


    Code
    free
                 total       used       free     shared    buffers     cached
    Mem:       2038548    1774636     263912      25376     262716     850168
    -/+ buffers/cache:     661752    1376796
    Swap:            0          0          0

    Best regards.

  • 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-redis


    Then 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.

  • 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.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!