php安装,启动报错,

Posted

tags:

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

安装报错:

错误1:
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法:
yum install -y libxml2-devel
错误2:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:
yum install -y bzip2-devel
错误3:
configure: error: jpeglib.h not found.
解决办法:
yum install -y libjpeg-turbo-devel
错误4:
configure: error: png.h not found.
解决办法:
yum install -y libpng libpng-devel
错误5:
configure: error: freetype-config not found.
解决办法:
yum install -y freetype freetype-devel
错误6:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
yum install -y epel-release
yum install -y libmcrypt libmcrypt-devel
错误7
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法
yum install -y libxml2 libxml2-devel 
错误8
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决办法
yum install curl curl-devel

nginx相关问题

错误1
Restarting nginx (via systemctl):  Warning: nginx.service changed on disk. Run ‘systemctl daemon-reload‘ to reload units.
解决办法:
我们可以先用systemctl daemon-reload
再systemctl restart nginx
即可。其他服务出现类似的情况,也可以使用systemctl daemon-reload来解决。

以上是关于php安装,启动报错,的主要内容,如果未能解决你的问题,请参考以下文章

项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde(代码片段

php安装,启动报错,

Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法(代码片段

PHP代码-psysh调试代码片段工具

centos 6.0安装php-5.2.17报错: 前提是mysql已经安装,已经成功启动OK

配置PHP解析环境时,启动php服务报错了,怎么处理?排它!