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

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 stackoverflow.com 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

1 Answer 1

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

 
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.