欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

9_php擴(kuò)展模塊的安裝-創(chuàng)新互聯(lián)

在此處樓主遇到一個(gè)問(wèn)題,用命令查看,居然不出現(xiàn)php 的模塊。

成都創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括黔西南州網(wǎng)站建設(shè)、黔西南州網(wǎng)站制作、黔西南州網(wǎng)頁(yè)制作以及黔西南州網(wǎng)絡(luò)營(yíng)銷(xiāo)策劃等。多年來(lái),我們專(zhuān)注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,黔西南州網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶(hù)以成都為中心已經(jīng)輻射到黔西南州省份的部分城市,未來(lái)相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶(hù)的支持與信任!

[root@OBird ~]# /usr/local/php/bin/php -m

于是進(jìn)行到目錄下這樣操作,才出現(xiàn),望解:

[root@OBird ~]# cd /usr/local/php/bin

[root@OBird bin]# ls

pear  peardev  pecl  phar  phar.phar  php  php-cgi  php-config  phpdbg  phpize

[root@OBird bin]# php -m

[PHP Modules]  # 此時(shí)靜態(tài)或動(dòng)態(tài)文件是看不出來(lái)的。動(dòng)態(tài)的是可以在 php.ini 里面去定義。

Core

ctype

date

dom

ereg

fileinfo

filter

hash

iconv

json

libxml

mysqli

pcre

PDO

pdo_sqlite

Phar

posix

Reflection

session

SimpleXML

SPL

sqlite3

standard

tokenizer

xml

xmlreader

xmlwriter

[Zend Modules]

有時(shí)候我們會(huì)發(fā)現(xiàn)有些模塊沒(méi)有編譯進(jìn)來(lái),有兩種辦法,一是找到源碼包重編譯。二使用動(dòng)態(tài)的方式來(lái)加載。類(lèi)似于apache 的動(dòng)態(tài)共享模塊。

下面我們就來(lái)用第二種方法,編譯一個(gè)動(dòng)態(tài)的共享模塊。

[root@OBird ~]# cd /usr/local/src/php-5.6.24  #進(jìn)到php 的源碼包

[root@OBird php-5.6.24]# ls

acinclude.m4    generated_lists   Makefile.global    README.MAILINGLIST_RULES      server-tests-config.php

aclocal.m4     genfiles       Makefile.objects   README.md             server-tests.php

build       header        makerpm        README.namespaces         snapshot

buildconf     include       missing        README.NEW-OUTPUT-API       stamp-h.in

buildconf.bat   INSTALL       mkinstalldirs     README.PARAMETER_PARSING_API    stub.c

CODING_STANDARDS  install-sh      modules        README.REDIST.BINS         tests

config.guess    libphp5.la      netware        README.RELEASE_PROCESS       travis

config.log     libs         NEWS         README.SELF-CONTAINED-EXTENSIONS  TSRM

config.nice    libtool       pear         README.STREAMS           UPGRADING

config.status   LICENSE       php5.spec       README.SUBMITTING_PATCH      UPGRADING.INTERNALS

config.sub     ltmain.sh      php5.spec.in     README.TESTING           vcsclean

configure     main         php.gif        README.TESTING2          win32

configure.in    makedist       php.ini-development  README.UNIX-BUILD-SYSTEM      Zend

CREDITS      Makefile       php.ini-production  README.WIN32-BUILD-SYSTEM

ext        Makefile.frag    README.EXT_SKEL    run-tests.php

EXTENSIONS     Makefile.fragments  README.GIT-RULES   sapi

footer       Makefile.gcov    README.input_filter  scripts

[root@OBird php-5.6.24]# cd ext/  # php 所有的塊都在這個(gè)目錄下

[root@OBird ext]# ls

bcmath    dom         ftp     intl    mysqli  pdo      pgsql    shmop    standard  xml

bz2     enchant       gd     json    mysqlnd  pdo_dblib   phar     simplexml  sybase_ct  xmlreader

calendar   ereg         gettext   ldap    oci8   pdo_firebird  posix    skeleton  sysvmsg   xmlrpc

com_dotnet  exif         gmp     libxml   odbc   pdo_mysql   pspell    snmp    sysvsem   xmlwriter

ctype    ext_skel       hash    mbstring  opcache  pdo_oci    readline   soap    sysvshm   xsl

curl     ext_skel_win32.php  iconv    mcrypt   openssl  pdo_odbc    recode    sockets   tidy    zip

date     fileinfo       imap    mssql   pcntl   pdo_pgsql   reflection  spl     tokenizer  zlib

dba     filter        interbase  mysql   pcre   pdo_sqlite   session   sqlite3   wddx

以 curl 為例進(jìn)行編譯

[root@OBird ext]# /usr/local/php/bin/php -m |grep -i curl

[root@OBird ext]# cd curl/

[root@OBird curl]# ls

config.m4  config.w32  CREDITS  curl.dsp  curl_file.c  interface.c  multi.c  package.xml  php_curl.h  share.c  tests

[root@OBird curl]# /usr/l

lib/   lib64/  libexec/ local/

[root@OBird curl]# /usr/local/php/bin/phpize  #生成configure 文件

Configuring for:

PHP Api Version:     20131106

Zend Module Api No:    20131226

Zend Extension Api No:  220131226

[root@OBird curl]# ls

acinclude.m4   build     config.m4  configure.in  curl.dsp   interface.c    missing     package.xml   share.c

aclocal.m4    config.guess  config.sub  config.w32   curl_file.c  ltmain.sh     mkinstalldirs  php_curl.h   tests

autom4te.cache  config.h.in  configure  CREDITS    install-sh  Makefile.global  multi.c     run-tests.php

[root@OBird curl]# ./configure --with-php-config=/usr/local/php/bin/php-config

———————————————————————————————————————————————

樓主在編譯的過(guò)程中出現(xiàn)了報(bào)錯(cuò),那么就停下解決問(wèn)題

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

[root@OBird curl]# cd /usr/local/src/

[root@OBird src]# wget https://github.com/skvadrik/re2c/releases/download/0.13.6/re2c-0.13.6.tar.gz

# tar xf re2c 0.13.4.tar.gz

# cd re2c 0.13.4

# ./configure

#make && make install

后面還是出錯(cuò)

checking for cURL in default path... not found

configure: error: Please reinstall the libcurl distribution -

  easy.h should be in <curl-dir>/include/curl/

在網(wǎng)上找到了解決辦法

php安裝錯(cuò)誤configure: error: Please reinstall the libcurl distribu

今天配置一臺(tái)server的php支持curl的時(shí)候, 出現(xiàn)如下報(bào)錯(cuò)

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

其實(shí)就是curl的dev包沒(méi)有安裝, 解決方案:
終端下

# yum -y install curl-devel

然后就可以繼續(xù)了

排錯(cuò)到此結(jié)束,繼續(xù)

———————————————————————————————————————————————

[root@OBird curl]# make install  #/curl.so 模塊文件會(huì)被放在下面這個(gè)目錄

Installing shared extensions:   /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

[root@OBird curl]# ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl.so

/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl.so

extension_dir 是存放擴(kuò)展模塊的。  也是可以自定義的。

[root@OBird curl]# cd /usr/local/php/bin/

[root@OBird bin]# php -i |grep extension_dir

extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20131226 => /usr/local/lib/php/extensions/no-debug-non-zts-20131226

sqlite3.extension_dir => no value => no value

[root@OBird ~]# cd /usr/local/php/bin

[root@OBird bin]# php -m  # 此時(shí)是查看不到curl 這個(gè)模塊的。剛才在php.ini文件將模塊名寫(xiě)錯(cuò)

來(lái)做測(cè)試 “curl1.so"

[root@OBird bin]# tail /usr/local/php/logs/php_errors.log

[02-Oct-2016 09:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl1.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl1.so: cannot open shared object file: No such file or directory in Unknown on line 0

[root@OBird bin]# vim /usr/local/php/etc/php.ini

extension=curl1.so # 修正

正常再重新加載就可以看到 curl這個(gè)模塊,但是樓主不知是哪里出錯(cuò)了,這個(gè)效果沒(méi)有做出來(lái),但是curl 這個(gè)命令可以正常使用。只能先跳過(guò)去 了。

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線(xiàn),公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性?xún)r(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿(mǎn)足用戶(hù)豐富、多元化的應(yīng)用場(chǎng)景需求。

當(dāng)前標(biāo)題:9_php擴(kuò)展模塊的安裝-創(chuàng)新互聯(lián)
瀏覽地址:http://www.chinadenli.net/article28/dcijjp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司服務(wù)器托管企業(yè)網(wǎng)站制作云服務(wù)器網(wǎng)站設(shè)計(jì)網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

小程序開(kāi)發(fā)