NextCloud Installation Q & A

  • We not suppose to turn on the PHP default config.



    @FixXx,


    Apparently, I have the same issue when I ran the test on sslabs.com.


    Another issue is : This server supports weak Diffie-Hellman (DH) key exchange parameters.


    Solution:

    Note: This process may takes 15 to 30 mins depends on your service specs.


    1. Go to and run:

    Code
    cd /etc/ssl/certs
    openssl dhparam -out dhparam.pem 4096


    2. Add this line at the beginning of the vhost config:


    ssl_dhparam /etc/ssl/certs/dhparam.pem;

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

    4 Mal editiert, zuletzt von tinh_x7 ()

  • I have no problem with the ssllabs score. I got A+, 100 in every category... thx to this excellent documentation.


    My main problem is the reported /login loop. I've used the vanilla nextcloud13 config to sort the problem out. The config works after i made the common changes (server, cert, root, $socket) but the redirect loop persists.


    Do you - does anyone - have an idea what the reason could be? Is there someone out there with omv4+nc13 installation and without redirect loop reported by ssllabs?


  • Is there someone out there with omv4+nc13 installation and without redirect loop reported by ssllabs?

    Yes, it works on my system. omv 4 + nc13 but i have installed 12.0.x and updated to nc13.

    omv 6.x | 64 bit | omvextrasorg 6.x |
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | nextcloud/all-in-one | linuxserver/swag | paperless-ngx | jellyfin/jellyfin | lmscommunity/logitechmediaserver | adguard/adguardhome |

  • Yes, it works on my system. omv 4 + nc13 but i have installed 12.0.x and updated to nc13.

    Can you please post your nginx config?

    I don't know why there is HTTP redirect loop.


    Can you share your vhost config ?


    My current config is based on the official Nextcloud sample. Basically I only added security settings and the omv-generated $socket.

  • @FixXx


    I knew that.


    I was asking 'happyreacer'.

    sorry i have forgott it yesturday... i will do it this afternoon.

    omv 6.x | 64 bit | omvextrasorg 6.x |
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | nextcloud/all-in-one | linuxserver/swag | paperless-ngx | jellyfin/jellyfin | lmscommunity/logitechmediaserver | adguard/adguardhome |

  • I have OMV version 3.0.99 and I have followed NC installation instrustions (with variation for net install) but I am sucked on step 7, when i type in browser http://192.168.1.27:81/setup-nextcloud.php i get 404 Not Found as some other users and problem havent been solved. The log error:


    2018/04/11 15:36:27 [error] 2294#0: *2004 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.100, server: ,request: "GET /setup-nextcloud.php HTTP/1.1", upstream: "fastcgi://unix:/run/fpm-32a2476e-7999-4df4-99b9-53432153b9b2.sock:", host: "192.168.1.27:81"


    if I use Firefox and with Qupzilla I get:


    2018/04/11 14:34:04 [crit] 2292#0: *1057 stat() "/srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud/favicon.ico" failed (13: Permission denied), client: 192.168.1.100, server: , request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.27:81", referrer: "http://192.168.1.27:81/setup-nextcloud.php"
    and
    2018/04/11 14:34:04 [error] 2292#0: *1057 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.100, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/fpm-32a2476e-7999-4df4-99b9-53432153b9b2.sock:", host: "192.168.1.27:81", referrer: "http://192.168.1.27:81/setup-nextcloud.php"


    i have found this link which says that: To resolve "Primary script unknown" problem:


    if you see "GET /" without a correct php file name, then it's your nginx conf problem.
    if you see "GET /app.php" with 404, it means nginx is correctly passing the script file name but php-fpm failed to access this file (user "php-fpm:php-fpm" don't have access to your file, which trapped me for 3 hours)


    Knowing almost nothing about anything I went and chect processes for my OMV:
    23010 root 20 0 304272 25608 20436 S 0.0 1.3 0:00.12 php5-fpm
    23013 www-data 20 0 304224 10480 5292 S 0.0 0.5 0:00.00 php5-fpm
    23014 www-data 20 0 304224 10480 5292 S 0.0 0.5 0:00.00 php5-fpm
    23015 www-data 20 0 304224 8596 3424 S 0.0 0.4 0:00.00 php5-fpm
    23016 www-data 20 0 304224 8596 3424 S 0.0 0.4 0:00.00 php5-fpm
    23017 www-data 20 0 304224 8596 3424 S 0.0 0.4 0:00.00 php5-fpm
    23018 www-data 20 0 304224 8596 3424 S 0.0 0.4 0:00.00 php5-fpm
    23019 999 20 0 306460 19176 11508 S 0.0 0.9 0:18.31 php5-fpm
    23217 999 20 0 305928 17804 10924 S 0.0 0.9 0:00.25 php5-fpm
    23219 999 20 0 305928 17804 10924 S 0.0 0.9 0:00.26 php5-fpm


    php5-fpm has been run by 3 userrs and I dont know if it should be like that and which of them is trying to access NC folder.
    Where user 999 is openmediavault-config:x:999:openmediavault-webgui and has no access to NextCloud directory.


    This post may look unfinished, so is my NC installation.

  • It's in the config.php in your NextCloud dir.


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

  • It's in the config.php in your NextCloud dir.


    I've tried so, but it doesn't work. In my opinion the port on which nc is listening to must be mentioned as well?

  • I'm receiving this error upon enabling ssl:


Jetzt mitmachen!

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