Php7.3安装步骤
推荐(免费):PHP7
首先安装(安装过了就不用安装了):
mysql:https://blog.csdn.net/qq_40200087/article/details/89479137
nginx:https://blog.csdn.net/qq_40200087/article/details/89504980
下载:https://www.php.net/downloads.php#v7.3.4
开发工具:yum groupinstall "Development Tools" -y
安装依赖:yum install libxml2-devel -y
yum install bzip2 bzip2-devel -y
yum install curl-devel -y
yum install libjpeg-devel -y
yum install libpng libpng-devel -y
yum install freetype-devel -y
yum install libxslt-devel -y
yum install libzip-devel -y
或者合到一起安装
yum install libxml2-devel bzip2 bzip2-devel curl-devel libjpeg-devel libpng libpng-devel freetype-devel libxslt-devel libzip-devel -y
解压:tar -zxvf php-xxx.tar.gz -C /usr/local/
进入到/usr/local 并修改名字cd /usr/local
mv php-7.3.xxx php7.3
编译cd /usr/local/php7.3
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-fpm-user=mysql --with-fpm-group=mysql --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli=mysqlnd --with-openssl --with-pcre-regex --with-pdo-mysql=mysqlnd --with-mysql=mysqlnd --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 --e