189 8069 5689

LinuxPHP安装遇见的问题及解决方案-创新互联

遇到的问题与解决方案
问题一:

在温州等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供网站设计制作、成都网站建设 网站设计制作按需求定制网站,公司网站建设,企业网站建设,品牌网站制作,成都全网营销,外贸营销网站建设,温州网站建设费用合理。

报以下错误
./configure以下错误发生
Sorry, I cannot run apxs. Possiblereasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page isdisplayed)

解决方法:指定正确的apxs路径
1.查找apxs路径
# whereis apxs
apxs:
说明系统没有安装apxs扩展工具
2.安装apxs
# yum install httpd-devel
3.查找apxs路径
# whereis apxs
apxs: /usr/sbin/apxs /usr/share/man/man8/apxs.8.gz
apxs安装成功
问题二:

报以下错误
安装apxs以下错误发生:
Package cyrus-sasl-plain needs cyrus-sasl-lib = 2.1.22-4, thisis not available.
解决方法:
# yum -y install cyrus*
之后再次安装apxs
问题三:

报以下错
再次./configure以下错误发生
configure: error: xml2-config not found. Please check your libxml2installation.
解决方法:
安装libxml2
# yum install libxml2-devel
【问题四:=====================================================】
hecking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Pleasecheck the config.log fordetails.
解决方法:
# yum erase zlib-devel
# yum install zlib-devel
# yum install libxml2-devel

[root@node1 ~]# ./configure --prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs

# make && make install

【问题5。。。。。。。。。。。。。。。。。。。。。】

configure: error: mcrypt.h not found.Please reinstall libmcrypt.

解决方法:

解决办法一
1、安装第三方yum源
wgethttp://www.atomicorp.com/installers/atomic
sh ./atomic
2、使用yum命令安装
yum install php-mcrypt libmcrypt libmcrypt-devel

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前文章:LinuxPHP安装遇见的问题及解决方案-创新互联
网站URL:http://cdxtjz.cn/article/dhcghd.html

其他资讯