Nextcloud w/ISPC3

Discussion in 'General' started by Turbanator, Jan 2, 2017.

  1. Turbanator

    Turbanator Member HowtoForge Supporter

    Has anyone installed Nextcloud on an ISPC3 domain and would like to share experiences/tips?
     
  2. parkerj

    parkerj Member

    Yes, but I installed it on a server with Nginx. If that is what you need, let me know, and I will share my Nginx Directive.
     
  3. Turbanator

    Turbanator Member HowtoForge Supporter

    I was going to use my existing Apache2 server. Is the directive the only "issue" that you can think of?
    Also, are you able to integrate with ISPC3 users, or is it a separate userbase within Nextcloud?
     
  4. parkerj

    parkerj Member

    It is a separate installation and userbase with it's own vhost. I haven't tried integrating it with ISPConfig3.
     
  5. Turbanator

    Turbanator Member HowtoForge Supporter

    ok thank you. So I should have no problem at least installing it, I just need to watch the vhost and see if I can integrate with ISPC3 users.
     
  6. onastvar

    onastvar Member

    I installed nextcloud under subfolder of a website. I am getting following errors. Is there a setting in php.ini or apache directive that you guys used to get rid of these errors/warning?

    Security & setup warnings
    • The "Strict-Transport-Security" HTTP header is not configured to at least "15552000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
    • No memory cache has been configured. To enhance your performance please configure a memcache if available.
     
    Last edited: Jan 14, 2017
  7. pheron

    pheron New Member

    Click the "security tips" link and you should find instructions for where to set the HSTS HTTP header value.
     
  8. onastvar

    onastvar Member

    Can this code be added directly within ISPConfig Apache Directive for a website where nextcloud is installed to enable HSTS?

    <VirtualHost *:443>
    ServerName cloud.nextcloud.com
    <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
    </IfModule>
    </VirtualHost>
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The code from apache directives field gets inserted into the vhost f a website, what you posted above us a complete vhost, apache does not support nesting of vhost entres, so you can not use the above snippet in the ispconfig apache directives field.
     
  10. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    This is a tested/working snippet I've used:
    Code:
    <If "%{HTTPS} == 'on'">
        <IfModule mod_headers.c>
            Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
            Header always set Content-Security-Policy: upgrade-insecure-requests
        </IfModule>
    </If>
    
     
    onastvar and till like this.
  11. Nemis

    Nemis Member

  12. planet_fox

    planet_fox Member HowtoForge Supporter

  13. onastvar

    onastvar Member

  14. mmdollar

    mmdollar Member

    I am on the same boat, I have nginx/ISPConfig installed php7.1 on Debian Jessie from the same guide with memcache but sadly cannot remove this warning from nextcloud. If someone has ideas please share. :)
     
  15. Nemis

    Nemis Member

  16. Ark74

    Ark74 Member

    Would you mind share the nginx directives.

    I'm kind of new with nginx, and have failed miserably on my first try with nginx/sipconfig/nextcloud.
    Apache, no problem rewrite to the rescue ;) but not on nginx u_u

    Thanks!
     
  17. onastvar

    onastvar Member

    Hi Jesse,

    Where exactly did you add this snippet?

    Thanks!


     
  18. Nemis

    Nemis Member

    Work all with manual .vhost from fox1.de, but there is no way to set all with ISPconfig ?
    and need to set root to /opt/nextcloud/
     
  19. onastvar

    onastvar Member

    Fyi: My Nextcloud is installed in a subfolder of a website.
     
  20. abintipl

    abintipl Member HowtoForge Supporter

    Hi,
    I am trying to install Nextcloud on ISPC latest version as per instructions given on https://www.howtoforge.com/tutorial/how-to-install-nextcloud-15-on-debian-9/

    Since I already on ISPC panel & followed from Step # 3

    If I carryout Nextcloud installation on my domain www.example.com it Works!

    But the problem I am facing while installing it in subdomain like cloud.example.com

    The steps I followed are as under;

    My subdomain directory is /var/www/clients/client2/web2/web/
    chown www-data:www-data /var/www/clients/client2/web2/web/
    chmod 750 /var/www/clients/client2/web2/web/

    And a data directory where Nextcloud will store your uploaded files.

    mkdir -p /var/www/clients/client2/web2/web/data
    chown www-data:www-data /var/www/clients/client2/web2/web/data
    chmod 750 /var/www/clients/client2/web2/web/data

    Next, I created an apache virtual host file for NextCloud

    nano /etc/apache2/sites-available/nextcloud.conf

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/clients/client2/web2/web/"
    ServerName cloud.example.com

    <Directory "/var/www/clients/client2/web2/web/">
    Options MultiViews FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    TransferLog /var/log/apache2/nextcloud_access.log
    ErrorLog /var/log/apache2/nextcloud_error.log
    </VirtualHost>

    After that Installed Nextcloud as per instructions


    When I , open web browser and navigate to URL:

    https://cloud.example.com/setup-nextcloud.php

    Installation done SUCCESS and after I give Database details & when it tries to write Data folder, I get Error "cannot write folder"

    I tried giving permissions but every time it fails

    My questions;
    1. Do I need to create nextcloud.conf or not?
    nano /etc/apache2/sites-available/nextcloud.conf
    or should I use subdomain vhost " cloud.example.com .vhost"
    under : /etc/apache2/sites-available#

    2. Should I add entries in " cloud.example.com .vhost"

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/clients/client2/web2/web/"
    ServerName cloud.example.com

    <Directory "/var/www/clients/client2/web2/web/">
    Options MultiViews FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    Please advise

    Thanks
     

Share This Page