Author Topic: PHP Warning: PHP Startup: Unable to load dynamic library...  (Read 968 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
PHP Warning: PHP Startup: Unable to load dynamic library...
« on: September 05, 2018, 09:44:02 AM »
Hi,

After a new installation of the CWP and a selected version of the PHP with the PHP switcher 7.2.9, in the daily messages (Anacron job 'cron.daily' on hosting.v.com) I have the following text:

"/etc/cron.daily/cwp:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0"


What can I do?
Thanks in advance!

BR
Venty

Offline
*****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #1 on: September 05, 2018, 12:55:29 PM »
reinstall php 7.2.9 with memcached selected or remove the memcached/memcache extension line from php.ini

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #2 on: September 06, 2018, 06:18:05 AM »
Hi,

memcached is necessary so I would not remove remove the memcached/memcache extension line from php.ini ...

For the reinstallation php 7.2.9 with memcached, these few reinstallations with PHP switcher would not lead to further errors in the panel's work, to the creation of temporary files that will make the system work harder or other...

By the way, when (in firrs time) I chose to install php 7.2.9 I had put the tick on memcached...


What I do?!?  now I repeat it?? PHP switcher?!?

Thanks i n advance!


BR
Venty
« Last Edit: September 06, 2018, 06:19:36 AM by venty »

Offline
*****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #3 on: September 06, 2018, 02:49:19 PM »
you need to have memcached not memcache for php 7.xx

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #4 on: September 06, 2018, 03:24:57 PM »
 :reinstall or remove in php.ini

Offline
****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #5 on: September 06, 2018, 05:47:21 PM »
what is output of

Code: [Select]
/usr/local/cwp/php71/bin/php --ini

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #6 on: September 06, 2018, 06:38:39 PM »
 ???

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #7 on: September 06, 2018, 08:38:34 PM »
HP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/cwp/php71
Loaded Configuration File:         /usr/local/cwp/php71/php.ini
Scan for additional .ini files in: /usr/local/cwp/php71/php.d
Additional .ini files parsed:      (none)

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #8 on: September 06, 2018, 08:49:50 PM »
And... I have new installation of the CWP and a selected version of the PHP 7.2.9 with the PHP switcher ... I've never worked with a version of the PHP 7.1.x???

Offline
****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #9 on: September 06, 2018, 09:16:03 PM »
what does this gives?

Code: [Select]
grep -n -A1 memcache.so /usr/local/cwp/php71/php.ini

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #10 on: September 06, 2018, 09:24:17 PM »
1920:extension=memcache.so
green:white=red

Offline
****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #11 on: September 06, 2018, 09:56:37 PM »
nano /usr/local/cwp/php71/php.ini

press ctrl+w ctrl+t and enter 1920

Comment out the line like below

# extension=memcache.so

save and restart cwp-php

service cwp-phpfpm restart

now check if you get the error

/usr/local/cwp/php71/bin/php -v

Offline
****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #12 on: September 06, 2018, 09:57:55 PM »
After that you can ask cwp development team how memcache got installed there.

Offline
***
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #13 on: September 06, 2018, 10:01:28 PM »
but that's going to comment memcache.so, and memcache will not be active???

Offline
****
Re: PHP Warning: PHP Startup: Unable to load dynamic library...
« Reply #14 on: September 06, 2018, 10:16:05 PM »
you dont have memcache installed on cwpserver php. How come you have its entry in its php file?