Hello NC Forum,
I am trying to install Nextcloud manually on a clean+headless (buster lite) Raspberry Pi 4 as a way to solve some serious storage issues and learn some Linux-ey server goodness at the same time. Looking for some help with installation please - I am novice at this - don’t assume I’ve done “obvious” stuff!!
Before going direct to the NC documentation, I did try a few tutorials online but found them to skim over details and left me hanging when things didn’t work out they asserted they should.
I am considering a NextCloudpi image if I feel like I’ve not understood what I’ve done/how it’s secure, but for the time being I’m digging in…
I’m stuck at stage 3 here
I was getting the error
sudo: php: command not found
So, despite earlier NC documentation saying “The Nextcloud .tar archive contains all of the required PHP modules”. I then installed PHP: “sudo apt install php libapache2-mod-php -y”
This now changes the problem I have at stage 3:
“Cannot write into “config” directory!”
full error below *
The file /etc/apache2/sites-available/nextcloud.conf is there and contains the code specified in the install instructions. (see below **)
Opening the web interface to /serverIP/nextcloud just returns a bunch of PHP starting with:
"<?php
/**
- @copyright Copyright (c) 2016, ownCloud, Inc."
Can anybody please prod me in the right direction? More than happy to run with a few links or suggestions if you can spare me those. The fact that PHP was missing makes me think I might need to return to the download and un-tarring of the NC Server tarball?
Thanks in advance
AF
*full error:
@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ maintenance:install --database “mysql” --database-name “nextcloud” --database-user “root” --database-pass “password” --admin-user “admin” --admin-pass “password”
Cannot write into “config” directory!
This can usually be fixed by giving the webserver write access to the config directory
See https://docs.nextcloud.com/server/18/go.php?to=admin-dir_permissionsOr, if you prefer to keep config.php file read only, set the option “config_is_read_only” to true in it.
See Configuration Parameters — Nextcloud latest Administration Manual latest documentation
PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 83
{“reqId”:“q7IOIbPQr4FTweLr0Zwf”,“level”:3,“time”:“2020-02-08T17:30:11+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log at /var/www/nextcloud/lib/private/Log/File.php#83”,“userAgent”:“–”,“version”:“”}
{“reqId”:“q7IOIbPQr4FTweLr0Zwf”,“level”:3,“time”:“2020-02-08T17:30:11+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”,“userAgent”:“–”,“version”:“”}
**Code in /etc/apache2/sites-available/nextcloud.conf: (TIP: I suspected “Alias /nextcloud” is supposed to be something specific…but fiddling with this doesn’t appear to help or break it any further. I can also comment out the contents of this file to no effect, so I suspect it’s being ignored)
Alias /nextcloud “/var/www/nextcloud/”
<Directory /var/www/nextcloud/>
Dav off
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews