php7.3.9 源码安装

常见问题和解决方法》》》》》https://blog.csdn.net/sqlquan/article/details/101123205

php7.3新函数https://www.php.net/manual/zh/migration73.new-functions.php

php7.3新常量https://www.php.net/manual/zh/migration73.constants.php

特性详解:https://blog.csdn.net/sqlquan/article/details/101126750

============================================这是一条分割线===============================

下载安装包 

 wget https://www.php.net/distributions/php-7.3.9.tar.gz

环境安装 

yum install -y autoconf glibc-headers gcc-c++ krb5-devel libwebp-devel libzip libzip-devel sqlite-devel oniguruma  curl-devel  bzip2 bzip2-devel libjpeg-devel libpng-devel freetype-devel libxslt libxslt-devel libzip-devel

版本选择去官网https://www.php.net/downloads.php

解压

 tar -xzf php-7.3.9.tar.gz

安装命令

./configure --prefix=/server/php --with-fpm-user=webu --with-fpm-group=webg --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-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip --enable-fpm

 

看到这个的时候就已经配置成功了



 执行编译与安装,时间会比较长

make && make install

看到这个界面我们已经安装成了

 

安装完找到不到php.ini

cd到源码安装目录执行一下命令,详细查看https://blog.csdn.net/sqlquan/article/details/97907414

cp php.ini-development  /server/php/lib/php.ini

最后执行设置环境变量,传送门https://blog.csdn.net/sqlquan/article/details/97905409

相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页