smbclient in php

magis010

Verified User
Joined
Dec 5, 2016
Messages
51
hello,

i am trying to enable smbclient for nextcloud but i am unable to get it active.

i have installed the smbclient on ssh i only need the option in php

the user is on php73 and the php mode is php-fpm

Thanks alot!
 
i only need the option in php
Did you add it to the php.ini of php73?

Like is mentioned in this thread I found:
check the manual of user laoistom.

In your case the php.ini would be located in:
/usr/local/php73/lib/php.ini

You have to restart php-fpm73 after making any changes.
 
yes i tried to follow that but cant figure out where to put the enabled option and before i break something and have to go back 4 hours into the time (Backup)
 
You can't break things if nothing is broken yet by just adding the extension to the php.in file.

Just ad this line to the php.ini I mentioned, you can add it at the bottom of the php.ini:
extensions=smbclient.so
then issue the restart command:
systemctl restart php-fpm73
this enables it.

It won't work or you get issues? Only thing you have to do is to remove that line from the php.ini and restart service again and you're back to where you are now, so no 4 hours of work needed.
 
You can't break things if nothing is broken yet by just adding the extension to the php.in file.

Just ad this line to the php.ini I mentioned, you can add it at the bottom of the php.ini:
extensions=smbclient.so
then issue the restart command:
systemctl restart php-fpm73
this enables it.

It won't work or you get issues? Only thing you have to do is to remove that line from the php.ini and restart service again and you're back to where you are now, so no 4 hours of work needed.
ok so i added it but the message keeps there i guess its harder to enable?
 
Please don't quote full posts. It keep things more clear and I know what I've written. ;)

No it should be enabled now. If it's not then probably nowadays it needs to be done differently.

You say "the message keeps there". What exactly is the message?
Also, if you put a phpinfo.php in that account and look at it, doesn't the smbclient show up in there?
You installed the smbclient via pecl?
 
Back
Top