Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just compiled a web stack on Solaris 10. This is a fairly standard Apache 2 / MySQL 5 / PHP 5 stack with all the most recent stable versions. I dropped phpMyAdmin on the server and set up httpd.conf to get that online. When I browse to the page, login fails, and a persistent message appears beneath the login form:

The mcrypt extension is missing. Please check your PHP configuration.

However, I compiled PHP with the --with-mcrypt flag. A file, info.php:

<?php phpinfo(); ?>

shows that mcrypt support is enabled. Running:

php -m

on the command line shows that mcrypt is loaded.

Google hasn't been much help, and I was hoping someone around these parts could throw some help my way. If I need to provide any further detail, please let me know what you need to know.

share|improve this question

migrated from Aug 10 '11 at 14:58

This question came from our site for professional and enthusiast programmers.

What does php -i | grep "^mcrypt" say? – quanta Aug 10 '11 at 15:22
Also verify that you have libmcrypt (not a PHP dependency). The documentation also mentions that it should be compiled without posix threads. This may affect Apache, but not the CLI, so it may be worth checking. – Andrew M. Aug 10 '11 at 20:22

Compiling php with mcrypt support is not the same as actually installing mcrypt. In your phpinfo() what does it say about supported ciphers and modes? If it shows "none" for both of those, then your php is ready for mcrypt but the actual extension itself is not installed.

You'll want to download, and build libmcrypt with --enable-dynamic-loading. Once that's done, and the actual mcrypt extension is in place, then you should see some changes in the mcrypt portion of phpinfo();

share|improve this answer

Your Answer


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.