- Joined
- Dec 8, 2012
- Messages
- 773
- Points
- 63
Hello,
Before upgraded to PHP7 on my VPS, I used PHP 5.6 and installed Memcached successfully on my VPS and used it for my websites.
But, after installed PHP7, I got this error on the VPS with PHP7
# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
I downgraded PHP 7 back to PHP 5.6
But it is still showing same error when checking with php -v
the problem is, when I add memcache module into PHP
to
then it didn't work like before.
It showed error when checking with php -v
and memcache module doesn't appear when checking with phpinfo() any more.
Does any one know how to solve this problem?
Thanks in advance!
Before upgraded to PHP7 on my VPS, I used PHP 5.6 and installed Memcached successfully on my VPS and used it for my websites.
But, after installed PHP7, I got this error on the VPS with PHP7
# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
I downgraded PHP 7 back to PHP 5.6
But it is still showing same error when checking with php -v
Code:
[root@serverh ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.6.25 (cli) (built: Sep 13 2016 01:27:52)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Code:
extension=memcache.so
Code:
/usr/local/lib/php.ini
then it didn't work like before.
It showed error when checking with php -v
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
Does any one know how to solve this problem?
Thanks in advance!