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'
-
@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/
-
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
-
Looks like you need to add the php7 repo. Check the link in my last post.
-
It's definitely PHP 7. This is a thing that occurs with the newer versions of NextCloud.
-
well now I have a page that looks like this:
But I just finished @coliver page and am back to the NextCloud install
-
@gjacobse said in Nextcloud Running on Raspian:
well now I have a page that looks like this:
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
-
@wirestyle22 said in Nextcloud Running on Raspian:
@gjacobse said in Nextcloud Running on Raspian:
well now I have a page that looks like this:
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
-
@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:
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’
-
@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:
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.
-
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.
-
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.
-
Have it good perfomance?
Previous versions of Owncloud were very slow in Raspberry.
Regards
-
I'm willing to bet that even with the Raspberry Pi 3 it's still on the slower side. Glad you got it working @gjacobse
-
@iroal said in Nextcloud Running on Raspian:
Have it good perfomance?
Previous versions of Owncloud were very slow in Raspberry.
Regards
Good performance != Raspberry Pi, ever.
-
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
-
@gjacobse said in Nextcloud Running on Raspian:
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
@gjacobse said in Nextcloud Running on Raspian:
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
Make sure it's sites-available ... ?
-
ran this thinking it would allow me to create the file
sudo chmod -R o+rw /etc/apache2/sites-available/
same issue.. unable to create the file
-
@dafyre said in Nextcloud Running on Raspian:
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All<IfModule mod_dav.c>
Dav off
</IfModule>SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud</Directory>
Ah - thanks - didn't catch that.
-
Looks like I missed something...
Starting with a simple reboot - then will step backwards