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 https://docs.nextcloud.com/server/18/go.php?to=admin-config
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