Home > Article > Backend Development > linux - how to find php-config file
After using yum to upgrade php, the php-config file cannot be found when installing the extension?
After using yum to upgrade php, the php-config file cannot be found when installing the extension?
Generally in /etc/config-php in the environment installation directory
First check if there is php-congig (mine is under /usr/local/bin/php-config
, if not, you can find it through find
), if there is, add - when compiling -with-php-config=path/to/php-config
, if not, you need to execute: yum install php-devel
(This has not been verified, I have installed it)
find / -name php-config find command just search it