ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nextcloud Running on Raspian

    IT Discussion
    raspberry pi 3 raspian nextcloud nextcloud 11
    6
    39
    8.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gjacobse
      last edited by gjacobse

      Following up on this but using (Raspberry Pi3) Raspian Jessie lite

      1. Update and Upgrade done using
      sudo apt-get update
      Sudo apt-get upgrade
      

      Rebooted

      Get NextCloud 11.0..0

      wget https://download.nextcloud.com/server/releases/nextcloud-11.0.0.tar.bz2
      

      Extract

      tar -jxvf nextcloud-11.0.0.tar.bz2
      

      Copy to /var/www/html

      sudo cp -Rv nextcloud/* /var/www/html/
      

      and received this error:

      cp: target ‘/var/www/html/’ is not a directory
      

      Is this a case of I need to insert a step to create that directory?

      ETA: enough difference that I have forked the topic.

      D T 2 Replies Last reply Reply Quote 0
      • D
        dafyre @gjacobse
        last edited by

        @gjacobse said in Ubuntu 16.04 + NextCloud 10 Install Guide:

        Following up on this but using (Raspberry Pi3) Raspian Jessie lite

        1. Update and Upgrade done using
        sudo apt-get update
        Sudo apt-get upgrade
        

        Rebooted

        Get NextCloud 11.0..0

        wget https://download.nextcloud.com/server/releases/nextcloud-11.0.0.tar.bz2
        

        Extract

        tar -jxvf nextcloud-11.0.0.tar.bz2
        

        Copy to /var/www/html

        sudo cp -Rv nextcloud/* /var/www/html/
        

        and received this error:

        cp: target ‘/var/www/html/’ is not a directory
        

        Is this a case of I need to insert a step to create that directory?

        Most likely. I've not tested this against anything other than Ubuntu 16 yet.

        T 1 Reply Last reply Reply Quote 0
        • T
          travisdh1 @dafyre
          last edited by

          @dafyre said in Nextcloud Running on Raspian:

          @gjacobse said in Ubuntu 16.04 + NextCloud 10 Install Guide:

          Following up on this but using (Raspberry Pi3) Raspian Jessie lite

          1. Update and Upgrade done using
          sudo apt-get update
          Sudo apt-get upgrade
          

          Rebooted

          Get NextCloud 11.0..0

          wget https://download.nextcloud.com/server/releases/nextcloud-11.0.0.tar.bz2
          

          Extract

          tar -jxvf nextcloud-11.0.0.tar.bz2
          

          Copy to /var/www/html

          sudo cp -Rv nextcloud/* /var/www/html/
          

          and received this error:

          cp: target ‘/var/www/html/’ is not a directory
          

          Is this a case of I need to insert a step to create that directory?

          Most likely. I've not tested this against anything other than Ubuntu 16 yet.

          Yes. That copy command won't create a directory that doesn't exist.

          1 Reply Last reply Reply Quote 1
          • T
            travisdh1 @gjacobse
            last edited by

            @gjacobse Did you get the prerequisites installed? apache2, php, mariadb, etc?

            D 1 Reply Last reply Reply Quote 1
            • D
              dafyre @travisdh1
              last edited by

              @travisdh1 said in Nextcloud Running on Raspian:

              @gjacobse Did you get the prerequisites installed? apache2, php, mariadb, etc?

              This is likely the issue.

              T 1 Reply Last reply Reply Quote 0
              • T
                travisdh1 @dafyre
                last edited by

                @dafyre said in Nextcloud Running on Raspian:

                @travisdh1 said in Nextcloud Running on Raspian:

                @gjacobse Did you get the prerequisites installed? apache2, php, mariadb, etc?

                This is likely the issue.

                That's another issue. The original was trying to copy files to a nonexistent directory. cp is like that.

                1 Reply Last reply Reply Quote 0
                • C
                  coliver
                  last edited by

                  You will probably have to create the directory first.

                  1 Reply Last reply Reply Quote 0
                  • G
                    gjacobse
                    last edited by

                    I started with this: Manual Install

                    and since this was a new SD card, started with the PHP - which didn't install. Which is why I dropped back to that thread on installing,...


                    Example Installation on Ubuntu 16.04 LTS Server
                    On a machine running a pristine Ubuntu 16.04 LTS server, install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:

                    apt-get install apache2 mariadb-server libapache2-mod-php7.0
                    apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
                    apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
                    

                    This installs the packages for the Nextcloud core system. libapache2-mod-php7.0 provides the following PHP extensions: bcmath bz2 calendar Core ctype date dba dom ereg exif fileinfo filter ftp gettext hash iconv libxml mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xmlreader xmlwriter zlib. If you are planning on running additional apps, keep in mind that they might require additional packages. See Prerequisites for details.

                    At the installation of the MySQL/MariaDB server, you will be prompted to create a root password. Be sure to remember your password as you will need it during Nextcloud database setup.


                    sudo apt-get install apache2 mariadb-server libapache2-mod-php7.0
                    Reading package lists... Done
                    Building dependency tree
                    Reading state information... Done
                    E: Unable to locate package libapache2-mod-php7.0
                    E: Couldn't find any package by regex 'libapache2-mod-php7.0'
                    
                    
                    C 1 Reply Last reply Reply Quote 0
                    • C
                      coliver @gjacobse
                      last edited by

                      @gjacobse said in Nextcloud Running on Raspian:

                      I started with this: Manual Install

                      and since this was a new SD card, started with the PHP - which didn't install. Which is why I dropped back to that thread on installing,...


                      Example Installation on Ubuntu 16.04 LTS Server
                      On a machine running a pristine Ubuntu 16.04 LTS server, install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:

                      apt-get install apache2 mariadb-server libapache2-mod-php7.0
                      apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
                      apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
                      

                      This installs the packages for the Nextcloud core system. libapache2-mod-php7.0 provides the following PHP extensions: bcmath bz2 calendar Core ctype date dba dom ereg exif fileinfo filter ftp gettext hash iconv libxml mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xmlreader xmlwriter zlib. If you are planning on running additional apps, keep in mind that they might require additional packages. See Prerequisites for details.

                      At the installation of the MySQL/MariaDB server, you will be prompted to create a root password. Be sure to remember your password as you will need it during Nextcloud database setup.


                      sudo apt-get install apache2 mariadb-server libapache2-mod-php7.0
                      Reading package lists... Done
                      Building dependency tree
                      Reading state information... Done
                      E: Unable to locate package libapache2-mod-php7.0
                      E: Couldn't find any package by regex 'libapache2-mod-php7.0'
                      
                      

                      Do apt-cache search libapache2. That should get you everything like that. You may have to add the php7 repo to apt on Raspian.

                      https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/

                      G 1 Reply Last reply Reply Quote 1
                      • G
                        gjacobse @coliver
                        last edited by

                        @coliver

                        This is the output from that:

                         apt-cache search libapache2
                        libapache-mod-jk-doc - Documentation of libapache2-mod-jk package
                        libapache2-authcassimple-perl - Apache2 module to authenticate trough a CAS server
                        libapache2-authcookie-perl - Perl Authentication and Authorization via cookies
                        libapache2-authenntlm-perl - module for Microsoft NTLM and Basic User Authentication
                        libapache2-mod-apparmor - changehat AppArmor library as an Apache module
                        libapache2-mod-apreq2 - generic Apache request library - Apache module
                        libapache2-mod-auth-cas - CAS authentication module for Apache2
                        libapache2-mod-auth-gssapi - GSSAPI Authentication module for Apache2
                        libapache2-mod-auth-kerb - apache2 module for Kerberos authentication
                        libapache2-mod-auth-mellon - SAML 2.0 authentication module for Apache
                        libapache2-mod-auth-memcookie - Apache2 authentication and authorization module.
                        libapache2-mod-auth-ntlm-winbind - apache2 module for NTLM authentication against Winbind
                        libapache2-mod-auth-openid - OpenID authentication module for Apache2
                        libapache2-mod-auth-openidc - OpenID Connect authentication module for Apache
                        libapache2-mod-auth-pgsql - Module for Apache2 which provides PostgreSQL authentication
                        libapache2-mod-auth-plain - Module for Apache2 which provides plaintext authentication
                        libapache2-mod-auth-pubtkt - key-based single-sign-on authentication module for Apache
                        libapache2-mod-auth-radius - Apache 2.x module for RADIUS authentication
                        libapache2-mod-auth-tkt - lightweight single-sign-on authentication module for Apache
                        libapache2-mod-authn-sasl - SASL authentication backend provider for Apache
                        libapache2-mod-authn-webid - WebID FOAF+SSL authentication module for Apache
                        libapache2-mod-authn-yubikey - Yubikey authentication provider for Apache
                        libapache2-mod-authnz-external - authenticate Apache against external authentication services
                        libapache2-mod-authnz-pam - PAM authorization checker and PAM Basic Authentication provider
                        libapache2-mod-authnz-persona - Apache module implementing Persona authentication
                        libapache2-mod-authz-securepass - Apache2 module for authorizing SecurePass users
                        libapache2-mod-authz-unixgroup - access control based on on unix group membership for Apache
                        libapache2-mod-axis2c - Apache web services engine - apache module
                        libapache2-mod-bw - bandwidth limiting module for apache2
                        libapache2-mod-dacs - Distributed Access Control System (DACS) - Apache Module
                        libapache2-mod-defensible - module for Apache2 which provides DNSBL usage
                        libapache2-mod-dnssd - Zeroconf support for Apache 2 via avahi
                        libapache2-mod-encoding - Apache2 module for non-ascii filename interoperability
                        libapache2-mod-evasive - evasive module to minimize HTTP DoS or brute force attacks
                        libapache2-mod-fcgid - FastCGI interface module for Apache 2
                        libapache2-mod-fcgid-dbg - debugging symbols for mod_fcgid
                        libapache2-mod-form - Apache module to decode data submitted from Web forms
                        libapache2-mod-form-dev - Apache module to decode data submitted from Web forms (development files)
                        libapache2-mod-geoip - GeoIP support for apache2
                        libapache2-mod-gnutls - Apache module for SSL and TLS encryption with GnuTLS
                        libapache2-mod-intercept-form-submit - Apache module to intercept login form submission and run PAM authentication
                        libapache2-mod-jk - Apache 2 connector for the Tomcat Java servlet engine
                        libapache2-mod-ldap-userdir - Apache module that provides UserDir lookups via LDAP
                        libapache2-mod-ldap-userdir-dbg - Debugging symbols for mod_ldap_userdir
                        libapache2-mod-lisp - An Apache2 module that interfaces with Lisp environments
                        libapache2-mod-log-slow - Apache module for logging of slow requests handling
                        libapache2-mod-log-sql - Use SQL to store/write your Apache queries logs - Base
                        libapache2-mod-log-sql-dbi - Use SQL to store/write your Apache queries logs - DBI interface
                        libapache2-mod-log-sql-mysql - Use SQL to store/write your Apache queries logs - MySQL interface
                        libapache2-mod-log-sql-ssl - Use SQL to store/write your Apache queries logs - SSL extension
                        libapache2-mod-lookup-identity - Apache module to retrieve additional information about the authenticated user
                        libapache2-mod-macro - Transitional package for apache2-bin
                        libapache2-mod-mapcache - tile caching server - Apache module
                        libapache2-mod-mime-xattr - Apache2 module to get MIME info from filesystem extended attributes
                        libapache2-mod-mono - Apache module for running ASP.NET applications on Mono
                        libapache2-mod-musicindex - Browse, stream, download and search through MP3/Ogg/FLAC/MP4 files
                        libapache2-mod-neko - Apache module for running server-side Neko programs
                        libapache2-mod-netcgi-apache - OCaml application-level Internet libraries - netcgi2 Apache2 connector
                        libapache2-mod-nss - NSS-based SSL module for Apache2
                        libapache2-mod-parser3 - Parser 3, HTML-embedded scripting language (Apache2 module)
                        libapache2-mod-passenger - Rails and Rack support for Apache2
                        libapache2-mod-perl2 - Integration of perl with the Apache2 web server
                        libapache2-mod-perl2-dev - Integration of perl with the Apache2 web server - development files
                        libapache2-mod-perl2-doc - Integration of perl with the Apache2 web server - documentation
                        libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
                        libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)
                        libapache2-mod-proxy-html - Transitional package for apache2-bin
                        libapache2-mod-proxy-msrpc - Apache module for Outlook Anywhere support in reverse proxy setups
                        libapache2-mod-proxy-uwsgi - uwsgi proxy module for Apache2 (mod_uwsgi)
                        libapache2-mod-proxy-uwsgi-dbg - debugging symbols for Apache2 mod_proxy_uwsgi
                        libapache2-mod-python - Python-embedding module for Apache 2
                        libapache2-mod-python-doc - Python-embedding module for Apache 2 - documentation
                        libapache2-mod-qos - quality of service module for the apache2
                        libapache2-mod-removeip - Module to remove IP from apache2's logs
                        libapache2-mod-rivet - Server-side Tcl programming system combining ease of use and power
                        libapache2-mod-rivet-doc - Documentation for Rivet, a server-side Tcl programming system
                        libapache2-mod-rpaf - module for Apache2 which takes the last IP from the 'X-Forwarded-For' header
                        libapache2-mod-ruid2 - suexec module for Apache 2
                        libapache2-mod-ruwsgi - uwsgi module for Apache2 (mod_Ruwsgi)
                        libapache2-mod-ruwsgi-dbg - debugging symbols for Apache2 mod_Ruwsgi
                        libapache2-mod-scgi - Apache module implementing the SCGI protocol
                        libapache2-mod-security2 - Tighten web applications security for Apache
                        libapache2-mod-shib2 - Federated web single sign-on system (Apache module)
                        libapache2-mod-spamhaus - Apache DNSBL module that blocks listed IP addresses
                        libapache2-mod-suphp - Apache2 module to run PHP scripts with the owner permissions
                        libapache2-mod-svn - Apache Subversion server modules for Apache httpd
                        libapache2-mod-upload-progress - upload progress support for the Apache web server
                        libapache2-mod-uwsgi - uwsgi module for Apache2 (mod_uwsgi)
                        libapache2-mod-uwsgi-dbg - debugging symbols for Apache2 mod_uwsgi
                        libapache2-mod-vhost-ldap - Apache 2 module for Virtual Hosting from LDAP
                        libapache2-mod-watchcat - Process monitoring Apache module
                        libapache2-mod-webauth - Apache module for WebAuth authentication
                        libapache2-mod-webauthldap - Apache module for WebAuth LDAP lookup and authorization
                        libapache2-mod-webkdc - Apache modules for a WebAuth authentication KDC
                        libapache2-mod-wsgi - Python WSGI adapter module for Apache
                        libapache2-mod-wsgi-py3 - Python 3 WSGI adapter module for Apache
                        libapache2-mod-xsendfile - Serve large static files efficiently from web applications
                        libapache2-modsecurity - Dummy transitional package
                        libapache2-mpm-itk - multiuser module for Apache
                        libapache2-reload-perl - module for reloading Perl modules when changed on disk
                        libapache2-request-perl - generic Apache request library - Perl modules
                        libapache2-sitecontrol-perl - perl web site authentication/authorization system
                        libapache2-svn - Apache Subversion server modules for Apache httpd (dummy package)
                        libapache2-webauth - Transitional package for WebAuth Apache modules
                        libapache2-webkdc - Transitional package for WebAuth authentication KDC
                        liblinux-pid-perl - wrapper around the getpid() and getppid() C functions
                        libocamlnet-ocaml-dev - OCaml application-level Internet libraries - core development libraries
                        mapcache-cgi - tile caching server - CGI binary
                        mono-apache-server2 - ASP.NET 2.0 backend for mod_mono2 Apache module
                        mono-apache-server4 - ASP.NET 4.5 backend for mod_mono Apache module
                        mono-fastcgi-server2 - ASP.NET 2.0 backend for FastCGI webservers
                        mono-fastcgi-server4 - ASP.NET 4.0 backend for FastCGI webservers
                        mono-fpm-server - ASP.NET backend for FastCGI Process Manager
                        php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
                        php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
                        shibboleth-sp2-utils - Federated web single sign-on system (daemon and utilities)
                        subversion-dbg - Debug symbols for Apache Subversion
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • C
                          coliver
                          last edited by

                          Looks like you need to add the php7 repo. Check the link in my last post.

                          1 Reply Last reply Reply Quote 2
                          • wirestyle22W
                            wirestyle22
                            last edited by wirestyle22

                            It's definitely PHP 7. This is a thing that occurs with the newer versions of NextCloud.

                            1 Reply Last reply Reply Quote 1
                            • G
                              gjacobse
                              last edited by

                              well now I have a page that looks like this:

                              0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                              But I just finished @coliver page and am back to the NextCloud install

                              wirestyle22W 1 Reply Last reply Reply Quote 0
                              • wirestyle22W
                                wirestyle22 @gjacobse
                                last edited by wirestyle22

                                @gjacobse said in Nextcloud Running on Raspian:

                                well now I have a page that looks like this:

                                0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                                But I just finished @coliver page and am back to the NextCloud install

                                From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

                                https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

                                T 1 Reply Last reply Reply Quote 1
                                • T
                                  travisdh1 @wirestyle22
                                  last edited by

                                  @wirestyle22 said in Nextcloud Running on Raspian:

                                  @gjacobse said in Nextcloud Running on Raspian:

                                  well now I have a page that looks like this:

                                  0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                                  But I just finished @coliver page and am back to the NextCloud install

                                  From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

                                  https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

                                  Just off the top of my head

                                  chown -R apache2:apache2 /var/www/html
                                  
                                  G 1 Reply Last reply Reply Quote 0
                                  • G
                                    gjacobse @travisdh1
                                    last edited by

                                    @travisdh1 said in Nextcloud Running on Raspian:

                                    @wirestyle22 said in Nextcloud Running on Raspian:

                                    @gjacobse said in Nextcloud Running on Raspian:

                                    well now I have a page that looks like this:

                                    0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                                    But I just finished @coliver page and am back to the NextCloud install

                                    From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

                                    https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

                                    Just off the top of my head

                                    chown -R apache2:apache2 /var/www/html
                                    
                                    sudo chown -R apache2:apache2 /var/www/html
                                    chown: invalid user: ‘apache2:apache2’
                                    
                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      travisdh1 @gjacobse
                                      last edited by

                                      @gjacobse said in Nextcloud Running on Raspian:

                                      @travisdh1 said in Nextcloud Running on Raspian:

                                      @wirestyle22 said in Nextcloud Running on Raspian:

                                      @gjacobse said in Nextcloud Running on Raspian:

                                      well now I have a page that looks like this:

                                      0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                                      But I just finished @coliver page and am back to the NextCloud install

                                      From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

                                      https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

                                      Just off the top of my head

                                      chown -R apache2:apache2 /var/www/html
                                      
                                      sudo chown -R apache2:apache2 /var/www/html
                                      chown: invalid user: ‘apache2:apache2’
                                      

                                      Must have a different user for the html server than I'm used to on Debian.

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        gjacobse
                                        last edited by

                                        Started from Zero and and going step by step with this new information. It would have taken ME longer to find and remove all the files and folders from Nextcloud,... so starting from a fresh install was easier and faster.

                                        Apache2 is running and confirmed. someone want a rematch on AOE II right now.

                                        1 Reply Last reply Reply Quote 1
                                        • G
                                          gjacobse
                                          last edited by

                                          Okay - got to this stage:

                                          Next we’ll test PHP. Run the following command to create a test file:

                                          echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                                          

                                          and get:

                                          pi:~ $ echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                                          -bash: /var/www/html/phpinfo.php: Permission denied
                                          
                                          pi:~ $ sudo echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                                          -bash: /var/www/html/phpinfo.php: Permission denied
                                          

                                          trying

                                          sudo chmod -R o+rw /var/www
                                          

                                          That worked.

                                          1 Reply Last reply Reply Quote 1
                                          • iroalI
                                            iroal
                                            last edited by

                                            Have it good perfomance?

                                            Previous versions of Owncloud were very slow in Raspberry.

                                            Regards

                                            T 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post