NextCloud Installation Q & A

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

  • 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

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

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

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

  • 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/;

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!