最近我為了讓Godaddy的服務器支持magento,就要裝mcrypt module,順便也可以了卻phpmyadmin登錄時的一段warning message。
Linux 的大蝦們別笑話我,這麼點小事讓我忙乎了半天。對我來說,Windows下很簡單的問題,Fedora下就不簡單。Fedora命令我只能依樣畫瓢,很少能舉一反三。Linux有不同版本,我的Godaddy Server裝的是Fedora,好不容易找到一份明確適用於Fedora的mcrypt安裝步驟。當然知道了步驟,操作起來是相當簡單的。
At the terminal, su root - you are now going to yum, not ./configure, make, and make install…
yum install mcrypt - this will get you libmcrypt, mhash, and mcrypt
yum install php-mcrypt - this will get you the functionality within PHP