欢迎来到站长天空!

其它服务器

当前位置: 主页 > 服务器 > 其它服务器

安装php7.2+nginx1.14.2常见报错解决方法

时间:2026-01-31 16:45:09|栏目:其它服务器|点击:

1.PHP

configure: error: Cannot find OpenSSL's

# yum -y install openssl openssl-deve

checking for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL support

# yum -y install curl-devel 

configure: error: jpeglib.h not found.

# yum -y install libjpeg-devel

configure: error: Unable to locate gmp.h

yum install gmp-devel

configure: error: Cannot find ldap.h

yum -y install openldap openldap-devel

configure: error: Please reinstall readline - I cannot find readline.h

yum -y install readline-devel

configure: error: png.h not found.

# yum -y install libpng-devel

configure: error: freetype-config not found.

# yum -y install freetype-devel

2. Nginx

./configure: error: the HTTP rewrite module requires the PCRE library.

# yum -y install pcre-devel

./configure: error: SSL modules require the OpenSSL library.

# yum -y install openssl openssl-deve

./configure: error: the HTTP XSLT module requires the libxml2/libxslt

yum -y install libxslt-devel

./configure: error: the HTTP image filter module requires the GD library.

# yum -y install gd-devel

./configure: error: the GeoIP module requires the GeoIP library.

# yum -y install GeoIP-devel

nginx: [emerg] getpwnam("nginx") fAIled

# useradd -s /sbin/nologin -M nginx

nginx: [emerg] mkdir() "/var/lib/nginx/tmp/client_body" failed (2: No such file or directory)

# mkdir /var/lib/nginx/tmp -p

上一篇:PHP-FPM进程数的设定

栏    目:其它服务器

下一篇:CentOS 7升级PHP5.4.2到PHP7.2版本的简单方法

本文标题:安装php7.2+nginx1.14.2常见报错解决方法

本文地址:https://zz.feitang.co/server/36561.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2026 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号