NextCloudPi (NCP) Setup Warnings

Happy Monday. Could someone review and advise on how to resolve this for NextCloudPi (NCP)? I would greatly appreciate it.

Thank you very much.

This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.

imagick

The “Referrer-Policy” HTTP header is not set to “no-referrer”, “no-referrer-when-downgrade”, “strict-origin”, “strict-origin-when-cross-origin” or “same-origin”.

1 Like

for the imagic related error simple install the php-imagic module by using the command below:

sudo apt-get install php7.0-imagick

for any other distribution use the respect install command and also check your php version.

I’m on debian buster running NCP, I ran

php --version

and got

PHP 7.3.11-1~deb10u1 (cli) (built: Oct 26 2019 14:14:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.11-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies

I tried installing php7.3.11-1-imagick and php7.3.11-imagick, and neither were recognized as existing. So then I installed:

sudo apt-get install php7.3-imagick

and got this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php-imagick' instead of 'php7.3-imagick'
The following package was automatically installed and is no longer required:
  libupsclient4
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  ttf-dejavu-core
The following NEW packages will be installed:
  php-imagick ttf-dejavu-core
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 134 kB of archives.
After this operation, 547 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.us.debian.org/debian buster/main amd64 php-imagick amd64 3.4.3-4.1 [102 kB]
Get:2 http://ftp.us.debian.org/debian buster/main amd64 ttf-dejavu-core all 2.37-1 [32.1 kB]
Fetched 134 kB in 0s (291 kB/s)            
Selecting previously unselected package php-imagick.
(Reading database ... 192910 files and directories currently installed.)
Preparing to unpack .../php-imagick_3.4.3-4.1_amd64.deb ...
Unpacking php-imagick (3.4.3-4.1) ...
dpkg: warning: unable to delete old directory '/etc/php/7.1/mods-available': Directory not empty
dpkg: warning: unable to delete old directory '/etc/php/7.1': Directory not empty
dpkg: warning: unable to delete old directory '/etc/php/7.0/mods-available': Directory not empty
dpkg: warning: unable to delete old directory '/etc/php/7.0': Directory not empty
dpkg: warning: unable to delete old directory '/etc/php/5.6/mods-available': Directory not empty
dpkg: warning: unable to delete old directory '/etc/php/5.6': Directory not empty
Selecting previously unselected package ttf-dejavu-core.
Preparing to unpack .../ttf-dejavu-core_2.37-1_all.deb ...
Unpacking ttf-dejavu-core (2.37-1) ...
Setting up php-imagick (3.4.3-4.1) ...
Removing obsolete conffile /etc/php/7.1/mods-available/imagick.ini ...
Removing obsolete conffile /etc/php/7.2/mods-available/imagick.ini ...
Removing obsolete conffile /etc/php/5.6/mods-available/imagick.ini ...
Removing obsolete conffile /etc/php/7.0/mods-available/imagick.ini ...
Setting up ttf-dejavu-core (2.37-1) ...
Processing triggers for fontconfig (2.13.1-2) ...

Did I install the wrong version? What is the deal with the old directory not being able to be deleted? It says it’s not empty but idk whether it’s contents is safe to delete?

Working imagick install for NCP debian 10:

root@server:# apt update
root@server:# apt install php-imagick imagemagick libmagickcore-6.q16-6

https://packages.debian.org/buster/php/php-imagick
https://packages.debian.org/buster/imagemagick
https://packages.debian.org/buster/libmagickcore-6.q16-6

Konki