# PHP Startup: Unable to load dynamic library '“smbclient.so”

**URL:** <https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691>\
**Category:** ℹ️ Support\
**Tags:** nc20, smb\
**Created:** [August 11, 2021, 9:28am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691 "2021-08-11T09:28:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![leadon](https://help.nextcloud.com/user_avatar/help.nextcloud.com/leadon/32/60330_2.png) [@leadon](https://help.nextcloud.com/u/leadon)\
**Post date:** [August 11, 2021, 9:28am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/1 "2021-08-11T09:28:13Z")

</div>

Hi,

i would like to fix the security warning i get in Administration → Overview.

The warning is: Missing index “fs\_size” in table “oc\_filecache”

I found in this forum the following solution:

```auto
sudo -u www-data /usr/bin/php /var/www/html/nextcloud/occ db:add-missing-indices

```

But when i’m doing this i get the following error:

```auto
PHP Warning: PHP Startup: Unable to load dynamic library '“smbclient.so”' (tried: /usr/lib/php/20190902/“smbclient.so” (/usr/lib/php/20190902/“smbclient.so”: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/“smbclient.so”.so (/usr/lib/php/20190902/“smbclient.so”.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Could not open input file: /var/www/html/nextcloud/occ

```

I also found a forum [post](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/61095) with the same issue but with no solution.

Does anyone knows what to do?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [August 11, 2021, 9:47am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/2 "2021-08-11T09:47:06Z")

</div>

Which operation system and version do you use?  
Perhaps Ubuntu 20.04 LTS or Debian Bullseye?  
I think there is no package “php-smbclient” with “smbclient.so” anymore.

Sorry i do not have a solution.  
Perhaps you can read [this](https://help.nextcloud.com/t/tutorial-upgrade-php-php-fmp-to-version-7-4-arbiam-20-11-nextcloudpi-20-02-no-errors-in-nextcloud-log/100415)

**Part "Install php smbclient"**  
Perhaps you can only download “smbclient.so” and put it in the correct directory.

---

<div class="post-metadata">

**Author:** ![leadon](https://help.nextcloud.com/user_avatar/help.nextcloud.com/leadon/32/60330_2.png) [@leadon](https://help.nextcloud.com/u/leadon)\
**Post date:** [August 11, 2021, 10:57am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/3 "2021-08-11T10:57:43Z")

</div>

Hi Devnull,

i’m using Ubuntu 20.04 LTS.  
Thanks for your tutorial - i’ve tried the whole smb process but it has no effect.

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [August 11, 2021, 11:35am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/4 "2021-08-11T11:35:18Z")

</div>

Found also [this](https://www.server-world.info/en/note?os=Ubuntu_20.04&p=nextcloud&f=8) for you.

If you not really need SMB you can use [local](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/local.html) or other [backends](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage_configuration_gui.html#available-storage-backends).

I use “local” because i use storage from the same server and without user management.

---

<div class="post-metadata">

**Author:** ![leadon](https://help.nextcloud.com/user_avatar/help.nextcloud.com/leadon/32/60330_2.png) [@leadon](https://help.nextcloud.com/u/leadon)\
**Post date:** [August 11, 2021, 11:38am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/5 "2021-08-11T11:38:22Z")

</div>

> [@devnull](#):
>
> Part “Install php smbclient”

Thanks, but i do need smb. Right now its working - little buggy - but working :-/

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 10:26am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/6 "2024-12-13T10:26:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 10:26am UTC](https://help.nextcloud.com/t/php-startup-unable-to-load-dynamic-library-smbclient-so/121691/7 "2024-12-13T10:26:17Z")

</div>


