第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

Linux下php5.3.6的安裝

標(biāo)簽:
PHP

php下载

#cd/usr/local/src/

#wgethttp://cn.php.net/get/php-5.3.6.tar.gz/from/this/mirror


php安装

#tar-zxvfphp-5.3.6.tar.gz

#cdphp-5.3.6

#./configure--prefix=/usr/local/php5.3.6--with-mysql=/usr/local/mysql5.5.9--with-apxs2=/usr/sbin/apxs--enable-mbstring--with-config-file-path=/usr/local/php5.3.6/etc

#make

#makeinstall


ps:

--prefix=/usr/local/php5.3.6指定php安装目录;
--with-mysql=/usr/local/mysql5.5.9指定mysql安装目录;
--with-apxs2=/usr/sbin/apxs指定查找Apache2的地方;
--with-config-file-path=/usr/local/php5.3.6/etc指定php的配置文件目录


php的设定

#cp-prphp.ini-developmentphp.ini

编辑php.ini

#viphp.ini

default_charset="UTF-8"

extension_dir="./ext"

extension=php_mbstring.dll

[mbstring]
mbstring.language=Japanese
mbstring.internal_encoding=UTF-8
mbstring.http_output=UTF-8



Apache的设定

#vi/etc/httpd/conf/httpd.conf

AddTypeapplication/x-httpd-php.php
DirectoryIndexindex.htmlindex.htmindex.html.varindex.php

没有如下的文字,追加

LoadModulephp5_module /usr/lib/httpd/modules/libphp5.so


#/etc/init.d/httpdrestart



遇到的问题与解决方案

问题一:

./configure以下错误发生

Sorry,Icannotrunapxs.Possiblereasonsfollow:

1.Perlisnotinstalled
2.apxswasnotfound.Trytopassthepathusing--with-apxs2=/path/to/apxs
3.Apachewasnotbuiltusing--enable-so(theapxsusagepageisdisplayed)


解决方法:指定正确的apxs路径

1.查找apxs路径

#whereisapxs

apxs:

说明系统没有安装apxs扩展工具


2.安装apxs

#yuminstallhttpd-devel


3.查找apxs路径

#whereisapxs

apxs:/usr/sbin/apxs/usr/share/man/man8/apxs.8.gz

apxs安装成功



问题二:

安装apxs以下错误发生:

Packagecyrus-sasl-plainneedscyrus-sasl-lib=2.1.22-4,thisisnotavailable.

解决方法:

#yum-yinstallcyrus*

之后再次安装apxs



问题三:

再次./configure以下错误发生
configure:error:xml2-confignotfound.Pleasecheckyourlibxml2installation.



解决方法

安装libxml2

#yuminstalllibxml2-devel



问题四:

heckinglibxml2installdir...no
checkingforxml2-configpath.../usr/bin/xml2-config
checkingwhetherlibxmlbuildworks...no

configure:error:buildtestfailed.Pleasechecktheconfig.logfordetails.


解决方法:

#yumerasezlib-devel
#yuminstallzlib-devel

#yuminstalllibxml2-devel


點擊查看更多內(nèi)容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評論
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消