參考鏈接?https://www.cnblogs.com/cxscode/p/7400452.html
更改 服務(wù)器? /etc/init.d/php-fpm? --prefix 指定php文件路徑
更改 環(huán)境變量
./configure --prefix=/usr/local/php7.2.9 \
--with-curl \
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-iconv-dir \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir \
--with-mysqli \
--with-openssl \
--with-pcre-regex \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-pear \
--with-png-dir \
--with-xmlrpc \
--with-xsl \
--with-zlib \
--enable-fpm \
--enable-bcmath \
--enable-libxml \
--enable-inline-optimization \
--enable-gd-native-ttf \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvsem \
--enable-xml \
--enable-zip
安裝常見(jiàn)錯(cuò)誤 地址參考 :?https://blog.csdn.net/a1779078902/article/details/82502145
解決 服務(wù)器php-cli下 加載配置文件問(wèn)題 profile文件夾下 添加?
?# php.ini加載
export PATH="/usr/local/php-7.1.16/bin:$PATH"
參考:https://www.wandouip.com/t5i213279/
查看php加載ini配置? php -i | grep php.ini