How do I install mcrypt? I'm using Leopard 10.5.8 with PHP5.
相关问题
- Views base64 encoded blob in HTML with PHP
- How does the setup bootstrapper detect if prerequi
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
Source: This page.
Ok, I just spent 1.5 hours trying to do this myself on 10.6.7
I believe the solution was this:
I installed
php5-mcrypt + universal
with macports:then, you can't just put
extension=mycrypt.so
in thephp.ini
file, you have to put the direct path i.e.:you see, PHP looks in
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/
which is the difference I missed!!Then just restart apache with your
and then
to make sure it's there.
Hope this helps someone!
It depends on how you've installed PHP.
If you installed PHP via macports, you can:
If you custom-compiled your PHP, it's probably easiest to just recompile with:
(Not sure where macports actually keeps it, since I don't use macports, but just compile my AMP stack (and most dependencies) from source)