NextCloud Installation Q & A

  • You can use APCu for local, and Redis for locking vice versa.
    No need to uninstall it.
    See step 8.


    See if your computer has any performance change.

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

  • Hello. Thank you very much for your work! Complete OMV/nginx newbie here.


    I have RaspberryPI+Raspbian+Apache+Owncloud and now I want to setup a RaspberryPI+OMV+nginx+Nextcloud from scratch (different SD card) and I had a problem with step 3.


    ╰─$ sudo nginx -t
    nginx: [emerg] unknown "socket" variable
    nginx: configuration file /etc/nginx/nginx.conf test failed


    I am doing different from you that I am using /var/www/nextcloud (where openmediavault is), could that be the cause? The thing is that I have been modifying files manually trying to install NC until yesterday, that I found this tutorial; so now I am not sure if I have left some garbage somewhere.

  • I'm not familiar with RPI.
    It seem like it doesn't recognize the socket variable in your vhost.
    If your NC installation folder is installed in the OS drive, then change the 'Directory' to 'none' under the server's settings.
    And disable 'Use Root' as Document root.


    Double check, and make sure you create the php-m pool first.


    fastcgi_pass $socket;

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

    3 Mal editiert, zuletzt von tinh_x7 ()

  • Hello,


    I have followed the guide completely but failed.
    Can I confirm, this will be the folder structure? Because the unzip will create a folder called nextcloud.
    www/nextcloud/nextcloud
    When I run http://192.168.2.4:90/setup-nextcloud.php I got error 404 Not Found nginx/1.6.2.
    This is the NGINX error log: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
    Not sure if this is the cause but I have searched for the "setup-nextcloud.php" file by using the Locate plugin, but it is not found. (I have clicked on Update first.)
    I have triple checked the guide and redo this in VM 2 times.
    I am running OMV 3.0.62.


    Can you please guide me?
    Thank you.

  • Try this: http://192.168.2.4:90


    I assuming that's your NC ip & port.


    The web installer method is a little easier, if you have good internet connection.



    Code
    4a. cd /media/UUID/www/nextcloud
    
    
    4b. wget https://download.nextcloud.com/server/installer/setup-nextcloud.php
    
    
    4c. Then, go to your browser & enter : http://local.ip:90/setup-nexcloud.php

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

    3 Mal editiert, zuletzt von tinh_x7 ()


  • Yes, that is my OMV ip and the port I used.
    I have tried your suggestion earlier when I read the Nextcloud user manual.
    Assuming that my setup is all correct, I have tried all these but failed:
    a)192.168.2.4:90/setup-nextcloud.php (by following this guide by downloading the zip file, but I doubt this is correct since the manual says this is for web installer)
    b)192.168.2.4:90/nextcloud (this is from the manual)
    c)192.168.2.4:90
    d)192.168.2.4:90/index.php
    All of the above gave me error 404
    e)192.168.2.4:90/robots.txt
    This one gave me a text.
    f)downloaded the web installer page and add it to the root /media/uuid/www/nextcloud


    The mysql and nginx I have downloaded from the omv plugin.
    I only have 2 other plugins which are jdownloader and locate.


    Could someone please tell me how do I do a simple nginx test just to confirm that the plugin works?
    Thank you.

  • Is your Nginx service running?
    Ensure MySQL is running too.


    You can check by this command:
    service nginx status



    ps waux |grep mysql


    Try a different port number.
    If all fail, restart over.

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

    4 Mal editiert, zuletzt von tinh_x7 ()

  • Hello again,


    I noticed that you have updated the Step 5.
    I would like to report that it works now.
    I could reach the web installation wizard.


    At step 7, after I clicked on the Finish Setup, I can no longer access the site.
    The url somehow changed automatically to https and with error. It says ERR_SSL_PROTOCOL_ERROR
    But in the nginx server configuration, I did not use ssl.
    I tried to access the site with http but no longer accessible. It says ERR_TOO_MANY_REDIRECTS
    I checked mysql database and I can see the nextcloud database has been created automatically.


    What should I do?
    Thank you.

    2 Mal editiert, zuletzt von mastermindsos () aus folgendem Grund: continue further step 7 issue add some other information

  • At step 7, after I clicked on the Finish Setup, I can no longer access the site.
    The url somehow changed automatically to https and with error. It says ERR_SSL_PROTOCOL_ERROR
    But in the nginx server configuration, I did not use ssl.
    I tried to access the site with http but no longer accessible. It says ERR_TOO_MANY_REDIRECTS
    I checked mysql database and I can see the nextcloud database has been created automatically.

    This is SSL config has conflict.


    Did you enable any the 'default server' option ?

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

  • I have the following error message:FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream


    service nginx status



    ps waux |grep mysql

  • Thank you very much. I could progress more but at the end I broke the system completely or something... It started giving errors like: "There was an error" [OK] so I nuked the installation to start it all over again. Will retake this when I have time.

  • I have the following error message:FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

    I haven't see this error before.
    Double check your vhost codes.


    If this NC installation folder is in your OS drive, then you may need to add this to your vhost options; change it accordingly to your need:


    Code
    # Path to the root of your installation
        root /var/www/nextcloud/;

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

    Einmal editiert, zuletzt von tinh_x7 ()

Jetzt mitmachen!

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