Ubuntu – Unable to load dynamic library ‘/usr/lib/php/20151012/php_soap.dll’ from sessionclean cron

cronphp7

HP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' – /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0

I just noticed I am getting this warning with the sessionclean cron.
I have php7 installed on ubuntu 16.04.

How can I resolve this error? Is my sessionclean old in trying to use dlls?

Best Answer

You're trying to use a Windows library (a DLL) on a Linux system. DLLs don't work on Linux (apart from emulating with Wine, developing with Mono or such). Additionally, the .dll file you're referencing in your config isn't even there ;)

You need the corresponding .so library, which should be supplied by the package php7.0-soap. In general, many PHP modules can be found in their respective packages, like php7.0-mysql, php7.0-intl or php7.0-cgi.