mcrypt and PHP

Ryan Schmidt ryandesign at macports.org
Mon Sep 3 23:04:18 PDT 2012


On Sep 4, 2012, at 00:36, G R Lewis <groblewis at mac.com> wrote:

> Current versions of: 
> Mac OS: 10.7.4
> PHP: 5.3.10 (pretty sure it came with the OS)
> phpMyAdmin: 3.5.0
> 
> The front page of phpMyAdmin has a warning in red: 
> The mcrypt extension is missing. Please check your PHP configuration.
> 
> I've seen some instructions that involve (I think) recompiling PHP with the extension but I'm hoping that's not necessary. 

I suggest you use the phpmyadmin port in MacPorts. Decide which version of MacPorts PHP you want to use with it:

$ port variants phpmyadmin
phpmyadmin has the variants:
[+]php5: Use php5
   php53: Use php53
   php54: Use php54

Install it with the appropriate variant.

The php5 world is old and going away; I suggest you use the new php54 world unless you have a specific reason not to.

sudo port install phpmyadmin +php54

This will install a separate copy of PHP in MacPorts. It will not use what came with your OS. It will also be a separate copy of phpmyadmin. You can delete whatever manually-installed version you had before. You may need to move over your config file first though.

You'll also want a web server. You could install the php54-apache2handler to get the MacPorts apache2 port and the corresponding Apache module for PHP support. Again this is separate from whatever might be provided with OS X. You'll need to turn off your Apple web server and then turn on the MacPorts one.




More information about the macports-users mailing list