/* PHP mcrypt 模組的安裝程序 */
《windows 下安裝程序》
1、下載已編譯好的 libmcrypt.dll (http://ftp.emini.dk/pub/php/win32/mcrypt/)
‧libmcrypt.dll 是必須用到的外掛模組。
‧將libmcrypt.dll複製到C:\winnt\system32。
‧若已經設定C:\PHP為環境變數,則將libmcrypt.dll複製到C:\PHP。
2、下載 libmcrypt 套件 (ftp://argeas.cs-net.gr/pub/unix/mcrypt/或http://sourceforge.net/projects/mcrypt/)
‧PHP4需使用2.4.x以上版本
‧PHP5需使用2.5.x以上版本
‧解壓縮後將資料複製到C:\PHP,更名為 mcrypt。
3、php.ini ,取消extension=php_mcrypt.dll 前面的註解。
‧加上指定 PHP 之 mcrypt_module_open 函式要直接使用模組的路徑。
‧mcrypt.algorithms_dir=C:\PHP\libmcrypt\modules\algorithms\
‧mcrypt.modes_dir=C:\PHP\libmcrypt\modules\modes\
4、執行 info.php,就可以看到已加入mcrypt模組。
-------------------------------------------------------------------------------
《Linux 下安裝程序》
1、下載 libmcrypt 套件 (ftp://argeas.cs-net.gr/pub/unix/mcrypt/)
‧PHP4需使用2.4.x以上版本
‧PHP5需使用2.5.x以上版本
‧解壓縮後將資料複製到C:\PHP,更名為 mcrypt。
2、安裝
gunzipmcrypt-x.x.x.tar.gz
tar -xvfmcrypt-x.x.x.tar
./configure --disable-posix-threads
make
make install
cd to your PHP directory.
./configure -with-mcrypt=[dir] [--other-configuration-directives]
make
make install
3、執行 info.php,就可以看到已加入mcrypt模組。
留言列表