记-centos安装php7

Posted leon-chan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了记-centos安装php7相关的知识,希望对你有一定的参考价值。

1、wget https://www.php.net/downloads/php-7.4.4.tar.gz

2.tar -zvxf php-7.4.4.tar.gz

3、cd php-7.4.4.tar.gz

4、./configure 

--prefix=/usr/local/php
--with-config-file-path=/usr/local/php
--enable-mbstring
--enable-ftp
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--without-pear
--disable-phar
--enable-sockets
--with-freetype-dir=/usr
--with-zlib
--with-libxml-dir=/usr
--with-xmlrpc
--enable-zip
--enable-fpm
--enable-xml
--enable-sockets
--with-gd
--with-zlib
--with-iconv
--enable-zip
--with-freetype-dir=/usr/lib/
--enable-soap
--enable-pcntl
--enable-cli
--with-curl

编译后会出现各种 No package ‘XXXX’ found

不要往后make ,把编译通过后再make

以上是关于记-centos安装php7的主要内容,如果未能解决你的问题,请参考以下文章

记Centos下安装Redis和Tomcat

记-使用u盘在pc机上安装centos7

CentOS上oracle 11g R2数据库安装折腾记

记-centos安装php7

记linux_centOS安装as86过程

架构师成长记_第八周_03_ Centos安装 ElasticSearch 可视化插件: es-header