Jack Posted May 5, 2020 Share Posted May 5, 2020 (edited) --------------------------------------------- 安装PHP扩展模块 exif、gmp --------------------------------------------- 查看已安装的PHP扩展模块 没有exif、gmp (push推送用途) /usr/local/php/bin/php -m 解压PHP原码包 cd /root/lnmp1.9/src/ tar jxvf php-8.1.13.tar.bz2 ----------------------------------------- make exif 扩展模块 ----------------------------------------- cd /root/lnmp1.9/src/php-8.1.13/ext/ cd exif/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install ----------------------------------------- make gmp 扩展模块 ----------------------------------------- cd /root/lnmp1.9/src/php-8.1.13/ext/ cd gmp/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install ----------------------------------------- 启用PHP扩展模块 exif、gmp ----------------------------------------- 修改php.ini vi /usr/local/php/etc/php.ini 搜索 ;zend_extension=opcache 在 ;zend_extension=opcache 此处底下添加 extension = "exif.so" extension = "gmp.so" 保存并离开 :wq 重启 /etc/rc.d/init.d/php-fpm restart 查看已安装的PHP扩展模块 可以找到exif、gmp /usr/local/php/bin/php -m --------------------------------------------- 更新curl版本 --------------------------------------------- 查看curl版本 curl --version 得知curl版本 curl 7.61.1 (x86_64-redhat-linux-gnu) xxxxxxxxxxxxxxxxxxxxxxx IPS论坛需要cURL版本高于7.36版本 因此在LNMP 1.9版本不用更新curl Edited December 6, 2022 by Jack Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now