<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>
            php語言

            PHP的安裝步驟

            時間:2025-05-08 18:13:35 php語言 我要投稿
            • 相關推薦

            PHP的安裝步驟

              PHP獨特的語法混合了C、Java、Perl以及PHP自創的語法。它可以比CGI或者Perl更快速地執行動態網頁。用PHP做出的動態頁面與其他的編程語言相比,PHP是將程序嵌入到HTML文檔中去執行,執行效率比完全生成HTML標記的CGI要高許多;PHP還可以執行編譯后代碼,編譯可以達到加密和優化代碼運行,使代碼運行更快。以下是小編為大家搜索整理的PHP的安裝步驟,希望能給大家帶來幫助!更多精彩內容請持續關注我們應屆畢業生考試網!

              安裝(fastcgi模式)的時候,常常有這樣一句命令:/usr/local/webserver/php/bin/phpize

              一、phpize是干嘛的?

              phpize是什么東西呢?php官方的說明:

              phpize是用來擴展php擴展模塊的,通過phpize可以建立php的外掛模塊

              比如你想在原來編譯好的php中加入memcached或者ImageMagick等擴展模塊,可以使用phpize,通過以下幾步工作。

              二、如何使用phpize?

              當php編譯完成后,php的bin目錄下會有phpize這個腳本文件。在編譯你要添加的擴展模塊之前,執行以下phpize就可以了;

              比如現在想在php中加入memcache擴展模塊:我們要做的只是如下幾步

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

              tar zxvf memcache-2.2.5.tgz

              cd memcache-2.2.5/

              /usr/local/webserver/php/bin/phpize

              ./configure –with-php-config=/usr/local/webserver/php/bin/php-config

              make

              make install

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

              注意./configure 后面可以指定的是php-config文件的路徑

              這樣編譯就完成了,還需要做的是在php.ini文件中加入extension值

              extension = “memcache.so”

              ---------------------------------------------------------

              注意:Cannot find config.m4.

              這個錯誤是一個很傻的錯誤,解壓以后需要cd到文件夾,不然phpize就會報錯

              動態編譯PHP的memcache擴展庫,在執行/usr/localphp/bin/phpize時出現了錯誤,

              Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.

              很明顯缺少文件,需要安裝。網上找了下資料。

              # wget

              # tar -zvxf m4-1.4.9.tar.gz

              # cd m4-1.4.9/

              # ./configure && make && make install

              # cd ../

              # wget

              # tar -zvxf autoconf-2.62.tar.gz

              # cd autoconf-2.62/

              # ./configure && make && make install

              然后執行以下命令進行安裝

              #/usr/local/php/bin/phpize

              #./configure –prefix=/usr/local/memcached –with-libevent=/usr/local/libevent –with-php-config=/usr/local/php/bin/php-config

              #make && make install

            【PHP的安裝步驟】相關文章:

            PHP如何安裝09-10

            PHP安裝與配置09-09

            PHP的安裝方法11-04

            php操作mysql步驟09-15

            php開啟openssl的步驟08-11

            PHP創建漂亮圖表的步驟06-03

            PHP的安裝方法及軟件09-04

            PHP 5.3 安裝分析心得06-29

            php-memcache安裝方法07-22

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看