centos编译安装php7.3.8

1.最小化安装centos7.6

yum update -y 
yum install -y vim wget cmake gcc gcc-c++ autoconf pcre-devel libxml2-devel 
//openssl
openssl openssl-devel 
//composer
git 
//bz2
bzip2 bzip2-devel
//gd
libpng libpng-devel
//curl
curl-devel
//gd
gd gd-devel freetype
//xsl
libxslt

./configure
make 
make install
yum -y install libxml2 
yum -y install libxml2-devel 
yum -y install openssl 
yum -y install openssl-devel 
yum -y install curl-devel 
yum -y install libjpeg-devel 
yum -y install libpng-devel 
yum -y install freetype-devel
yum -y install bzip2-devel
yum -y install libmcrypt libmcrypt-devel
yum -y install postgresql-devel
yum -y install aspell-devel
yum -y install readline-devel
yum -y install libxslt-devel
yum -y install net-snmp-devel
yum -y install unixODBC-devel
yum -y install libicu-devel
yum -y install libc-client-devel
yum -y install libXpm-devel
yum -y install libvpx-devel
yum -y install enchant-devel
yum -y install openldap
yum -y install openldap-devel
yum -y install db4-devel
yum -y install gmp-devel
yum -y install sqlite-devel
yum -y install mysql-devel



2.

//查看配置信息
php -ini

//查看使用的php.ini配置文件
php -ini |grep 'Configuration File'

//查看模块
php -m 

//查看拓展详情

php --ri mysqli


3.

如果编译拓展错误,需要配置环境重新编译

make clean

安装jpeg
http://www.ijg.org/

./configure --prefix=/usr/local/jpeg --enable-shared --enable-static
make && make install


3.配置php.ini php-fpm.conf 

打赏

看恩吧
网站不承担任何有关评论的责任
  • 最新评论
  • 总共条评论
取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦