PHP Warning: PHP Startup: Unable to load dynamic library...

Started by venty, September 05, 2018, 09:44:02 AM

Previous topic - Next topic

venty

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

Sandeep

reinstall php 7.2.9 with memcached selected or remove the memcached/memcache extension line from php.ini

venty

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

Sandeep


venty


bullten



venty

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)

venty

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???

bullten

what does this gives?

grep -n -A1 memcache.so /usr/local/cwp/php71/php.ini

venty


bullten

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

bullten

After that you can ask cwp development team how memcache got installed there.

venty

but that's going to comment memcache.so, and memcache will not be active???

bullten

you dont have memcache installed on cwpserver php. How come you have its entry in its php file?