NextCloud Installation Q & A

  • Yes, you need to create a MySQL user for nextcloud. Either way is OK, cli or MySQL plugin. However I suggest to create a dedicated one especially for nextcloud and not to use a root user.

    Thanks. It's works.

  • Activate the nginx server before creating the php pool.


    Check the path and privileges of the directory used as webroot. ACL/privileges should be www-data:www-data with 755 or less

    Chaos is found in greatest abundance wherever order is being sought.
    It always defeats order, because it is better organized.
    Terry Pratchett

  • Hello All,


    After I upgraded from OMV3 to OMV4, I struggle to log into OMV web page.
    I couldn't find any solution.
    So, I start a fresh installation.



    Ensure you install: redis-server php-redis


    This is for OMV4 PHP7 only:


    I've spent 40 mins. to found out the issue that many users have 502 Bad Gateway error at the installation process due to the Nginx code.


    Change this:  fastcgi_pass $socket; to this: fastcgi_pass unix:/run/php/php7.0-fpm.sock;


    Restart your Nginx service: sudo service nginx restart
    And try again.

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

    3 Mal editiert, zuletzt von tinh_x7 ()

  • Ok i do have a question: this guide seems to be geared toward having nextcloud running on the root directory of the listed website. I would like for it to run in a subdirectory. I did review the subdir code on the nextcloud page but for some reason I cannot get it to work. I get a login page but when I click logon, it doesn't work.


    I guess I can start over but I would like some advice for whomever attempted this


    EDIT: I tried following this https://docs.nextcloud.com/ser…l/installation/nginx.html and I used those SubDir settings from add_header X-Content-Type-Options nosniff; on down, and its working now. I used the gzip off and fast-cgi settings from @tinh_x7 guide. Also the server is pointing to www instead of nextcloud.


    I swear I did this already and It was working, but then broke. So I'll see how long it lasts


    EDIT2: I guess if i do have a question, it would be how can i get the URL to point to openmediavault.local:{port}/nextcloud instead of it being localhostopenmediavault.local:{port}

  • No, after the installation is done.


    /nextcloud/config/config.php


    Code
    'trusted_domains' => 
      array (
        0 => '192.168.1.12',
        1 => 'abc.dfe.com',
        2 => 'localhost',
      ),
      'datadirectory' => '/srv/dev-disk-by-label-Data/www/nextcloud/data',
      'overwrite.cli.url' => 'https://abc.dfe.com',

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

  • Hi. Im running OMV3 on AMD e-350 2 cores 2 threads 1,6GHz, 15W TDP, 4GB of RAM and 2x500GB mirror ZFS pool. 82% of RAM is taken by ZFS and services (samba, nfs and transmission). I have public but variable external IP (binded with noip.org to some domain). Also i can have free domain on some hosting server (my sister has 2 sites there).


    1. How much ram Nextcloud needs? I can change the ammount of RAM ZFS takes (now it takes 2,5GB).
    2. Im more familiar with apache but nginx is less resource hungry, wont need proxy module and AFAIK OMV is using it. Should i stick with it or choose apache anyway for NC?
    3. (Nginx choice) Did anyone try those configs? If not do you know any nginx configs that work on OMV?
    https://docs.nextcloud.com/ser…l/installation/nginx.html
    4. Is PHP 7 neccesary for NC 11?
    5. I self-signed SSL enough for some basic security (im the only one who will use this cloud)?
    6. I know the answer but ill ask anyway to be 100% sure: is there any way to use this free domain i have (on my sisters hosting server) instead of ddns domain i got from noip.org and use some SSL for it?

  • 1.

    Code
    Memory requirements for running an Nextcloud server are greatly variable, depending on the numbers of users and files, and volume of server activity. Nextcloud needs a minimum of 128MB RAM, and we recommend a minimum of 512MB

    2. OMV using Nginx, so it would be easy to use the same engine.
    Nginx uses less resource than Apache.


    3. The vhost config is already posted in this forum.


    4. No. However, Nextcloud v14 will require PHP 7.


    5. yes


    6. Yes

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

  • Ive installed Nextcloud with SSL. And i have questions about OPcache.


    Here you suggested to put it in main php.ini in fpm module.


    NextCloud Installation Q & A


    But each php module have its conf.d directory with its config files. And each of them have opcache.ini file with this content.



    Code: 05-opcache.ini
    ; configuration for php ZendOpcache module
    ; priority=05
    zend_extension=opcache.so

    So ...


    1. Is there a good reason to put opcache settings in fpm/php.ini when there is separate config file in fpm/conf.d/05-opcache.ini for it?
    2. Or wont be better to put those settings in separate ini file AFTER existing file. For example in 06-opcache.ini.

  • I have created a 10-opcache.ini


    nano /etc/php/7.0/fpm/conf.d/10-opcache.ini
    at the end i added


    opcache.enable=1
    opcache.enable_cli=1
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.memory_consumption=128
    opcache.save_comments=1
    opcache.revalidate_freq=1



    then
    service php7.0-fpm restart
    service nginx restart


    done

  • I ran into this issue very recently (502 Bad Gateway). I started over with my nextcloud install and could not understand why i suddenly was getting this. the fastcgi_pass was set as fastcgi_pass $socket but the socket variable (above in the /etc/nginx/sites-available/zzz-omv-nginx) was now set to a non-existent .sock file.


    Code
    set $socket "unix:/var/run/fpm-1f5eeee0-742c-4158-93ec-babe9f746212.sock";



    I located my sock file (/var/run/php5-fpm.sock;) and set my code to that

    Code
    fastcgi_pass unix:/var/run/php5-fpm.sock;

    Like I said it did work at first, but for some reason when I started over (deleting everything) it broke, as the $socket variable was not set accurately.


    Does anyone know why that is?

  • set $socket "unix:/var/run/fpm-xxxxxxxxxxxx.sock
    +
    fastcgi_pass $socket;


    should work for OVM4... either a bad gateway error occurs or nginx won't start if there are problems in your conf file. That doesn't have to be related to sock


    I'll attach my conf for you to try (spent some time as well till I got it working, afterwards I've found that thread ;) )


    adapt certs path/ and name + root path etc

Jetzt mitmachen!

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