如何安装Php7.3

  介绍

这篇文章给大家分享的是有关如何安装Php7.3的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

首先安装(安装过了就不用安装了):

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/地方/

进入到/usr/当地并修改名字

cd /usr/当地      mv  php-7.3.xxx , php7.3

编译

cd /usr/地方/php7.3       。/configure ——prefix=/usr/地方/php ——with-config-file-path=/usr/地方/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 ——使用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 ——enable-mbstring ——enable-opcache ——enable-pcntl ——enable-shmop ——enable-soap ——enable-sockets ——enable-sysvsem ——enable-sysvshm ——enable-xml  enable-fpm 编译完成后是以下样子      + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +   |,许可证:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,|   |,却;能够software  is  subject 用,PHP 许可,,available 却;能够拷贝,,,|   |,distribution 从而file 许可只拷贝,By  continuing 却;能够installation  |   |,过程,你断开连接;bound  by 从而terms  of 却;能够license 协议只,,,|   |,If 你;do  not  agree  with 从而terms  of 却;能够许可证,你must  abort  |   |,从而installation  process  at 却;能够只点,,,,,,,,,,,,,,,,,,,,,,,,,,|   + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +      Thank 你for  using  PHP。      config.status: creating  php7.spec   config.status: creating 主要/build-defs.h   config.status: phpize creating 脚本/config.status:/男士一/phpize.1 creating 脚本/php-config config.status: creating 脚本   config.status:/男士一/php-config.1 creating 脚本   config.status: creating  sapi/cli/php.1   config.status: creating  sapi/fpm/php-fpm.conf   config.status: creating  sapi/fpm/www.conf   config.status: creating  sapi/fpm/init.d.php-fpm   config.status: creating  sapi/fpm/php-fpm.service   config.status: creating  sapi/fpm/php-fpm.8   config.status: creating  sapi/fpm/status.html   config.status: creating  sapi/phpdbg/phpdbg.1   config.status: creating  sapi/cgi/php-cgi.1   config.status: creating  ext/phar/phar.1   config.status: creating  ext/phar/phar.phar.1   config.status: creating 主要/php_config.h   config.status: executing  default 命令   配置:警告:,unrecognized 选择:,,使用mysql

如何安装Php7.3