mcrypt in php5
Ryan Schmidt
ryandesign at macports.org
Mon Aug 10 18:28:20 PDT 2009
On Aug 10, 2009, at 19:35, Mark Hattam wrote:
> On 7 Aug 2009, at 03:24, Ryan Schmidt wrote:
>
>> On Aug 6, 2009, at 06:57, Mark Hattam wrote:
>>
>>> I already had php5 installed which recently got upgraded to 5.3.0
>>>
>>> sudo port installed
>>> php5 @5.3.0_1+apache2+macosx+mysql5 (active)
>>>
>>> But now phpMyAdmin complains that mcrypt is not installed (it
>>> used not to complain this way)
>>> Cannot load mcrypt extension. Please check your PHP
>>> configuration.
>>>
>>> So I've now done a
>>> sudo port install php5-mcrypt
>>>
>>> and it shows as
>>> php5-mcrypt @5.3.0_0 (active)
>>>
>>> However phpMyAdmin still doesn't "see" mcrypt.
>>>
>>> php.ini has
>>>
>>> ; Directory in which the loadable extensions (modules) reside.
>>> ; http://php.net/extension-dir
>>> extension_dir = "./"
>>
>> Remove or comment out (by prepending a semicolon) the above line.
>
> Yes that made it work.
>
> So we really no longer specify the extensions directory?
You can specify it if you like, but you have to specify the right
one. "./" was never right; I don't know why the PHP developers had
that in there as the default. You may as well not specify it, so that
if it changes due to a new version of PHP, you'll automatically get
that change.
More information about the macports-users
mailing list