CentOS编译安装PHP7之史上最详细步骤。

编程

一、最详细的编译步骤

https://www.cnblogs.com/guiyishanren/p/11098506.html

二、编译过程常见的错误

https://blog.csdn.net/m0_38004619/article/details/88598702

三、一些配置的问题

1.PHP编译时的配置文件

./configure "--prefix=/usr/local/php7" "--with-pdo-pgsql" "--with-zlib-dir" "--with-freetype-dir" "--enable-mbstring" "--with-libxml-dir=/usr" "--enable-soap" "--enable-calendar" "--with-curl" "--with-mcrypt" "--with-gd" "--with-pgsql" "--disable-rpath" "--enable-inline-optimization" "--with-bz2" "--with-zlib" "--enable-sockets" "--enable-sysvsem" "--enable-sysvshm" "--enable-pcntl" "--enable-mbregex" "--enable-exif" "--enable-bcmath" "--with-mhash" "--enable-zip" "--with-pcre-regex" "--with-pdo-mysql" "--with-mysqli" "--with-jpeg-dir=/usr" "--with-png-dir=/usr" "--enable-gd-native-ttf" "--with-openssl" "--with-fpm-user=www-data" "--with-fpm-group=www-data" "--with-libdir=/lib/x86_64-linux-gnu/" "--enable-ftp" "--with-gettext" "--with-xmlrpc" "--with-xsl" "--enable-opcache" "--enable-fpm" "--with-iconv" "--with-xpm-dir=/usr"

2.报错checking for libzip... not found,configure: error: Please reinstall the libzip distribution

https://www.cnblogs.com/gyfluck/p/10478386.html

3.cmake升级(里面的下载地址不是唯一的,看好你需要哪个版本,自己寻找)

https://blog.csdn.net/weixin_38883338/article/details/86408749

 

以上是 CentOS编译安装PHP7之史上最详细步骤。 的全部内容, 来源链接: utcz.com/z/511296.html

回到顶部