PHP的mcrypt模組裝配

來源:互聯網
上載者:User
PHP的mcrypt模組安裝
首先要下載三個軟體(下載地址是我提供的,裡面有不同的壓縮版本),分別是
libmcrypt-2.5.8.tar.gz
下載地址:?http://sourceforge.net/project/showfiles.php?group_id=87941&package_id=91774&release_id=487459
mhash-0.9.9.tar.gz
下載地址:?http://sourceforge.net/project/showfiles.php?group_id=4286&package_id=4300&release_id=645636
mcrypt-2.6.8.tar.gz
下載地址:?http://sourceforge.net/project/showfiles.php?group_id=87941&package_id=91948&release_id=642101
這三個檔案都要下載,為的只是編譯出一個mcrypt.so。哎!
然後把程式上傳到伺服器上(當然,如果你從linux上伺服器直接下載的,那就不用上傳了,這不廢話麼)
tar zxvf libmcrypt-2.5.8.tar.gz //解壓
cd libmcrypt-2.5.8 //進目錄裡,然後就開始安裝了。
下面開始安裝,三個檔案都是一樣的流程
./configure
make
make install

然後按照 增加mbstring模組一樣 --|

找到php的源碼包 /usr/local/src/php-5.2.14
php安裝目錄是/usr/local/php
# cd /usr/local/src/php-5.2.14/ext/mcrypt/
# /usr/local/php/bin/phpize
# ./configure –with-php-config=/usr/local/php/bin/php-config
# make
# make install
執行完畢後在php.ini裡增加extension=mcrypt.so
重啟web伺服器, 看一下phpinfo, 應該支援mcrypt了
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.