Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have updated my php to version 5.4.13 etc and well in the terminal my version of php states this

   PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23)

But running a composer install io get the following error.

  The requested PHP extension ext-mcrypt * is missing from your system

Anyway i have tried several emthods to get this to work etc and nothing:

I have used the following: Solution One and Solution Two, they both use a similar approach but i stil ge the errors.

I then did a php info test and this shows that the version is 5.3.15 and that mycrypt says mcrypt support is enabled

So is my server using this php and the one in my terminal using another as this what it seems

Any ideas how to fix this?

I am using a MAC Mountain Lion with Mountain Lion Sever (latest), xcode and all operations are up to date and i have restarted the server.

share|improve this question

2 Answers 2

Got the same error in Linux(Ubuntu 14.04)

Check that ini exists

/etc/php5/mods-available/mcrypt.ini

If it is so, check that you have symlink to ini. Something like in directory /etc/php5/cli/conf.d

05-mcrypt.ini -> ../../mods-available/mcrypt.ini

If there is no symlink create it. After installing the php5-mcrypt extension I have no symlink, only ini file. That is why create the symlink manualy

share|improve this answer
    
thanks for the reply on this but in the time i have moved over to Virtual servers mainly using Vagrant and a file call Vaprobash. thanks again –  Simon Davies Apr 29 at 20:13
up vote 0 down vote accepted

Well I simply went back to basics and uninstalled Mac Server and went back to MAMP, this performed all the latest updates and installs required, as my system was conflicting with two separate installs etc

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.