I am stuck for 3 days. I used locate php.ini
to find all php.ini files and its seem only one in my system, I also used phpinfo
to locate and its points to same file.
when I run php
, its show a its missing shared file for zend debugger extension.
Warning: PHP Startup: `Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0`
I have gone through the php.ini
file
locate php.ini
/opt/lampp/etc/php.ini
/opt/lampp/etc/php.ini-pre1.7.2
I found no trace of string for debug extension. How get rid of it. I am also trying to add gmp extension .
php --ini
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
after running php --ini
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File: /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
tasksel
orapt
to install them? – Dan Oct 11 '17 at 12:46locate gmp.so
and copy it to/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/
– Panther Oct 11 '17 at 14:11locate gmp.so
and copied to back to/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/
and I got this `PHP Warning: PHP Startup: gmp: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20160303 These options need to match in Unknown on line 0Warning: PHP Startup: gmp: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20160303 These options need to match in Unknown on line 0`
– user746157 Oct 12 '17 at 05:24