"smbclient" is not installed

Hi. I install new Ubuntu 18.04 to and integred Nextcloud 16.0.5.
I configure all, bot SMB not working.
I have massage
“smbclient” is not installed. Mounting of “SMB / CIFS”, “SMB / CIFS using OC login” is not possible. Please ask your system administrator to install it.

I install SMB, but not work.

On Terminal, type the commands below.

sudo apt-get install libsmbclient
sudo apt-get install smbclient
sudo apt install smbclient php-smbclient
nano /etc/samba/smb.conf
#add the lines below in [global]
client min protocol = SMB2
client max protocol = SMB3

Please help me, thanks!!

The php module needs to be installed for php web and also for php cli for the same php version. So first you should check the php versions being used:

PHP cli: execute the command "php --version"
PHP web: create a php script which contain the following lines and open it using your web browser:

<?php
echo "PHP version: " . phpversion() . "<br>\n";
?>

Second, you should double-check which php modules are loaded:

PHP cli: execute the command "php -m"
PHP web: create a php script which contain the following lines and open it using your web browser:

<?php
 print_r(get_loaded_extensions());
?>

Finally you can install the SMB Test app for further analysis.

PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.19-0ubuntu0.18.04.2, Copyright © 1999-2018, by Zend Technologies

Please help me how to create php script, please write me a complet terminal procedure, thank you so much

What is this, the output of “php --version”?
Where is the output of “php -m”?

Unfortunately I’m personally not using Ubuntu and also don’t know in which directory etc. you’ve installed the software nor which editor your preferred one is. Use a text editor, place the given lines in it, save the file with the ending .php in the web server document root and use a web browser to open it.

alarmcom@nextcloud : ~ $ php -v

PHP 7.2.24-0ubuntu0.18.04.1 (cli) (built: Oct 28 2019 12:07:07) ( NTS )

Copyright © 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies

with Zend OPcache v7.2.24-0ubuntu0.18.04.1, Copyright © 1999-2018, by Zend Technologies

alarmcom@nextcloud : ~ $ mc

alarmcom@nextcloud : ~ $ php -m

[PHP Modules]

calendar

Core

ctype

date

exif

fileinfo

filter

ftp

gettext

hash

iconv

json

libsmbclient

libxml

openssl

pcntl

pcre

PDO

Phar

posix

readline

Reflection

session

shmop

smbclient

sockets

sodium

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

Zend OPcache

zlib

[Zend Modules]

Zend OPcache

Ok, the PHP cli seems to be fine, what about the PHP web modules?

And how can I see the PHP web modules? Because I can’t access the site via ftp only just via SSH. So I can’t run phpinfo();

Thank you for answer!

I already described what need to be done in this posting, see


I know this is an older question… however you are likely running nextcloud in a docker container… you would need to add the client to the container with something like… https://www.tecmint.com/install-run-and-delete-applications-inside-docker-containers/