PHP版本升级

参考链接 https://www.cnblogs.com/cxscode/p/7400452.html

更改 服务器  /etc/init.d/php-fpm  --prefix 指定php文件路径

更改 环境变量

./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

安装常见错误 地址参考 : https://blog.csdn.net/a1779078902/article/details/82502145

解决 服务器php-cli下 加载配置文件问题 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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。